Tests: add WARP cases for integer gathers and 8/16-bit formats #60

Manually merged
github merged 2 commits from gh-pr/60/head into gh-pr/60/base 2026-11-27 03:16:19 +00:00
Owner

@⁠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 UTC

Summary

  • Add image_gather4 test cases for uint and sint typed views
  • Add image_load test cases for R8_UINT and R16_UINT formats
  • Extend TextureResource.TexelBytes to handle sub-32-bit texel sizes
  • Extract shared Gather() helper alongside existing Load() helper

Covers the gaps described in #38.

Test plan

  • Solution builds with zero warnings
  • All 28 typed view test cases listed by the test runner (14 existing + 14 new including direct variants)
  • CI WARP runner passes new cases (local WARP hits root signature version gap on all typed view tests)
**@⁠heresfilly09** on GitHub · 2026-11-26 13:19 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/pull/60) `heresfilly09:contrib/warp-integer-gather-tests` → `main` · +89 −2 · 2 files · 2 commits · merged 2026-11-26 13:48 UTC ## Summary - Add `image_gather4` test cases for uint and sint typed views - Add `image_load` test cases for R8_UINT and R16_UINT formats - Extend `TextureResource.TexelBytes` to handle sub-32-bit texel sizes - Extract shared `Gather()` helper alongside existing `Load()` helper Covers the gaps described in #38. ## Test plan - [x] Solution builds with zero warnings - [x] All 28 typed view test cases listed by the test runner (14 existing + 14 new including direct variants) - [x] CI WARP runner passes new cases (local WARP hits root signature version gap on all typed view tests)
Cover the gaps from issue #38: image_gather4 on uint and sint views,
image_load on R8_UINT and R16_UINT textures. Extend TextureResource
to handle sub-32-bit texel sizes.
Load() indexes texels[thread.Id & 7] which overflows for sub-32-bit
formats where the array holds packed words, not one-per-texel. Use a
separate LoadPacked helper that takes an expected-value func instead.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:16:16 +00:00
github manually merged commit c918655834 into gh-pr/60/base 2026-11-27 03:16:19 +00:00
Author
Owner

@⁠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() expects texels[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 8

the expected value for those should be the unpacked texel, so something like passing an expected-value func into Load (id => id for r8 since each byte holds its index, id => id + 100 for r16), or a separate LoadPacked helper

with that fixed i'm happy to merge it

**@⁠ThatRecompDev** on GitHub · 2026-11-26 13:25 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/pull/60#issuecomment-7193332158) 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()` expects `texels[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 8 the expected value for those should be the unpacked texel, so something like passing an expected-value func into `Load` (`id => id` for r8 since each byte holds its index, `id => id + 100` for r16), or a separate `LoadPacked` helper with that fixed i'm happy to merge it
Author
Owner

@⁠ThatRecompDev on GitHub · 2026-11-26 13:48 UTC · original

merged, thanks! all 14 new cases pass here on WARP now. that covers #38

**@⁠ThatRecompDev** on GitHub · 2026-11-26 13:48 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/pull/60#issuecomment-7193872977) merged, thanks! all 14 new cases pass here on WARP now. that covers #38
This discussion has been locked. Commenting is limited to contributors.
No description provided.