Repository navigation
test(gpu): cover EXEC-masked sdst, global atomics, clamp, the mad flush and f64 compares - #1039
YaBulochka wants to merge 1 commit into
Conversation
ab61757 to
7815422
Compare
…sh and f64 compares Nine wave32 fixtures for the docs/design.md rows that had no GPU check: - cs_w32_sdst_exec (ProjectLeonida#218): all eight carry/sign-out ops under EXEC = 0xAAAAAAAA with uniform carrying operands; every sdst is 0xAAAAAAAA (word 272 = 16 lanes | lowest lane 1 << 8), so inactive lanes write 0 and active ones write their bit. The six *_co_* forms and both v_mad_*64 ops are covered, not just the two measured before. - cs_global_atomic32_{int,rtn,float,x2} (ProjectLeonida#226): the first global_atomic fixtures in the corpus. add/sub/smin/umin/smax/umax/ and/or; xor/swap/inc/dec and four glc returns; fmin/fmax on 1.0/2.0, a qNaN and -0/+0 plus cmpswap hit and miss; and/or/xor/swap_x2 on 8-byte elements. SGPR-address form (vaddr, vdata, s[20:21]); global_atomic_cmpswap takes glc only with a single VGPR destination. - cs_w32_clamp32 / cs_w32_clamp16 (ProjectLeonida#265): v_add/sub/subrev_nc_u32, v_add/sub_nc_i32, v_add/sub_nc_u16 and the six carry ops with clamp (the 16-bit forms use the _nc_ names: the gfx9 v_add_u16/v_subrev_u16 do not assemble for gfx1013, and there is no v_subrev_nc_u16). - cs_w32_mad_denorm (ProjectLeonida#379/ProjectLeonida#380): subnormal operand and subnormal product for v_mad_f32, v_mac_f32, v_mad_legacy_f32 and v_mac_legacy_f32, one clamp case and a non-flushing control. - cs_w32_vcmp_f64 (ProjectLeonida#381): all 16 predicates in both v_cmp_*_f64 and v_cmpx_*_f64, four predicates per eight-word dump. Registered in check.py, scripts/run_gpu_tests.py and tests/semantic/regen_fixtures.py; tests/semantic/test_batch4_gpu_fixtures.py runs the same disassembly in the interpreter and keeps the headers, CS_DUMPS and the runner table in step. docs/design.md rows 218, 226, 265, 379, 380 and 381 and docs/shader_validation.md name the fixtures and the measured result. GPU: gfx1036 (RADV RAPHAEL_MENDOCINO, Mesa 27.0.0-devel), 9/9 fixtures and 72/72 words exact through both runners (run_gpu_tests 211/226 pass, 15 skipped; check.py 194/197 pass, 3 skipped); the five pre-existing test_loop_ballot_barrier failures in the semantic suite are also on main 98fa503. AI-assisted.
7815422 to
4589472
Compare
|
Independent verification on Windows + NVIDIA Pascal (discrete GPU with hardware Tested Host: Windows 10 Pro 10.0.19045, NVIDIA GeForce GTX 1050 Ti (Pascal class, 4 GB), driver 582.28, Vulkan 1.4.312 ( CPU & doc checks
GPU results (9/9 fixtures, 72/72 words exact, 3/3 deterministic runs)Ran each of the nine new wave32 compute fixtures 3 times through
One minor wording note (non-blocking): the commit message and PR body state that AI-assisted: yes (Antigravity) |
…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 ubiquitarianism#1037 and ubiquitarianism#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>
Claimed in the coordination issue as: carried over from the closed original repository (branch
feat/fixtures-batch4); no new claimDepends on: none. Overlaps #1012 (
v_cmp_*_f64/v_cmpx_*_f64readback), #173 (ds_mskor, integer clamp), #373 (v_mac_legacy_f32) and #411/#413 (global atomics). Each of those rows also has a fixture here; whichever lands first, the other can drop the row it covered.What and why
Nine wave32 GPU fixtures for
docs/design.mdrows that had no GPU check:cs_w32_sdst_exec(d3d12: persist the runtime Vulkan pipeline cache across launches #218): all eight carry/sign-out ops underEXEC = 0xAAAAAAAAwith uniform carrying operands; every sdst is0xAAAAAAAA(16set lanes| 1 << 8), so inactive lanes write 0 and active ones write their bit. The six*_co_*forms and bothv_mad_*64ops are covered.cs_global_atomic32_{int,rtn,float,x2}(tests: GPU fixture cs_w32_cvt_flr_rpi for v_cvt_flr_i32_f32 and v_cvt_rpi_i32_f32 #226): the first global-atomic fixtures in the corpus — add/sub/smin/umin/smax/umax/and/or; xor/swap/inc/dec and fourglcreturns; fmin/fmax on 1.0/2.0, a qNaN and -0/+0 plus cmpswap hit and miss; and/or/xor/swap_x2 on 8-byte elements.cs_w32_clamp32/cs_w32_clamp16(rdna2spirv: fix Wave64 halves partial destination read-modify-write #265):v_add/sub/subrev_nc_u32,v_add/sub_nc_i32, the 16-bit_nc_forms and the six carry ops withclamp.cs_w32_mad_denorm(OLD-5794: boot.md first-boot runbook fixes; boot_trace marks relocated modules in its text report #379/OLD-5718: d3d12_vulkan_device.cpp, four comments that still describe missing work #380): subnormal operand and subnormal product forv_mad_f32,v_mac_f32,v_mad_legacy_f32andv_mac_legacy_f32, oneclampcase and a non-flushing control.cs_w32_vcmp_f64(OLD-5422: docs/d3d12_vulkan.md drops stale "not yet" claims the runtime already covers #381): all 16 predicates in bothv_cmp_*_f64andv_cmpx_*_f64, four predicates per eight-word dump.Registered in
check.py(WAVE32_DUMPS,WAVE32_LANE_DUMPS,CS_DUMPS) andscripts/run_gpu_tests.py;tests/semantic/test_batch4_gpu_fixtures.pyreplays the disassembly in the interpreter and keeps the headers,CS_DUMPSand the runner table in step. The.sfixtures are generated from the author's hand-written.asmsources (not game dumps) and--checkis clean.docs/design.mdrows 218, 226, 265, 379, 380 and 381 anddocs/shader_validation.mdname the fixtures.Tested
python3 -m unittest discover -s tests/semantic -p "test_batch4_gpu_fixtures.py": 3 tests, OK.python3 -m pytest tests/test_shader_checks.py -x -q: 91 passed, 393 subtests passed.python3 tests/semantic/regen_fixtures.py --check: clean.RAPHAEL_MENDOCINO, Mesa 27.0.0-devel; 9/9 fixtures and 72/72 words exact through both runners.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (No new rule; the existing rows now name the GPU confirmation.)