Shaders: a buffer's size is asked through a non-uniform handle of its own (AMD's compiler crash at amdxc64.dll+0x861b9f) #1213
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/fxceless--victory-fork!1213
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1213"
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?
@IxMxAMAR on GitHub · 2026-11-26 00:15 UTC · original
IxMxAMAR:shaders/amd-compiler-crash→main· +155 −2 · 4 files · 1 commits · openFixes the AMD shader-compiler crash at
amdxc64.dll+0x861b9f(a null read) for the title's compute programs that read a buffer's size from its descriptor. Reports of that offset: #120, #145, #505, #881 here; Marvisak/VIctory#1783, #1785 and #2517 upstream.Cause
getDimensionsthrough the uniform heap handle that the buffer's loads use, and the process ends.main32b31f7, each made alone withvictory translate --pipelines(RX 9070 XT, driver 32.0.32029.2010):f16876929fa64f9fbvh_skinning:CSComputeSkinningTreeAnimVelocity878933b499cfa14dbvh_skinning:CSComputeSkinningTreeAnima567b9ef845fb680bvh_skinning:CSComputeTreeAnimc1eee35dbc50a9efGpuParticleUpdate:CS_UpdateSkinnedAttachMeshTreeParticles27ce027e7188bed3ped_standard_lod_muv_emissive:CS_RaytracingResolveVICTORY_SHADER_OPT=0), the first and the fourth still crashed.Change
descriptor_datamakes a heap handle of its own for a buffer's size, marked non-uniform (Shader::size_handle). It isn't counted innonuniform_handles, since its index is the same in every lane.main.Relation to #984
878933b499cfa14d,a567b9ef845fb680,27ce027e7188bed3); the other two still crash.Tests
dims_tests: the program's pipeline compiles on the hardware GPU and on WARP. On the RX 9070 XT without the change, the test process ends insideamdxc64.dll.cargo test -p victory-shader -p victory-gpu --all-featureson32b31f7: victory-shader 217 passed. victory-gpu 202 passed and 1 failed:indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, which fails the same way here without this change (3 of 3 runs each way).victory translate shaders.rpf --pipelinesover the whole archive with this change: every emitted program got its host pipeline (14,199 vertex/pixel, 2,675 compute, 8,762 mesh), and nothing crashed. Without it, each of the five above ends the process.@IxMxAMAR on GitHub · 2026-11-26 01:49 UTC · original
In game on an RX 9070 XT (driver 32.0.32029.2010),
32b31f7+ this PR + #1195, only42683eebec081520skipped: the save we load usesf16876929fa64f9f(bvh_skinning:CSComputeSkinningTreeAnimVelocity). Run 23, without this PR, ended inamdxc64.dll+0x861b9fon it. With it, runs 24 and 25 (17 and 22 minutes, into the next mission) had no compiler crash.jmehru/victory-amd-rx9070#5 hit the same four programs on an RX 9070 with the same driver and builds them with #195 + #452. This PR alone builds all five on
32b31f7.Upstream, Marvisak/VIctory#1785 bisects the end of the same fault to 850b66f ("one handle per descriptor at a fixed address, and per join").
@KingKaom on GitHub · 2026-11-26 14:55 UTC · original
Confirmed on our side: merged
#1213into current tip58de9bf(merge head9dcdf08), release build, run on RX 9070 XT (RDNA4), driver 32.0.32029.2010.0xc0000005read of0x8atamdxc64.dll+0x861b9f); with the merge: zero first-chance and zero unhandled exceptions for the whole session.This is the furthest this fork has come on our card. Thanks for the diagnosis.
Tested on RX 9070 XT (RDNA4), measured
AI-assisted (Hermes Agent)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.