Repository navigation
tests: GPU fixtures for the packed 16-bit integer ops - #1037
YaBulochka wants to merge 1 commit into
Conversation
|
Tested on NVIDIA Blackwell: head
So the u16/i16 Not tested
AI use
|
|
Tested NVIDIA RTX 3080 (620.73.04) and AMD Raphael RDNA2 iGPU gfx1036 (RADV, Mesa 26.3.1), CachyOS. This runs translated SPIR-V; it is not a native RDNA2 measurement. AI-assisted (Claude Code) |
cs_pk_int16_u covers the six u16 forms with op_sel/op_sel_hi and clamp on add/sub; cs_pk_int16_i covers the five i16 forms with op_sel/op_sel_hi and clamp on add/sub/mad. Both are wave32, store eight words derived in their headers, and are registered in check.py, scripts/run_gpu_tests.py and tests/semantic/regen_fixtures.py. test_pk_int16_gpu_fixtures.py runs the same disassembly in the interpreter and keeps the headers and both runner tables in step. docs/design.md row 247 and docs/shader_validation.md name the fixtures and the measured result. GPU: gfx1036 (RADV RAPHAEL_MENDOCINO, Mesa 27.0.0-devel), 2/2 fixtures, 16/16 words exact. AI-assisted.
f875621 to
45a3728
Compare
…ions (DOC-SHADER-VALIDATION-DEDUP) Repeated merges left "Packed 16-bit integer operations on RDNA2 (SHADER-302)" in the file four times and "Pixel-shader ISA on the hardware" twice: 2d3369a (a merge of origin/main into main) tripled SHADER-302 as SHADER-681's helper-lanes subsection came in, af1b3c9 merged #3061 a second time, and #3499's --format table then landed in only one ps_oracle copy. One SHADER-302 copy went in as a bare heading and its bullets in the middle of the RADV paragraphs. Keep one of each, in the order a66a71f had them before the repeats, with the two real additions in place: #3499's --format paragraph and table (0d58747) and SHADER-681's helper lanes (58bc80c). Every kept line is main's own text; the only line dropped that is in no remaining copy is the "Limits: ... mrt0 as RGBA32F only" line that 0d58747 itself replaced. Deletions only, so ProjectLeonida#1037 and ProjectLeonida#1039 (which insert after the first SHADER-302 copy) still merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: coolpilot904 <andrewjsottile@icloud.com>
|
Hi @YaBulochka, thanks for this pull request. It currently conflicts with AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: carried over from the closed original repository (branch
feat/fixtures-batch3); no new claimDepends on: none. Overlaps #366 (
v_pk_add_u16/v_pk_mad_i16) and #171/#853 (cs_w32_pk_rel_ext); this PR covers all eleven integer forms in two fixtures with the fullop_sel/op_sel_hi/clampgrid and CPU fixtures, so the overlapping rows can be dropped from whichever lands second.What and why
Two wave32 GPU fixtures for the packed 16-bit integer ops in
docs/design.md:cs_pk_int16_u: the six u16 forms (v_pk_add/sub_u16,v_pk_mul_lo_u16,v_pk_mad_u16,v_pk_max/min_u16) withop_sel/op_sel_hiandclampon add and sub;cs_pk_int16_i: the five i16 forms withop_sel/op_sel_hiandclampon add, sub and mad.Each header derives its eight words. Both are registered in
check.pyandscripts/run_gpu_tests.py;tests/semantic/test_pk_int16_gpu_fixtures.pyruns the same disassembly through the translator and the interpreter and checks the headers,CS_DUMPSand the runner table against it.docs/design.mdanddocs/shader_validation.mdname the fixtures and the measured result. The.sfiles undertests/semantic/fixtures/disasm/are generated from the author's hand-written.asmsources bytests/semantic/regen_fixtures.py(the marker-based mechanism already on main), not a dump from the game.Tested
python3 -m unittest discover -s tests/semantic -p "test_pk_int16_gpu_fixtures.py": 3 tests, OK.python3 -m pytest tests/test_shader_checks.py -x -q: 91 passed, 333 subtests passed.python3 tests/semantic/regen_fixtures.py --check: clean.RAPHAEL_MENDOCINO, Mesa 27.0.0-devel, 2/2 fixtures, 16/16 words exact.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (No new rule; the existing row now names the GPU confirmation.)