mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #36] GPU fixture for v_mqsad_u32_u8 through the translated path (TEST-644) #89
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#89
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/36
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/4669📝 Commits (3)
bfdb0bbGPU fixture for v_mqsad_u32_u8 through the translated path (TEST-644)2590c16docs/design.md: v_mqsad_u32_u8 GPU-checked on RDNA2, Blackwell and MoltenVK too9339b41Merge main into test/mqsad-gpu📊 Changes
4 files changed (+52 additions, -4 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
runtime/test/shaders/check.py(+3 -1)➕
runtime/test/shaders/cs_w32_mqsad_u32.asm(+44 -0)📝
scripts/run_gpu_tests.py(+4 -2)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):TEST-644, the
v_mqsad_u32_u8part (claim). Theds_wrxchg2part is already run bycs_w32_new_ops.asmonmain, and the open#3208and#2003add fixtures for it, so it is left to them.What
The
v_mqsad_u32_u8row ofdocs/design.mdwas hardware-verified on RDNA2 (native, throughhw_oracle), but the translated path had never run on a GPU (Not GPU-verified). This adds the fixture:runtime/test/shaders/cs_w32_mqsad_u32.asmrunsv_mqsad_u32_u8twice. S0 =0x88776655_44332211. S1 =0x40005000, whose bytes 0 and 2 are zero, so the masked SAD has to skip them.v[2:5]overv[2:3]): this only gives the expected words if every source is read before the first write, as the row says..asmheader from the ISA pseudocode, and checked by the same formula in Python:0x22 0x33 0x34 0x3F 0x132 0x232 0x332 0x43C.runtime/test/shaders/check.pyandscripts/run_gpu_tests.pynext tocs_w32_new_ops, as a wave32 fixture.docs/design.mdis now GPU-checked.Tested (RTX 3060, Ampere, driver 616.64, Windows 11)
run_gpu_tests.py --filter cs_w32_mqsad_u32: translated, passesspirv-val, PASS (34 51 52 63 306 562 818 1084). It also passes withLEONIDA_W64_EMULATE=1.tests/test_run_gpu_tests.py,test_run_gpu_tests_paths.py(20),test_shader_checks.py(83),test_ctest_registration.py,test_docs_design_rows.pyandtest_docs_links.pypass, andgit diff --checkis clean.Since then it has also passed on an AMD RX 6700 XT (RDNA2), an RTX 5070 Ti and an Apple M2 (MoltenVK); the row says so (
6db3a228).Thanks
@Kam471for the RTX 5070 Ti run (Blackwell): the same eight words.@justr4mzifor the AMD RX 6700 XT run (RDNA2, under validation), which makes it hardware-exact as well.@bobcatchrisfor the Apple M2 / MoltenVK run, with a negative control on the base.@rgvxsthifor the AMD RX 9070 run (RDNA4, LLPC).@JRamos1993for the RTX 5090 run.@gertifyfor the Intel UHD 630 run (Mesa ANV).@epzlofor the AMD RX 7600 run (RADV, RDNA3).@carlos-seiffert: tested on RTX 2060.@LukeOsland1for the RTX 4070 Ti SUPER run (the same eight words) and the corpus count: none of the 26,503 shader listings uses the instruction.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.