Commit Graph

479 Commits

Author SHA1 Message Date
aa2dc43f70 Test fragment color modulation through a constant buffer descriptor table 2026-11-24 05:22:56 +08:00
f6a00fc4d8 rdna2spirv: --fma khr covers the f64 FMAs (v_div_fmas_f64) with OpFmaKHR on doubles (#6635)
Squash-merged after diff review of PR #6635
2026-11-23 11:10:12 -06:00
86a7807dd4 Barycentric fallback on by itself on AMD's Windows driver for gfx90c (#5933) (#6828)
Squash-merged after diff review of PR #6828
2026-11-23 10:42:42 -06:00
511e3826ba run_gpu_tests: reuse pre-disassembled work listings (#7332)
Merging after diff review as part of the base pass.
2026-11-23 10:33:34 -06:00
ee93d8ce2a run_gpu_tests, rdna2spirv: support --assembler python, --no-validate, and --disasm-dir (#6676)
Squash-merged after diff review of PR #6676 - run_gpu_tests, rdna2spirv: support --assembler python, --no-validate, and --disasm-dir
2026-11-23 10:05:36 -06:00
43a9c04501 Exercise translated pixel image_load through a matched integer descriptor (#6833)
Squash-merged after diff review of PR #6833 - Exercise translated pixel image_load through a matched integer descriptor
2026-11-23 09:48:21 -06:00
bc773d3073 rdna2spirv: v_pk_mul_lo_u16 forms each half as ((x << 16) * y) >> 16 (#6836)
Squash-merged after diff review of PR #6836 - rdna2spirv: v_pk_mul_lo_u16 forms each half as ((x << 16) * y) >> 16 (AMD driver drops the mask)
2026-11-23 09:45:17 -06:00
ced4057a98 TEST-468/469: GPU test tools request shaderInt64 only when a module declares Int64; vk_bindless_test honours LEONIDA_VK_DEVICE (#2647)
Squash-merged after diff review of PR #2647
2026-11-23 09:35:16 -06:00
8f208d09a2 rdna2spirv: 8/16-bit MUBUF loads and stores (buffer_load_ubyte/ushort/d16, buffer_store_byte/short) (#1864)
Squash-merged after diff review of PR #1864
2026-11-23 09:32:35 -06:00
c26d78af85 rdna2spirv: a pixel lane off at the last color export is not written; without vm, EXEC at the color export decides (#3988)
Squash-merged after review of PR #3988 - rdna2spirv: a pixel lane off at the last color export is not written; without vm, EXEC at the color export decides (measured on RDNA2)
2026-11-23 08:12:32 -06:00
0f2b802a4b rdna2spirv: ds_cmpst_f32 and the global/buffer fcmpswap atomics (#3153)
Squash-merged after review of PR #3153 - rdna2spirv: ds_cmpst_f32 and the global/buffer fcmpswap atomics
2026-11-23 08:12:11 -06:00
3735209c12 TEST-1147: record the FMA mode in shader metadata and honor it in check.py (#5094)
Squash-merged after review of PR #5094 - TEST-1147: record the FMA mode in shader metadata and honor it in check.py
2026-11-23 08:10:46 -06:00
64890ac263 gpu tests: the unsigned view of the implicit 2D integer sample row (#5900)
Squash-merged after review of PR #5900 - GPU test: the unsigned view of the implicit 2D integer sample row, GPU-checked on Intel UHD 630
2026-11-23 08:08:11 -06:00
0e5ccb8c4a Round 44 test clashes: run_gpu_tests reports a --work it cannot create (#4544's message), the readback test pins the PerVertexKHR fallbacks off, ttpf listings skip the decoder record, image_fuzz refuses a file --work before opening the oracle (#4087)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:31:07 -05:00
12a7c6b0e7 Merge pull request #4617 from Lucas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:28 -05:00
f71c9c1d77 Merge pull request #4544 from AGInformatique81
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:46 -05:00
0744b86447 Merge pull request #4542 from d7ommy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:15:45 -05:00
33531bda5b Merge pull request #4262 from gabsilvs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:54 -05:00
222250dd83 Merge pull request #4240 from Exopus
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:40 -05:00
68ac20877b Merge pull request #4225 from 73N1X
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:12:31 -05:00
7e653eb9a3 Merge pull request #4103 from Exopus
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:11:18 -05:00
e2ecb50cf1 Merge pull request #3855 from Oleg Makarov
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:56 -05:00
0f37a1f5cc Merge pull request #3785 from Emma
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:27 -05:00
af1d6a744f Merge pull request #3004 from Moaaz Gewili
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
#	docs/testing.md
2026-11-22 23:06:38 -05:00
c11eec4e7c Merge pull request #2998 from kapitche
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:36 -05:00
3732d3976c Merge pull request #2646 from Dandasma
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:49 -05:00
726cb9c697 Merge pull request #2494 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:05:43 -05:00
2a7d93ebb7 Merge pull request #2220 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:25 -05:00
dcd6063eeb Merge pull request #1760 from Luiz Neves
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:04 -05:00
6509ca2ce1 Merge pull request #1492 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:00 -05:00
2eb5669566 Merge pull request #837 from DANISBR1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:04:57 -05:00
db34711519 Merge pull request #580 from SirAmong
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:04:53 -05:00
da502d4e48 Merge main 7b7d73f8: keep both check imports (failure, run_readback)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 05:43:17 +02:00
7b7d73f890 run_gpu_tests: ps_m2_literal belongs to d3d12_m2_textured_test
#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>
2026-11-22 22:35:23 -05:00
df03a8ae38 run_gpu_tests: ps_live_width is a probe run by w64_graphics.py, not a test with no checker 2026-11-22 22:34:20 -05:00
37e66e90ba GPU tests: preserve wave32 process failures on narrow subgroups 2026-11-22 22:12:41 -05:00
71d8f86853 Translator: v_permlane16/x16 FI=0 and BOUND_CTRL for source lanes off in EXEC (SHADER-74)
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>
2026-11-22 21:37:38 -05:00
c14daecc6b Report GPU test workspace creation errors 2026-11-23 03:16:12 +01:00
7de2d4461b rdna2spirv: ignore omod on f16 results with denormals kept, keep clamp (gfx1036) 2026-11-23 04:39:01 +03:00
87da932770 run_gpu_tests: an unsupported: reason wins over the generic wave64 skip
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
2026-11-22 21:35:01 -03:00
b9a8aca16a GPU tests: skip a draw when any stage needs OpFmaKHR the device lacks
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
2026-11-22 21:19:17 -03:00
c5e6cc5c38 run_gpu_tests: a missing or partial readback fails its test, not the suite
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>
2026-11-23 01:15:02 +01:00
4f760c1aed Shader: isolate wave32 pixel operations in wider subgroups (SHADER-731) 2026-11-22 20:07:05 -04:00
e58a605118 GPU test cs_global_mem_ext: global/buffer atomics, 8/16-bit global stores, d16 loads
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.
2026-11-22 20:53:26 -03:00
9668102f53 GPU test ps_cndmask_sign_mods: v_cndmask_b32 modifiers keep NaN and denormal bits
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>
2026-11-23 00:45:02 +01:00
d2e989c46e Merge main into valu-int-misc (#1492)
runtime/test/shaders/check.py
scripts/run_gpu_tests.py
tests/semantic/regen_fixtures.py
tests/semantic/test_value_semantics.py

AI-assisted.
2026-11-22 23:49:26 +01:00
1291a6878c GPU tests: raw barycentrics under perspective (ps_persp_bary, vs_persp)
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>
2026-11-22 16:37:21 -06:00
ed91cd250a Tests: GPU checks for v_med3_f32/f16 with a NaN in S2 or in two operands
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>
2026-11-22 23:18:01 +01:00
6da1c717fc Merge main into hw-mad-u32-u16 (#2494)
docs/design.md
tests/semantic/regen_fixtures.py

AI-assisted.
2026-11-22 23:15:36 +01:00
cd30309409 Merge main into gpu-vopc-int (#2220)
tests/semantic/regen_fixtures.py

AI-assisted.
2026-11-22 23:12:43 +01:00