Repository navigation
Conversation
|
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head AI-assisted (Claude Code); no game data. |
|
Thanks @MamaLeVrai for verifying this on RX 6950 XT against \85101b! |
…ly indexed heaps, and log the title's refused root signatures (fxceless#168, port of fxceless#317) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
On AMD RDNA 4 (tested on Radeon RX 9070, driver
32.0.32029.2010),CreateComputePipelineStatecrashes insideamdxc64.dll(0xC0000005access violation, as reported in #3) onCS_RaytracingResolvevariants whenVICTORY_SHADER_OPTincludesREUSE(4).Bisecting
VICTORY_SHADER_OPTisolated the crash specifically toREUSEdeduplicatingdx.op.annotateHandleacross basic blocks incrates/victory-shader/src/emit/bitcode/opt.rs.Fix
Classify
dx.op.annotateHandleasEffect::Lanesinbitcode::opt::effect:annotateHandleinstead of reusing one from a dominating block across control flow.LOADScan still merge redundant reads within a block) and dead-code removal (DEAD) are preserved.annotateHandleis a DXIL metadata annotation and emits no GPU instructions, so there is no runtime cost.Verification
an_annotated_handle_is_not_reused_across_blocksincrates/victory-shader/src/emit/bitcode/opt.rs.cargo test -p victory-shader,cargo clippy -p victory-shader --all-targets -- -D warnings, andcargo xtask policyall pass.32.0.32029.2010) with fullVICTORY_SHADER_OPTenabled:dxil.dll, and created D3D12 pipelines (both default and withVICTORY_VIEW_LIMIT=1000000, vs 5/5 crashing before).CS_RaytracingResolveset: 1,000 / 1,000 emitted, validated, and created D3D12 pipelines (EXIT=0, 0 crashes).AI-assisted (Antigravity / Gemini 4 Neon); verified locally on an AMD Radeon RX 9070 with my own copy of the title. Hashes and counts only; no game data.