mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #135] [CLOSED] Tests: GPU coverage for v_cmp_class_f16/f64, v_fmamk/fmaak_f16, v_cvt_pknorm_*_f16 and v_mac_legacy_f32 #185
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#185
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/135
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9865📝 Commits (1)
78afb4eTests: GPU coverage for v_cmp_class_f16/f64, v_fmamk/fmaak_f16, v_cvt_pknorm_*_f16 and v_mac_legacy_f32📊 Changes
4 files changed (+138 additions, -10 deletions)
View changed files
📝
docs/design.md(+5 -5)📝
runtime/test/shaders/check.py(+5 -2)➕
runtime/test/shaders/cs_vfloat_ext.asm(+122 -0)📝
scripts/run_gpu_tests.py(+6 -3)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):docs/design.mdmarks these float VALU rows Not GPU-verified: the translations were CPU-checked (and, exceptv_mac_legacy_f32, the instructions measured on hardware), but the SPIR-V the translator emits had never run on a GPU. No open PR adds a fixture for them.This adds
runtime/test/shaders/cs_vfloat_ext.asm(one lane, laid out likecs_lds_b64_cmpst.asm; 16-bit VOP2 destinations preset to0xA5A5A5A5):v_cmp_class_f160x0000000Bv_cmp_class_f640x0000000Dv_fmamk_f160xA5A54300v_fmaak_f160x42020xA5A54202v_cvt_pknorm_i16_f160x80014000v_cvt_pknorm_u16_f160xFFFF0000v_mac_legacy_f320x40000000v_mac_legacy_f320x40500000The words are derived in the
.asmheader from the rows. The fixture is registered incheck.pyandscripts/run_gpu_tests.pynext tocs_lds_atomics_ext. The five rows (including the separatev_cmp_class_f64row) keep their marker and add a "GPU-checked by" note. Thev_mac_legacy_f32note says it checks the translated SPIR-V, not the opcode on silicon (no RDNA2 desktop part has it).Tested on an AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.3.1, subgroup 32..64), Artix Linux, llvm-mc 23.1.5:
cs_vfloat_extpasses with all eight words exact, native and withLEONIDA_W64_EMULATE=1.0x4201for word 3 makes it FAIL.scripts/run_gpu_tests.pysuite, native and emulated: no failure except the knownms_wave_info_s3flake (#6172).check.py,run_gpu_tests.py,design.mdor the shader fixtures: the same failure set as a clean worktree of the merge base (26, environment-only on this machine). The branch adds 2 passing tests and 12 subtests.Resubmitted from
#9601(closed with the other outside PRs on 2026-11-23), rebased ontomain2d53a8055. Related:#9494,#9761(merged),#9813. Synthetic fixture only, no game files. AI-assisted (Claude Code).On the rebased branch, the full suite on this card also shows
cs_imgload_tfe,cs_imgload_d16_tfe,cs_w32_exec_computedandcs_w64_exec_computedfailing; they fail the same way on a clean worktree ofmain, so they are not this change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.