Tests: compute cases bind their literal sampler; the integer gathers clamp on NVIDIA too #62
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/ThatRecompDev--five-star-recomp!62
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-62"
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?
@guialmm on GitHub · 2026-11-26 17:42 UTC · original
guialmm:fix/compute-case-literal-sampler→main· +10 −4 · 4 files · 1 commits · merged 2026-11-27 08:00 UTCOn a real GPU,
TypedImageViewWarpTestsfails forcs_typed_uint_gatherandcs_typed_sint_gather(bothdirectvalues): the edge lanes read one texel off, e.g.0xa0000004for0xa0000007. This is the "integer gather off by a texel" item from #9.Why. As @upipibi worked out in #9: the gather samples its literal S#, which reads the desktop sampler at its
StaticSamplerslot, butComputeCasebinds no samplers, so that slot is empty. WARP treats the empty slot as clamp and NVIDIA as wrap, so every lane whose x+1 or y+1 is past the edge reads texel 0.Change. Tests only:
ComputeCasetakesSamplers, like the pixel cases, andComputeCaseRunnerpasses them in its three bindings.PixelMemoryCases.LiteralSampler(nowinternal), for the S# they set (0x92, 0xc00000, 0x4000000, 0).Checked on an RTX 3060 (12 GB, driver 32.0.16.1714), Windows 11, on
mainb1b6655:dotnet build FiveStar.slnx: no warnings.FIVESTAR_TEST_ADAPTER=hardware,TypedImageViewWarpTests: 4 failed before, 28 of 28 pass after.TypedImageViewWarpTests28 of 28; whole shader project 550 passed, 14 skipped, 0 failed;FiveStar.Architecture.Tests31 of 31.AI-assisted (Claude Code, Claude Opus 5.5): wrote the change from the diagnosis in #9 and ran the tests above on my machine.
@ThatRecompDev on GitHub · 2026-11-26 21:32 UTC · original
this is exactly the fix upipibi described in #9, small and tests only. ran the shader suite here with it, all green on WARP. it'll go in with the translator batch since we tested them together, thanks for picking it up
@ThatRecompDev on GitHub · 2026-11-27 08:01 UTC · original
merged with the translator batch (
976cc3e3), thanks! shader suite on the merged tree: 581 passed, 0 failed.