mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1225] rdna2spirv: 64-bit scalar data ops lower to 2x32-bit, no Int64 (OLD-9958 / SHADER-930) #1257
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#1257
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/1225
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9958-salu64-2x32📝 Commits (1)
b451cd8rdna2spirv: 64-bit scalar data ops lower to 2x32-bit, no Int64 (SHADER-930)📊 Changes
11 files changed (+566 additions, -39 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
runtime/test/shaders/check.py(+4 -1)➕
runtime/test/shaders/cs_w32_salu64_bfe.asm(+84 -0)➕
runtime/test/shaders/cs_w32_salu64_bits.asm(+64 -0)📝
scripts/run_gpu_tests.py(+5 -2)➕
tests/semantic/fixtures/disasm/cs_w32_salu64_bfe.s(+64 -0)➕
tests/semantic/fixtures/disasm/cs_w32_salu64_bits.s(+49 -0)➕
tests/semantic/test_salu64_2x32.py(+227 -0)📝
tests/semantic/test_salu_bfe_64.py(+8 -5)📝
tools/int_hw_probe.py(+25 -0)📝
tools/rdna2spirv.py(+35 -30)📄 Description
Claimed in the coordination issue as: OLD-9958 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143531427)
What and why
Carries forward
old-pr/9958(draft #224, original commit authorslipperysquidpreserved; indexed in #17; SHADER-930), rebased cleanly onto currentmain.Lowers
s_bfe_u64ands_bfe_i64intools/rdna2spirv.pyto 2x32-bit operations with noOpCapability Int64/OpTypeInt 64/uses_psbrequirement:0..31) and extractsmin(w, 32)bits for the low dword and the remaining bits for the high dword via 32-bitOpBitFieldUExtract/OpBitFieldSExtract(sign-extending the high dword from the low dword whenw <= 32fors_bfe_i64), preserving exact value andSCCsemantics.tests/semantic/test_salu64_2x32.py(verifying noInt64across all seven 64-bit scalar data ops,bfevalue +SCCgrids, and CPU execution of the GPU fixtures), updatestests/semantic/test_salu_bfe_64.py, adds GPU fixturesruntime/test/shaders/cs_w32_salu64_bfe.asmandcs_w32_salu64_bits.asmwired intocheck.pyandscripts/run_gpu_tests.py, adds 11 cases totools/int_hw_probe.py, and updates the contract row indocs/design.md.Tested
python -m unittest discover -s tests/semantic -p test_salu64_2x32.py -v: 8 tests, OK.python -m unittest discover -s tests/semantic -p test_salu_bfe_64.py -v: 44 tests, OK.python -I tests/test_shader_checks.py: 87 tests, OK.python -I tests/test_docs_links.py: 16 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic: 471 files, 6,176 tests, 0 files failed.python -I scripts/check_no_game_data.pyon all 11 touched files: exit 0 (no game data).GPUs tested: n/a (CPU SPIR-V interpreter semantic suite on Windows 11 Pro 64-bit, Python 3.12.10; original author tested the GPU fixtures on RX 6800 XT / RTX 3070 / llvmpipe)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.