xshader: gate CbDyn and tbuf_uint vector loads on exec_lo #549
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/549"
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 glovepost on 2026-11-29T21:31:40Z.
Summary
Split 2 of 3 from #522 per @brcly's review (alongside #547 for CLI
--capabilities/--stride-report/--stride-hints, and #522 narrowed to stage-aware loop guards).Gate vector MUBUF loads (
tbuf_uintandCbDynindexed/unindexed constant buffer loads) onexec_lointools/shader-compiler/src/hlsl/emitter/buffer.rsso inactive lanes match the existingexec-mask gating used by raw, structured, and typed buffer loads. Addsstructured_typed_and_cbdyn_mubuf_loads_guard_with_exec_maskintools/shader-compiler/src/tests/hlsl/raw_width.rs.Verification
DXC=<dxc> python3 tuxbox.py check --no-gpu): 9/9 passed:711Python tests631shader compiler lib tests +1bin test +2integration tests (includingstructured_typed_and_cbdyn_mubuf_loads_guard_with_exec_mask)116DXBC tests24XG layout +7XG entry point tests22storage codec tests9ACP HAL tests65/65check_translator_gpu.pychecks (includingbuffer-loadsanddynamic-cbv) and126/126tuxbox.py verifychecks on both NVIDIA RTX 2070 SUPER (10de:1e84) and AMD RX 9070 XT (1002:13c0).AI-assistance disclosure
Prepared and verified with AI-assisted coding tools (submitting contributor verified builds, diffs, and test runs).
Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T22:02:59Z.
Heads-up: we rewrote
main's history tonight (one commit per merged PR, to drop files that came in with intermediate commits), and this branch is still based on the oldmain(on the old #512 merge,39463ea5). That's why GitHub now shows it with dozens of commits that aren't yours. Your own commits are the ones after39463ea5; this replays only those onto the newmain:Sorry for the extra step.
Imported from brcly/TuxBox. Originally posted by glovepost on 2026-11-29T22:20:25Z.
@brcly Rebased #549 cleanly onto rewritten
main(6bab5478, single commitf00ddbc2).DXC=<dxc> python3 tuxbox.py check --no-gpupassed9/9. ProjectScarlett was not run against this rebased commit.Imported from brcly/TuxBox. Originally posted by glovepost on 2026-11-30T00:27:38Z.
Rebased onto
main(f482572a, commit917adada25d2) with no functional changes fromf00ddbc2, and ran the changed GPU checks on NVIDIA:TUXBOX_CHECK_JOBS=4 DXC=<dxc> python3 tuxbox.py check --changed --adapter 10de:1e84 --proton <proton> --prefix <prefix> --windows-dxc <windows-dxc>10de:1e84), driver620.73.04,GE-Proton11-14Lanes and fixtures on the GPU(lanes-bindless-compute,lanes-compute-root,lanes-compute-root-recovery,lanes-raster-tables,lanes-shader-cache) andShader translator on the GPUall passed (13 passed, 0 failed, 0 not run).Evidence: TuxBox check of 917adada25d2, no uncommitted changes, GPU 10de:1e84: 13 passed, 0 failed, 0 not runImported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T01:13:21Z.
The AMD check you were missing, on
917adada: AMD iGPU (1002:13c0, RADV, Mesa 26.0.8, GE-Proton11-14, Linux), fullpython tuxbox.py check: 199 pass, 0 fail. A game was loading on the other card during part of it. ProjectScarlett wasn't run on this commit.Evidence: TuxBox check of
917adada25, no uncommitted changes, GPU 1002:13c0: 14 passed, 0 failed, 0 not runImported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T04:12:13Z.
Heads-up: main just landed a large cleanup (up to
e5d2e913), so this PR needs a rebase.rustfmt.toml).unwrap(), lossyascasts and undocumentedunsafeoutside tests.cargo fmt --check, rustdoc with warnings denied, and Miri on the providers' unit tests.The least painful way is to format your branch first, so the rebase only shows real changes:
Then run
python tuxbox.py check --no-gpu, which now includes the format step.If clippy flags something new:
Fromfor widening,TryFromfor narrowing, and a mask for bit fields.unwrap(): use?, orexpectwith the reason it can't fail.unsafeblock: it needs a// SAFETY:comment.CONTRIBUTING's "Code checks" section lists the commands. Thanks!