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

Merged
ghptc merged 1 commit from upstream-pr/1265 into main 2026-11-29 08:16:57 +00:00
ghptc commented 2026-11-28 16:45:37 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-28T16:45:37Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5542423977 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1265). Originally posted by [ghptc](https://github.com/ghptc) on 2026-11-28T16:45:37Z. --- 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)
Sign in to join this conversation.
No reviewers
No labels
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.

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