c0ac5fd6 registered the test with SKIP_RETURN_CODE 77, but the test never
returns 77: a machine without a Vulkan ICD (the Windows CI runner) failed
vk.create() and returned 1, so the whole CPU runtime job went red on main.
Return 77 there like d3d12_copy_xfmt_test and the other registered tests.
Lane 0 of cs_dpp_bound has an invalid row_shr source and bound_ctrl:1, so it writes op(0, 10)=10; this pins the zero-filled src0 path for a VOP2 op. out[0..7] is 10 10 11 12 13 14 15 16 on the RTX 3070.
Three hand-written fixtures for translator rules that no test exercised
(or that only the CPU interpreter checked), expected words derived from the
RDNA2 ISA definitions in each .asm header:
- ps_vcmp_f32_nan: f32 VOPC with a quiet NaN read from memory. v_cmp
ge/lg/neq/nge (VCC) and ngt/nle/nlt/tru (SGPR), v_cmpx
ge/lg/nge/nlt/neq/o/tru/f.
- ps_vcmp_64: v_cmp lt/le/gt/ge u64 and i64, ne_u64, eq/ne_i64, v_cmpx
lt/ge/ne_i64 and gt/le_u64, with pairs where equal high words leave the
decision to an unsigned low word (0x80000000 vs 1).
- cs_w32_andn2_exec: s_andn2_saveexec_b32 and s_andn2_wrexec_b32 in a
32-thread wave: the EXEC they leave, old/new EXEC in D, SCC.
Registered in check.py and run_gpu_tests.py, added to regen_fixtures.py,
and asserted in test_value_semantics.py with plain-Python references.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/design.md marked four translator rules "not GPU-verified": v_cmp(x)_nlg,
v_cvt_off_f32_i4, the VOP3 output modifiers on v_fmac_f16 and
v_interp_p2/mov_f32, and VOP3 FP modifiers on constants. This adds one pixel
fixture per rule group, each writing four constant mrt0 words derived in its
header: ps_cmp_nlg, ps_cvt_off, ps_fmac_f16_mods, ps_vop3_const_mods,
ps_interp_f32_mods and ps_interp_mov_mods. The two interp fixtures are drawn
with a new vertex shader, vs_interp_consts, whose params are constant over the
triangle.
Every word is a normal float or zero, so the R32G32B32A32_SFLOAT target can't
change it. All six are wired into check.py and run_gpu_tests.py.
tests/semantic/test_rule_gpu_fixtures.py checks that the interpreter, both
runners and the headers agree. run_gpu_tests.py now skips only
ps_interp_f16_high under --bary-fallback, as check.py does, rather than every
PIXEL_VERTEX fixture.
On a Tesla V100 (NVIDIA 580.95.05, Linux), all six write their words on 4096
of 4096 pixels, natively and with LEONIDA_W64_EMULATE=1
LEONIDA_BARY_FALLBACK=1. docs/design.md now cites them. The integer clamp row
stays with quackottu's part of TEST-175, and the denormal-flush row still
needs an RDNA1/2 part.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cs_barrier_loop is a wave32 test (four waves of 32 in a 128-thread group) but not one of the
WAVE32_LANE_DUMPS, so check.py ran it without VKC_SUBGROUP_SIZE. On a device whose default compute
subgroup is 64 (AMD, subgroups 32..64) it ran as two waves and failed, while run_gpu_tests.py, which
pins every test from index.json, passed it. Found by @WHOISJARDAS.
compute_test() now pins the recorded subgroup size unless the caller set VKC_SUBGROUP_SIZE itself, and
a size the device can't pin is a skip, as for the lane dumps.
RX 9070 (AMD 26.11.2): check.py was 105 of 109 with cs_barrier_loop failing; it's now 106 of 109
(3 skipped), native and with LEONIDA_W64_EMULATE=1; run_gpu_tests.py 118/118.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve real empty ordinary/binary occlusion queries into default-heap predicates at two offsets and check both operators. Add GPU high-word-only overwrites, captured-value preservation, same-address recapture and reset controls. Compare all destination bytes and predicate guards with literal expectations and native WARP; four paired recapture controls change exactly one 13-byte region.
RX 5700 XT with Vulkan validation and synchronization validation: all 16 query-to-copy cases plus 180 existing cases passed, zero validation errors. Native WARP-only controls also passed. Coverage intentionally excludes nonzero visible-draw occlusion counts.
Verify compute and transfer readback-stage collection, descriptor cleanup after failed submits and gated/reused batches. Extend binary and overlapping occlusion fixtures with independent destinations to check skipped-copy preservation and copying after predicate reset. Document the command-slot lifetime and queue integration.
Local RX 5700 XT validation: 180 exact WARP comparisons, 64 gated/reused copy submissions, both occlusion controls, 192 predicate captures, replay A-G and 1663 existing WARP readbacks passed. CTest: 59/60 active tests passed; the six stencil CopyResource mismatch reports exactly match the tested #856 baseline. Shader source and embedded SPIR-V match after Vulkan 1.2 validation.
Build on the full 64-bit predicate snapshots from #856. Replay predicated buffer copies through a storage8 compute helper, retain descriptor batches through timeline completion, and reject missing capabilities or active statistics queries before submitting work.
Validate byte offsets, high predicate words, bounds, skipped destinations and pending descriptor lifetimes with CPU checks, 180 native WARP comparisons and 64 gated/reused GPU submissions. The existing OPTIONS19 host-capability mismatch also reproduces on base 4a36bb1; no tests are disabled.
The exhaustive compute readback was built on CI but missing from its test list. Preserve device initialization failures and let CTest distinguish an unavailable GPU from a successful comparison.
cs_dpp_w64 uses v_mbcnt_hi, so it is a wave64 shader; without a 64-wide subgroup it is skipped, and with LEONIDA_W64_EMULATE=1 the DPP source/EXEC exchange goes through %x_buf and produces the same out[0..7] on the RTX 3070.
base_op stripped the _dpp suffix and the op ran as a plain move, so v_mov_b32_dpp quad_perm:[1,0,3,2] exported its own lane and still passed spirv-val. Implement the DPP16 controls (quad_perm, row_shl/shr/ror/share/xmask/mirror/half_mirror), DPP8 (dpp8 + fi), row/bank masks and bound_ctrl. A source lane that is out of range or inactive reads zero under bound_ctrl:1, otherwise the destination keeps its old value. Under --wave64-emulate the exchange goes through the workgroup buffer, like the other cross-lane ops. GPU-checked with cs_dpp*.asm on an RTX 3070.
A translated shader can export NaN in alpha while RGB matches the reference. The previous maximum-error calculation discarded that channel and reported the entire frame as correct.
quantize_unorm/quantize_snorm used std::nearbyint, which follows the thread's
rounding mode (matheuskshn's review): under FE_DOWNWARD 0.5 on 8 bits gave 127
and 0.5 on SNORM8 gave 63. round_half_even uses floor() plus an explicit tie
check, which does not depend on the mode. clear_color_test converts the ties
under FE_DOWNWARD, FE_UPWARD and FE_TOWARDZERO and checks them once the
default mode is back; with nearbyint it fails as above.
d3d12_clear was left out of ctest until this lands (3fc0b21); it is registered
again, with SKIP_RETURN_CODE 77 as before.
- render_target_clear_color: main's integer conversion (every exposed UINT/SINT
format, A2B10G10R10_UINT's 2-bit alpha) with this branch's normalised
rounding (quantize_unorm, quantize_snorm) for the UNORM, SNORM and sRGB-alpha
channels.
- Depth clears: main's D24-as-float conversion, then D16_UNORM through
quantize_unorm.
- Format tables: main and this branch both mapped DXGI R16_UNORM and R8G8_SNORM
and the R8G8_SNORM copy size; the duplicates are dropped.
- clear_color_test: main's table-driven integer checks plus this branch's
normalised and integer cases. The float pass-through loop now uses
R32_SFLOAT and R16G16B16A16_SFLOAT, since R8G8B8A8_UNORM values are rounded.
Without llvm-mc, run_gpu_tests.py, valu_fuzz.py, lds_fuzz.py,
image_fuzz.py, crosslane_fuzz.py and runtime/test/shaders/build.py
ended in 'FileNotFoundError: [WinError 2]' from subprocess.run: the first
step of TEST-71 on a Windows machine without one. Only shader_disasm.py
said what was missing. mc_command.run() starts an llvm-mc command and
turns a command that can't be started into shader_disasm.py's message
(set LLVM_MC or --llvm-mc, build_llvm_mc.ps1, the WSL form); the six
llvm-mc call sites use it. tests/test_mc_command.py covers run() and
each tool with a nonexistent LLVM_MC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Intel UHD 770 reports maximum depth for NaNs in the float comparison path. Check the input encoding before rounding finite values and exercise both signs of every NaN payload on the GPU.
Python's maximum can ignore a NaN after a finite operand. Check every decoded result before reducing pixel errors so a broken high-half export cannot pass both GPU runners.