diff options
| author | x2Tweek <x2Tweek@users.noreply.github.com> | 2026-11-22 21:04:02 +0100 |
|---|---|---|
| committer | x2Tweek <x2Tweek@users.noreply.github.com> | 2026-11-22 21:04:02 +0100 |
| commit | a7a062c0db0e1bde3c32f2764315b0ee6d887674 (patch) | |
| tree | 7911b18dd25945cbee57131a387583a418b9288d /runtime/opus_decoder | |
| parent | 162821017ea3c286c8bec860f3ff94f037912061 (diff) | |
test(semantic): add translation test for v_bfm_b32
Adds tests/semantic/test_alu_bfm_b32.py — semantic translation tests for
RDNA2 32-bit bitfield mask v_bfm_b32, translating a synthetic pixel-shader
listing through rdna2spirv.translate() -> SPIR-V -> spirv_mini_interp and
comparing against a plain-Python reference ((1 << (width & 31)) - 1) <<
(offset & 31).
Covers basic mask generation, width 0 -> all zeros, width 31 -> all ones
below bit 31, offset up to 31, 5-bit masking of width/offset values, and a
negative control. No translator/runtime changes — pure test coverage.
Standard library only; no GPU; no game data.
5 passed, 12 subtests; compileall clean.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder')
0 files changed, 0 insertions, 0 deletions