Skip to content

GPU test cs_w32_saveexec_ext: the saveexec / wrexec kinds of #1657 - #169

Closed
Andretuta wants to merge 6 commits into
mainfrom
old-pr/9904
Closed

Andretuta wants to merge 6 commits into
mainfrom
old-pr/9904

Conversation

@Andretuta

Copy link
Copy Markdown
Collaborator

Carried over from old PR 9904 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9904, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
LouisRiverstone: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

A GPU test for the saveexec/wrexec kinds #1657 added with CPU checks only: s_xor/andn1/orn1/orn2/nand/nor/xnor_saveexec_b32 and s_andn1_wrexec_b32.

Re-submission of #1771. #1771 was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current main.

Checked on #1771 by: Rainmaker33 (RTX 3090), Yourrespawn (RTX 4080), Bladureau (main 003e781) on Intel UHD Graphics), kapitche (Windows 11 with two GPUs on one machine), Vonsek (Radeon), Spaghetih (RTX 4070 Ti), tylerstraub (RTX 5090), TreXito (RTX 3060 Ti), tedin7 (RTX 5080), tunczzz (RTX 5070 Ti), bunbeans2-arch (RX 9070 XT), jordi-vancuijlenborg-vinci (Windows 11 build 26200 with an NVIDIA Ge) and 8 more.

No game files.

AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with main.

s_xor/andn1/orn1/orn2/nand/nor/xnor_saveexec_b32 and s_andn1_wrexec_b32
were merged with CPU checks only. cs_w32_saveexec_ext.asm runs each with
EXEC = lanes 0..23 and S0 = lanes 10..29 (from compares) and stores
(s_bcnt1 << 8) | s_ff1 of the new EXEC, a whole-wave word. It is a wave32
lane-mask dump (WAVE32_LANE_DUMPS), skipped below 32 lanes.

tests/semantic/test_saveexec_ext_fixture.py runs the fixture on the CPU
against tools/cf_ref.py's _SAVEEXEC and checks both runners expect the
same words.
python -I on the file failed with ModuleNotFoundError: support, as the folder
was not on sys.path (@Yourrespawn noted it on this PR, @justr4mzi on #4323).
It is now inserted, as test_cs_shared_memory_limit does.
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
#	tests/semantic/regen_fixtures.py
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
@aslan2142

Copy link
Copy Markdown
Collaborator

This carry-over of old upstream PR 9904 has been taken over in #654, so I'm closing this draft as #17 describes. The branch old-pr/9904 stays.

AI-assisted (Claude Code, Claude Opus 5.5).

@aslan2142 aslan2142 closed this Nov 24, 2026
milk4sale pushed a commit to milk4sale/leonida that referenced this pull request Nov 27, 2026
…ads-packed

Shaders: tbuffer_load_format_d16 loads pack two 16-bit channels per VGPR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants