xshader: allow spare SRC2 v_fmac_f32 against a mesh root address #440
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/440"
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?
Imported from brcly/TuxBox. Originally posted by s3rius on 2026-11-29T04:29:15Z.
Summary
The descriptor-dataflow check in the mesh emitter refused any instruction that used a mesh root address as shader data. Its allow-list covered descriptor construction, v_mbcnt_* with the spare SRC2, and VOP3 spare-SRC2 forms (v_cmp_*, v_mul_f32, v_and_b32, …), but not v_fmac_f32 — which is a two-input VOP3 with a spare SRC2 field that decodes as s0. Both concrete failing mesh pipelines (CascadeShadows 08caa2fb… and TransformD 5fe7aacac…) refused with mesh root address used as shader data at 0xb90 and 0x3f4 respectively, ~26 pipelines in one ProjectScarlett run. The fix adds v_fmac_f32 to the spare-SRC2 allow-list, exactly mirroring the accepted handling of other two-input VOP3s and keeping v_fma_f32 ineligible (it is a genuine three-input instruction). Verified by: offline translation of both real failing shaders (now exit 0, HLSL coherent), both shaders producing .cso in the new runtime cache, 572 compiler tests passing, including a new regression test that fails without the fix, and a full game run whose failure record no longer contains the mesh-root-address bucket. The driver-compile, wave-32-width, readlane-non-uniform-loop, and remaining s_load … root table pointer refusals are unchanged and out of scope.
Tested
Run the checks relevant to this change.
GPU, driver and backend:
Commands run and their results:
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:
Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-11-29T08:07:59Z.
Verified head
1bce4028on AMD RDNA 2 across both local adapters (Mesa RADV 26.3.1, GE-Proton11-14, Linux 7.3.6):1002:73bf(AMD Radeon RX 6900 XT): all 11tuxbox.py checksteps passed (114/114Lanes & fixtures,22/22D3D12 regression controls, shader translator on GPU, all CPU/CI suites including Python tests).1002:164e(AMD Raphael Radeon 610M): all 11tuxbox.py checksteps passed (113/113Lanes & fixtures,22/22D3D12 regression controls, shader translator on GPU, all CPU/CI suites including Python tests).