victory-gpu: compile two-plane composer as sm_5_0 with explicit root signature #409
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!409
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-409"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kwaadrat on GitHub · 2026-12-01 23:03 UTC · original
kwaadrat:fix/compose-sm50→main· +64 −36 · 1 files · 72 commits · closed without mergingSummary
Composershaders (vs,psincrates/victory-gpu/src/compose.rs) asvs_5_0/ps_5_0viacrate::host::compileinstead ofvs_5_1/ps_5_1with inline[RootSignature(RS)].D3D12SerializeVersionedRootSignature(make_root_signature), keeping the exact same pixel SRV descriptor table (t0..t1) ands0linear clamp static sampler.Why
Neither
vsnorpsincompose.rsuses Shader Model 5.1 features —5_1was only required for[RootSignature(RS)]. Under Wine/Proton (d3dcompiler_47), compiling5_1shaders with[RootSignature(...)]fails withE_FAIL (0x80004005):When
Composer::newfails, the second (over) plane is never composited onto the base plane on Series S, hiding loading screens, menus, and HUD overlays.Using
crate::host::compilealso logs anyD3DCompileerror blob instead of discarding it.Verification
victory.exeonwindows-latest(cargo build --release --locked -p victory) and tested on RTX 3060 12 GB under Proton Experimental (vkd3d-proton) with the Series S (1080p) profile:two-plane composer not madeno longer occurs and theoverplane (HUD/notifications) renders properly.@readmet3xt-lab on GitHub · 2026-12-02 01:48 UTC · original
Thank you. These pin down exactly which of our own shaders fail under Proton's built-in compiler and what it costs when the card-side compare is missing, which is the clearest data we have on #407. We're going to solve it one level lower: our shaders will ship already compiled, so no shader compiler is asked at run time on any system, and Windows keeps exactly the bytecode it has today. Because of that we won't merge these three as they are (they change the shader model and two buffer types on Windows too). Your findings and measurements go into that change, with credit. When the build is out, a run under Proton with Full logs from you would be the best test we could get.
Pull request closed