Skip to content

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

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

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

Conversation

@Andretuta

Copy link
Copy Markdown
Collaborator

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.

…load constant offset

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
@LouisRiverstone

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@Andretuta

Copy link
Copy Markdown
Collaborator Author

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

@Andretuta Andretuta closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants