| Previous | Next |
| STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY | STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE |
STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE
The primary surface dimensions do not match the display path
STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE is a Windows NTSTATUS value from the graphics/display facility. For STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE, 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.
A primary surface is the pixel storage associated with a video present source. Its dimensions must be compatible with the selected source mode and the allocation attributes used by the display driver. This status means the supplied primary-surface size cannot be accepted for that path.
Check the difference between desktop-visible size, source mode size, rotation/scaling state, and allocation size. A valid monitor mode can still fail if the primary allocation was created with stale dimensions after a mode change or if a driver incorrectly accounts for rotated geometry.
What to check for STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE
- Log the source mode width and height, primary allocation dimensions, rotation, and scaling attributes.
- Recreate or validate primary allocations after mode-set and topology changes.
- Do not diagnose this as EDID failure unless mode enumeration also rejected the timing.
References for STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE
- Microsoft: Introduction to Video Present Networks
- Microsoft: D3DKMDT display data types
- Microsoft: Display/graphics driver DDI overview
Looking for a different code? Search another status or error code.