xshader, triage: harden the run-time sampler-heap fetch and the triage CLI #33
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/brcly--TuxBox!33
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/33/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?
@NathansDomainSolutions on GitHub · 2026-11-24 05:51 UTC · original
NathansDomainSolutions:fix/heap-sampler-hardening→main· +23 −3 · 3 files · 1 commits · merged 2026-11-24 05:58 UTCSmall follow-ups to #31 and #29 found in a review pass. None of them change translation output.
xshader (
hlsl.rs, from #31)s_loadat a dynamic soffset now skips SGPRs that already hold a statically resolvedSym::SamplerOffset, which keeps their existing path. Today the two layouts don't overlap:compute_heaprequires no resource base, whileSamplerOffsetneeds the raster root-constant layout. This makes that explicit rather than depending on the branch order.({offset} >> 4)needs no base index: the guest sampler-heap pointer is the heap start, the same as on the static path.triage (
tools/triage_scarlett_shaders.py, from #29).stencilrequest with no_rt<N>suffix is now recorded as afailedentry. Before,IndexErrorwas raised inside the worker pool and aborted the whole run.--limitrejects negative values. Before,--limit -1silently dropped the last request.Testing
python -m unittest tests.test_triage_scarlett_shaders: 7 pass.cargo testfor shader-compiler: 63 pass.xshaderover 6,977 recorded ProjectScarlett requests. Exit codes and HLSL output are identical for all of them.This PR was prepared with AI assistance (Claude Code) and reviewed before submission.
🤖 Generated with Claude Code