Diagnose primitive-ordered pixel shaders in the DXIL translator #50
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/DexNom--VIctory!50
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/50/head"
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?
@Castyan on GitHub · 2026-11-25 21:12 UTC · original
Castyan:fix/pixel-pops-diagnostics→main· +293 −13 · 7 files · 4 commits · closed without mergingWhat this changes
The DXIL emitter detects AMD Primitive Ordered Pixel Shading (POPS) in the pixel stage and reports the first recognized ordering instruction. The previous diagnostic reported a missing hardware SGPR at a later branch. The collision-wave input feeds a wait around order-dependent texture accesses, so this first change leaves those programs unsupported until equivalent ordering is implemented.
The shader hashes, offsets, and proposed D3D12 rasterizer-ordered view work are in
docs/pixel-shader-pops.md.Validation on RTX 5060
0x2d8cand four at0x2fe4. DXIL emission remains at 0/10 for this set.ROVsSupported = trueon this adapter with driver 621.24. This confirms feature availability. The ordered UAV lowering and a rendering test with overlapping fragments are still pending.The three compute translation refusals were tested independently on PR #35.
@Castyan on GitHub · 2026-11-25 21:42 UTC · original · edited 2026-11-25 21:52 UTC
Full preload and game run on RTX 5060
I applied
456e242to the #47 launcher build at8c53afband ran Preload and Play with a fresh isolated cache. The scan translated 25,745 shaders and created 2,699 D3D12 compute pipelines in 735 s. It reported 13 translation refusals and 32 compute pipeline refusals, the same totals as the previous #47 run.All ten pixel shaders reported
primitive-ordered pixel shading (POPS)in the full scan. A filtered validation run matched all ten hashes, with six reports at0x2d8cand four at0x2fe4. The DXIL emission count for that set was 0/10.Preload completed and launched the game. The game exited after 7 min 34 s during intro
Prestream, frame 1508, with0x80000003at+0x5149aecandINSTANCE_LISTat 45,000/45,000. The game phase contains zero references to the ten pixel hashes and no D3D12 device removal. The run provides no evidence linking shader refusals to the breakpoint. Upstream issue #698Follow-up in
33c05baThe emitter now follows paths from the packer write to check for an exit before explicit POPS completion. A filtered rerun of the release build with #47 found such a path in all ten shaders. Six now point to
0x305cand four to0x32b4. DXIL emission remains at 0/10 for the active ordered shaders in this set.The patch allows an immediate zero write that clears the inactive packer enable bit. A synthetic pixel shader with that write emits byte-identical DXIL to the baseline. All 13 targeted pixel tests, the shader-cache source list test, and the #47 launcher test passed. This follow-up was validated with the filtered scan. The full preload and game results above are for
456e242.@Castyan on GitHub · 2026-11-25 22:32 UTC · original
Follow-up gameplay integration on RTX 5060
I ran
33c05bawith the #47 preload launcher and the local gameplay integration at00b26e5. The test used the 32-lane RTX 5060, a cold isolated cache, and a 500 ms base pipeline wait.The game started automatically and the window was closed about 6 min 15 s later. The runtime reported a suspend timeout and exited with code 0. The game phase contained zero mentions of the ten POPS hashes, seven fixed wave64 pipeline refusals, and no earlier breakpoint or D3D12 device removal. It ended before the prior 7 min 34 s crash point, so the crash fix and interactive gameplay remain unverified. Preload PR #47
@Castyan on GitHub · 2026-11-25 23:12 UTC · original
Ten POPS pixel shaders validated on RTX 5060
Commit
64255cfports rasterizer-ordered heap UAV lowering and the distinct synthetic collision IDs from the upstream POPS work. The DXIL feature declaration follows the ROV handles that survive optimization. Upstream #2490 · Upstream #2395 · Upstream #2610Each of the ten hashes in
docs/pixel-shader-pops.mdwas tested individually on the RTX 5060. All ten emitted DXIL, declared ROV support, passed the SDK validator, and created a D3D12 graphics pipeline with a generated vertex shader.victory warmon those ten containers with an empty cache reported 10 translated and 0 refused. All 14 targeted pixel tests passed, including the new synthetic ordered texture store.This run was limited to offline shader compilation, preload and graphics pipeline creation. In-game output and the intro breakpoint remain unverified on this commit.
@Castyan on GitHub · 2026-11-26 00:13 UTC · original
I pushed
546b748to document the combined RTX 5060 run with this POPS fix, the #35 builder changes and the #47 preload launcher. The full preload translated all 25,758 shaders with zero translation refusals. The ten POPS shaders had also passed individual DXIL validation and graphics pipeline creation in the earlier targeted run.The 30 failures reported at the end of preload were compute pipeline failures. Their diagnostics are documented on #47, with the experimental code in the multi-wave draft based on Marvisak/VIctory#2214.
@Castyan on GitHub · 2026-11-26 01:00 UTC · original
Superseded by #61, which combines #47 and #50 on current main.
Pull request closed