Tests: add WARP cases for integer gathers and 8/16-bit formats #60
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!60
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/60/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?
@heresfilly09 on GitHub · 2026-11-26 13:19 UTC · original
heresfilly09:contrib/warp-integer-gather-tests→main· +89 −2 · 2 files · 2 commits · merged 2026-11-26 13:48 UTCSummary
image_gather4test cases for uint and sint typed viewsimage_loadtest cases for R8_UINT and R16_UINT formatsTextureResource.TexelBytesto handle sub-32-bit texel sizesGather()helper alongside existingLoad()helperCovers the gaps described in #38.
Test plan
@ThatRecompDev on GitHub · 2026-11-26 13:25 UTC · original
thanks for picking this up! ran it here on WARP: the gather cases pass, nice
the 4 new load cases (r8/r16, direct and not) throw an IndexOutOfRangeException in the test itself though, at TypedViewCases.cs:310.
Load()expectstexels[thread.Id & 7], which works for 32-bit formats, but for r8/r16 the array holds packed words (4 or 2 texels each) so it's shorter than 8the expected value for those should be the unpacked texel, so something like passing an expected-value func into
Load(id => idfor r8 since each byte holds its index,id => id + 100for r16), or a separateLoadPackedhelperwith that fixed i'm happy to merge it
@ThatRecompDev on GitHub · 2026-11-26 13:48 UTC · original
merged, thanks! all 14 new cases pass here on WARP now. that covers #38