Skip to content

GPU: serialize the PresentX compositor root signature explicitly - #1

Merged
Yaekai merged 4 commits into
Yaekai:feat/gpu-presentx-multiplanefrom
MichaelSmithAI:fix/presentx-explicit-root
Nov 24, 2026
Merged

Yaekai merged 4 commits into
Yaekai:feat/gpu-presentx-multiplanefrom
MichaelSmithAI:fix/presentx-explicit-root

Conversation

@MichaelSmithAI

Copy link
Copy Markdown

This follows up on Marvisak#211 at 24a387d. Wine 11.22's built-in D3DCompiler successfully compiles both compositor shaders, but creating the root signature from the vertex shader blob returns E_FAIL. The single-plane path works and the two-plane presentation fails.

The compositor now serializes its pixel-visible texture table at t0 and static sampler at s0 with D3D12. It uses those bytes to create the root signature for both pipeline states. The regression exercises compositor construction through the installed compiler on an available device. The change also gives the batch tests a distinct module name so the GPU test target compiles on the topic branch.

On an RTX 4090 through Wine/vkd3d, the new regression completed with both Wine's built-in compiler and Microsoft's app-local compiler (one passed, exit 0 each). In a separate presentation fixture on ffe310e plus Marvisak#211 and the fix, the built-in compiler produced captures byte-identical to the Microsoft reference. The single plane was red; all 1,024 two-plane preview samples had the expected premultiplied color (127, 0, 128). Some initial wrapper invocations returned 143 after the test passed; an independent two-plane rerun captured both the Wine process and wrapper exiting 0.

Windows-target Clippy passed for all victory-gpu targets and features, and the asset check passed. The GPU runs used synthetic textures. Native Windows and GTA VI on this revision remain untested.

AI-assisted implementation and verification.

@MichaelSmithAI

Copy link
Copy Markdown
Author

I added two commits to this branch to cover a separate failure path in PresentX. If compositor initialization fails, PresentX now returns before opening the reusable copy command list. A new regression injects that failure between two ordinary single-plane calls and verifies that the subsequent call can present.

On RTX 4090 with Wine 11.22 and GE vkd3d-proton 3.2, both the new recovery test and the existing pipeline-creation test passed with exit 0. Stock vkd3d-proton 3.1 also printed passing results for both tests, but the local Wine processes terminated with nonzero exit codes after the test summaries. This used source-built textures.

@Yaekai
Yaekai merged commit af9a911 into Yaekai:feat/gpu-presentx-multiplane Nov 24, 2026
Yaekai pushed a commit that referenced this pull request Nov 24, 2026
Add CLAUDE.md with build commands and architecture overview
Yaekai pushed a commit that referenced this pull request Nov 25, 2026
Exercise the descriptor cursor regression on the actual heap capacity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants