mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 09:28:37 +00:00
test_carry_exec_mask (#1109) and test_wave64_vcc_half_write (#1125) stored through a V# with word3 = 0, which is OOB_SELECT 0 (structured with offset) with stride 0: since #1104 every store is out of range, as on RDNA2, and the tests read back nothing. They now use the raw-buffer V# (OOB_SELECT 3) the other semantic tests use. test_shader_checks counts the third vk_store_test check (#1136) and its fake harness answers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -31,7 +31,7 @@ import rdna2spirv # noqa: E402
|
||||
import spirv_mini_interp as si # noqa: E402
|
||||
|
||||
STUB_DXBC = b"DXBC" + bytes(24) + struct.pack("<I", 0) + bytes(4)
|
||||
VSHARP = [0, 0, 0xFFFFFFFF, 0]
|
||||
VSHARP = [0, 0, 0xFFFFFFFF, 0x31016FAC] # OOB_SELECT 3 (raw): stores are in range up to num_records (#1104)
|
||||
SENTINEL = 0xDEADBEEF
|
||||
ENC4 = " ; encoding: [0x00,0x00,0x00,0x00]"
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ import spirv_mini_interp as si # noqa: E402
|
||||
|
||||
M32 = 0xFFFFFFFF
|
||||
STUB_DXBC = b"DXBC" + bytes(24) + struct.pack("<I", 0) + bytes(4)
|
||||
VSHARP = [0, 0, 0xFFFFFFFF, 0] # s[0:3]: raw buffer, any offset in range
|
||||
VSHARP = [0, 0, 0xFFFFFFFF, 0x31016FAC] # s[0:3]: raw buffer (OOB_SELECT 3), any offset in range
|
||||
|
||||
# (instruction, size in bytes). VCC lane i = bit (i & 31) of (s4 if i < 32 else s5).
|
||||
BUILD_VCC = [
|
||||
|
||||
@ -25,10 +25,10 @@ PARTIAL = {n for n, _ in check.W64X_PARTIAL}
|
||||
WAVE32_WORDS = {n: w for n, w in check.CS_DUMPS if n in check.WAVE32_DUMPS and n not in ("cs_store", "cs_smem_soffset_imm")}
|
||||
|
||||
|
||||
# every test check.py runs: compute, cs_wavemask, cs_fmt_1010102, the dumps (#73, #152 cross-half, partial), the two store
|
||||
# tests, pixel tests, the two-mip draws, the gradient samples and three mesh fixtures (skipped here: build.py
|
||||
# every test check.py runs: compute, cs_wavemask, cs_fmt_1010102, the dumps (#73, #152 cross-half, partial), the three
|
||||
# vk_store_test checks (cs_imgstore, cs_imgload, cs_imgload_d16), pixel tests, the two-mip draws, the gradient samples and three mesh fixtures (skipped here: build.py
|
||||
# does not build mesh shaders)
|
||||
TOTAL = (len(check.COMPUTE) + 2 + len(check.CS_DUMPS) + len(check.W64X_DUMPS) + len(check.W64X_PARTIAL) + 2
|
||||
TOTAL = (len(check.COMPUTE) + 2 + len(check.CS_DUMPS) + len(check.W64X_DUMPS) + len(check.W64X_PARTIAL) + 3
|
||||
+ len(check.PIXEL_TESTS) + len(check.CLIP_TESTS) + len(check.BOUNDS) + len(check.GLOBAL_OFFSET)
|
||||
+ len(check.MIP_TEST_PASSES) + len(check.GRADIENT_TESTS)
|
||||
+ 8) # three mesh fixtures, ps_tex, cs_cmpx_class_f32, cs_user_sgprs, cs_cvt_f32_sat and ps_gather_wrap
|
||||
@ -107,7 +107,7 @@ class Wave64Checks(unittest.TestCase):
|
||||
return 0, "out[0..7] = " + " ".join(map(str, (WAVE32_WORDS[name] + [0] * 8)[:8])) + "\n"
|
||||
if name == "cs_workgroup_yz": # #186: vk_compute_test's 2x3x4 Y/Z histogram line
|
||||
return 0, "2x3x4 workgroup Y/Z: 0 mismatches\n"
|
||||
if name in ("cs_imgstore", "cs_imgload"):
|
||||
if name in ("cs_imgstore", "cs_imgload", "cs_imgload_d16"): # vk_store_test checks
|
||||
return 0, "0 bad\n0 bad\n0 bad\n"
|
||||
return 0, "0 mismatches\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user