GPU test cs_w32_late_ext: ds_mskor, v_add/sub_nc_i16 clamp, s_buffer_load constant offset #173

Closed
github-bot wants to merge 6 commits from github-bot/gh-173 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:35 UTC · original
ubiquitarianism:old-pr/9908 → main · +219 −3 · 5 files · 6 commits · closed without merging

Carried over from old PR 9908 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9908, 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, in the cs_w32_*_ext format CI runs on llvmpipe, for three merged changes that only had CPU checks: ds_mskor_b32/ds_mskor_rtn_b32 (#1954), v_add/sub_nc_i16 with clamp (#1974), and the s_buffer_load constant-SGPR-offset fix (#1948).

Re-submission of #3039. #3039 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 #3039 by: emirduran707 (RX 9060 XT), CaravelaLabs (8060S), steamaze0 (RTX 5060 Ti), hidrogenone (NVIDIA GeForce RTX 5080), Yourrespawn (RTX 4080), kapitche (Windows 11), cxchhh (Tesla V100-SXM2-32GB), Etr0p (610M), lunarminus (760M), searyecheesepeaceful (UHD Graphics 630), Mortify7612 (AMD Radeon RX 9060 XT), Itschotsch (RTX 4090) and 7 more.

No game files.

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

**@⁠Andretuta** on GitHub · 2026-11-24 02:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/173) `ubiquitarianism:old-pr/9908` → `main` · +219 −3 · 5 files · 6 commits · closed without merging > Carried over from **old PR 9908** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9908`, 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, in the `cs_w32_*_ext` format CI runs on llvmpipe, for three merged changes that only had CPU checks: `ds_mskor_b32`/`ds_mskor_rtn_b32` (`#1954`), `v_add/sub_nc_i16` with `clamp` (`#1974`), and the `s_buffer_load` constant-SGPR-offset fix (`#1948`). Re-submission of `#3039`. `#3039` 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 `#3039` by: emirduran707 (RX 9060 XT), CaravelaLabs (8060S), steamaze0 (RTX 5060 Ti), hidrogenone (NVIDIA GeForce RTX 5080), Yourrespawn (RTX 4080), kapitche (Windows 11), cxchhh (Tesla V100-SXM2-32GB), Etr0p (610M), lunarminus (760M), searyecheesepeaceful (UHD Graphics 630), Mortify7612 (AMD Radeon RX 9060 XT), Itschotsch (RTX 4090) and 7 more. No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`.
ds_mskor_b32 / ds_mskor_rtn_b32 (#1954), v_add/sub_nc_i16 with clamp
(#1974) and the s_buffer_load constant-SGPR-offset fold (#1948) were
merged with CPU checks only. cs_w32_late_ext.asm stores eight words from
lane 0; the LDS ops run after EXEC is cut to lane 0, and the scalar loads
run before any store. With vk_compute_test's V# (num_records 0xFFFFFFFF)
s12 = -4, offset:20 must read 0: the old 32-bit wrap read byte 16, the
0xEE fill.

tests/semantic/test_late_ext_fixture.py runs the fixture on the CPU with
the harness's buffer (0xEE fill, num_records max), checks the words,
that both runners expect them, and the lane-0 order.
python -I on the file failed with ModuleNotFoundError: support, as the folder
was not on sys.path (found by @justr4mzi on #4323, the same template). 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:47:24 +00:00
Author
Owner

@⁠LouisRiverstone on GitHub · 2026-11-25 00:24 UTC · original

Taken over by its author in #1448 (rebased on main). This draft can be closed.

**@⁠LouisRiverstone** on GitHub · 2026-11-25 00:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/173#issuecomment-7148481279) Taken over by its author in #1448 (rebased on main). This draft can be closed.
github-bot closed this pull request 2026-11-27 04:04:12 +00:00
Author
Owner

@⁠Andretuta on GitHub · 2026-11-27 04:01 UTC · original

Closing carried-over draft: taken over by original author in #1448 (OLD-9908).

**@⁠Andretuta** on GitHub · 2026-11-27 04:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/173#issuecomment-7209459771) Closing carried-over draft: taken over by original author in #1448 (OLD-9908).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.