#2887 added the fixture to the M2 build; with no entry in OTHER_HARNESS the GPU suite reported it as
"no checker defined".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
op_sel:[FI, BOUND_CTRL] decides what a lane gets when the lane it reads is off in EXEC (or absent from a
workgroup smaller than the wave): FI=1 reads its value, FI=0 keeps the destination (BOUND_CTRL=0) or writes 0
(BOUND_CTRL=1). Measured on RDNA2 (issue #374). The activity of the source lane is shuffled with absent lanes
redirected first, as ds_lane_read does, and the old destination is a plain load, as dst() does.
cs_w32_permlane_fi (GPU) and test_permlane_fi (CPU); the shuffle-count and destination-select controls of
test_valu_permlane16 follow the extra activity shuffle on the FI=0 path.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
For a whole-wave dump a missing OpFmaKHR was reported as "no 64-wide compute
subgroup" on a device that does have one, because the wave64 rule ran before
the reason the program printed. Read the "unsupported:" line first; without
one the old text stays.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015z45kpL5aWzXuYTbhn6b52
docs/testing.md says a module that needs OpFmaKHR exits 77 (a SKIP) on a
device without VK_KHR_shader_fma, but only the fragment module was checked
in vk_harness, and vk_texture_test, vk_sampler_test and vk_bindless_test
never refused the vertex module (vs_ids carries FMAKHR). Under
LEONIDA_FMA=khr such a pair failed vkCreateGraphicsPipelines with -13 and
run_gpu_tests.py reported a FAIL.
ShaderFma::accepts_file() checks one module file. vk_harness (vertex module,
VKH_MESH_COMPUTE module), vk_texture_test, vk_sampler_test and
vk_bindless_test use it for every stage; vk_sampler_test also enables the
feature when the device has it, like the others. judge_cs_dump treats exit 77
with an "unsupported:" line as a skip for the non-wave64 dumps too
(cs_w32_new_ops).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015z45kpL5aWzXuYTbhn6b52
ps_interp_f16_high (also drawn by ms_f16_pack) and ps_ij_computed still
unpacked their readbacks with a bare struct.iter_unpack("<4I", ...): a
file whose size isn't a multiple of 16 raised struct.error, a missing
one FileNotFoundError, and nothing caught either, so the run ended there
and every other test's result was lost. They now read it like #3442's
Mandelbrot fix, read_raw_u32(raw) if the file exists, else no pixels,
which the checkers already report as a failure of that test.
tests/test_run_gpu_readback_size.py: the suite with the harness stood
in for, a missing, empty, partial-pixel and one-byte-short readback for
each test (6 of the 8 cases crash the suite on main).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
global_atomic_*, global_atomic_*_x2, buffer_atomic_*_x2 and the 8/16-bit
global stores and d16 loads were merged with semantic tests only.
cs_global_mem_ext.asm, laid out like cs_global_neg_offset (40 groups, one
thread, heap offsets as addresses), seeds a heap and stores eight words;
check.py (GLOBAL_OFFSET) and run_gpu_tests.py expect them.
tests/semantic/test_global_mem_ext_fixture.py runs the fixture on the
CPU against values computed in the test and checks both runners expect
the same words. test_shader_checks.py's fake harness answers every
GLOBAL_OFFSET entry.
Signalling NaNs and a denormal through -v, |v| and -|v| on src0 and src1.
On an RTX 5060 Ti (driver 621.14) the old FAbs path gave 0x7fffffff for
|0xff800001| (the driver's canonical NaN); with the sign-bit moves all
4096 pixels are exact.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The raw-barycentric tests draw with vs_ids, where clip w = 1 at every vertex, so nothing checked that the raw
i/j (and the attributes) follow perspective-correct weights. vs_persp draws one triangle at screen (5,8),
(57,16), (21,55) with clip w = 1, 2, 4 and per-vertex attr0; ps_persp_bary is ps_bary's code drawn with it.
check.py's bary_persp_problem compares every pixel with CPU weights p_k = (l_k / w_k) / sum(l_m / w_m) from the
screen-space weights l_k, checks that pixels outside stay clear, and requires the affine weights to differ by
more than 100x the tolerance on every judged pixel, so a NoPerspective regression can't pass. run_gpu_tests.py
uses the same reference (PIXEL_VS, DRAWN_WITH). Suggested by Vonsek in #794.
On main it runs the native BaryCoordKHR path (it skips without VK_KHR_fragment_shader_barycentric, like
ps_bary); any barycentric fallback that lands (#804) is exercised by it too. Checked on an RX 5700 XT (RADV)
through a GS fallback: passes at wave32 and wave64; with NoPerspective on the fallback's input, all 1149
covered pixels fail while the interpolated attributes still match. New tests/test_bary_persp_oracle.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ps_fnan_med3 puts its NaN in S0 only, so no GPU test reached the cases
ps_fnan_med3_s2 (f32) and ps_f16_fnan_med3 (f16), with inputs read from
memory at run time and words derived from the measured rule in
docs/design.md (with any NaN operand, med3 is min3 with the NaNs
ignored). The all-NaN case is left out: its payload is not modelled.
Registered in check.py and run_gpu_tests.py; the semantic fixtures and
GpuFixtures tests run them through the interpreter, where the
translator before #2029 fails them (undefined FClamp on a NaN).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nineteen rows show the last output line of a test program that judges itself
(cs_wavemask, cs_lds, cs_exec64, cs_bvh, cs_bvh32, the vk_store_test,
vk_texture_test and vk_bindless_test rows). A program that died before its
verdict had only printed its device or extension line, or nothing, so the row
read "FAIL ps_tex" or "FAIL cs_sample_lz_int_d16 device: ..." (#3174).
verdict_line() keeps the last line for exit 0 and uses check.py's failure()
otherwise: "exit -11: device: ...", "exit 3221225477: no test output". The
texture-constant rows no longer report "4096 pixels differ" for a frame that
was never read. Pass/fail and the suite's exit code do not change.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On Windows, spirv-as, spirv-val and the GPU test programs read their command line in the ANSI code page, so a folder
name with a character outside it (a Cyrillic or CJK user name, as under %TEMP%) reached them as '?' and every shader
failed with "file does not exist": run_gpu_tests.py's default work folder broke for such users, and so did
make_game.py's shaders stage under such a work folder.
- assemble_spirv pipes the .spvasm into `spirv-as -` and runs both tools in the output folder with the staging file's
bare name, so no path reaches them.
- run_gpu_tests.py runs the suite in the work folder's 8.3 short name when its path doesn't fit the code page, and
stops with one error line when the volume keeps no short names.
- tests/test_native_tool_paths.py: 8 tests with a private-use character in the folder name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 64-bit fold itself landed with #1948. This adds what #1938 still carries:
two semantic tests (a constant sOFF of -4 is out of bounds, not a 32-bit
wrap; a constant sOFF of 2^20 is not sign-extended) and the GPU fixture
cs_smem_sconst_off. Its run-time sOFF is now in range (4): an out-of-range
run-time sOFF made llvmpipe do the guarded load and segfault (review on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>