| Previous | Next |
| STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE | STATUS_GRAPHICS_INVALID_STRIDE |
STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE
The visible region does not fit the active primary surface
STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE is a Windows NTSTATUS value from the graphics/display facility. It belongs to the WDDM kernel display stack rather than to a Win32 GDI error alone, so the useful context is usually the adapter, VidPN object, child device, present path, or primary allocation involved in the call.
The visible region describes the portion of the primary surface that is presented through a VidPN source/path. This status means the supplied visible-region dimensions are not acceptable for the current source mode, primary surface, or path transformation.
This is usually a geometry mismatch rather than a connector problem. It can be introduced by stale mode data, an incorrect rotation/scaling calculation, or a caller that uses desktop coordinates where surface-local coordinates are required.
What to check
- Compare visible-region size with primary surface size before and after rotation or scaling transforms.
- Check for off-by-one or integer-overflow errors in region calculations.
- Reacquire source mode and path transformation data after a topology commit.
References
- Microsoft: Introduction to Video Present Networks
- Microsoft: D3DKMDT display data types
- Microsoft: VidPN objects and interfaces
Looking for a different code? Search another status or error code.