[Good First Issue] Add RDNA2 shader instruction regression tests (value-level CPU reference vs live GPU readback) #5

Closed
opened 2026-11-26 19:10:41 +00:00 by github-bot · 0 comments
Owner

@⁠californiaAlmonds on GitHub · 2026-11-21 17:37 UTC · original

Goal

Expand tests/test_rdna2_lifter_live.cpp with focused, value-level regression tests comparing our RDNA2 disassembler + lifter output against expected golden values on live D3D12 (SM 6.5 DXIL) and Vulkan (SPIR-V 1.3 via spirv-val):

  • Bitfield extract/insert edge cases (V_BFE_U32, V_BFE_I32, V_BFI_B32 with offset+width >= 32)
  • Half-float (f16) transcendental & compare ops (V_CMP_LT_F16, V_ADD_F16, V_MUL_F16)
  • Cross-lane subgroup ops (V_PERMLANE16_B32, V_READLANE_B32, wave ballot/prefix sum)
  • V_CMPX_* direct EXEC-mask writes inside divergent branches.

Acceptance criteria

  • Passes spirv-val + dxc.exe SM 6.5 with zero validation errors.
  • Matches golden CPU output bit-for-bit on both hardware GPU and WARP.
**@⁠californiaAlmonds** on GitHub · 2026-11-21 17:37 UTC · [original](https://github.com/californiaAlmonds/OpenScarlett/issues/5) ## Goal Expand `tests/test_rdna2_lifter_live.cpp` with focused, value-level regression tests comparing our RDNA2 disassembler + lifter output against expected golden values on live D3D12 (SM 6.5 DXIL) and Vulkan (SPIR-V 1.3 via `spirv-val`): - Bitfield extract/insert edge cases (`V_BFE_U32`, `V_BFE_I32`, `V_BFI_B32` with offset+width >= 32) - Half-float (`f16`) transcendental & compare ops (`V_CMP_LT_F16`, `V_ADD_F16`, `V_MUL_F16`) - Cross-lane subgroup ops (`V_PERMLANE16_B32`, `V_READLANE_B32`, wave ballot/prefix sum) - `V_CMPX_*` direct `EXEC`-mask writes inside divergent branches. ## Acceptance criteria - Passes `spirv-val` + `dxc.exe` SM 6.5 with zero validation errors. - Matches golden CPU output bit-for-bit on both hardware GPU and WARP.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:10:41 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.