GPU: compose BGRX scene planes with an RGBA overlay #1265

Manually merged
github merged 1 commit from github-bot/gh-1265 into main 2026-11-29 08:21:48 +00:00 AGit
Owner

@⁠ghptc on GitHub · 2026-11-28 16:45 UTC · original
ghptc:fix/bgrx-display-planes → main · +44 −7 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Two-plane presentation checks both resources with compose::view. The list of supported formats omitted B8G8R8X8, so a sampleable BGRX scene with an RGBA overlay could never reach the compositor. A BGRX base also has no single-plane swap format in the current fallback.

This change selects UNORM for typeless BGRX and preserves the typed UNORM and sRGB views. The existing single-sample, 2D, single-slice and shader-resource checks still apply.

The generated graphics regression clears a BGRX base, overlays transparent, half-green and opaque blue pixels, and checks the final RGBA readback. With the new test on main at 9ce3cf9, the production view selector rejected the actual device resource. With the patch on the same RTX 5070 under VKD3D-Proton, the three pixels were (127,0,0,255), (64,127,0,255) and (0,0,255,255). A second test checks the typed and typeless view choices. Both focused tests passed in a capped service.

DXGI format support

**@⁠ghptc** on GitHub · 2026-11-28 16:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1265) `ghptc:fix/bgrx-display-planes` → `main` · +44 −7 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC Two-plane presentation checks both resources with `compose::view`. The list of supported formats omitted B8G8R8X8, so a sampleable BGRX scene with an RGBA overlay could never reach the compositor. A BGRX base also has no single-plane swap format in the current fallback. This change selects UNORM for typeless BGRX and preserves the typed UNORM and sRGB views. The existing single-sample, 2D, single-slice and shader-resource checks still apply. The generated graphics regression clears a BGRX base, overlays transparent, half-green and opaque blue pixels, and checks the final RGBA readback. With the new test on main at 9ce3cf9, the production view selector rejected the actual device resource. With the patch on the same RTX 5070 under VKD3D-Proton, the three pixels were (127,0,0,255), (64,127,0,255) and (0,0,255,255). A second test checks the typed and typeless view choices. Both focused tests passed in a capped service. [DXGI format support](https://learn.microsoft.com/en-us/windows-hardware/drivers/display/required-dxgi-formats)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 16:47:17 +00:00
github manually merged commit e15770d9ab into main 2026-11-29 08:21:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1265
No description provided.