Skip to content

GPU test cs_w32_lds_add_f32: ds_add_f32 and ds_add_rtn_f32 - #176

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

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

Conversation

@Andretuta

Copy link
Copy Markdown
Collaborator

Carried over from old PR 9911 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9911, 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):

#3120 merged ds_add_f32 / ds_add_rtn_f32 with CPU-only checks. This adds a GPU fixture, runtime/test/shaders/cs_w32_lds_add_f32.asm. Lane 0 of a wave32 group stores eight dwords:

Re-submission of #4323. #4323 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 #4323 by: justr4mzi (AMD Radeon RX 6700 XT), radv-tinker (AMD Radeon RX 9070 XT), sebashord (Windows 11 Pro build 26300.9974 with two), javdc (Steam Deck LCD), tylerstraub (RTX 5090), lukasas74 (RTX 5080), TG0000 (RX 6800), matheusfermiano-source (main 867d922)), zorde23 (RX 6750 XT), nicolasabosch (RTX 4070 Laptop GPU).

No game files.

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

#3120 merged ds_add_f32 with CPU-only checks. Lane 0 of a wave32 group checks
the returned old value, a plain sum, ties to even both ways, -0 + +0,
overflow to +inf, the non-returning form and offset:. No denormal or NaN
input (not measured). Registered in check.py, run_gpu_tests.py and
regen_fixtures.py; tests/semantic/test_lds_add_f32_fixture.py runs it on the
CPU against a once-rounded double sum and checks both runners expect the
same words.
…ct for these inputs only

@justr4mzi: python -I on the file failed with ModuleNotFoundError: support, as
the folder was not on sys.path (now inserted, as test_cs_shared_memory_limit
does). @tupacfan04: a double sum of two binary32 values is not exact in
general; the docstring says it is for this file's inputs.
# 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 9911 has been taken over in #862, so I'm closing this draft as #17 describes. The branch old-pr/9911 stays.

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

@aslan2142 aslan2142 closed this Nov 24, 2026
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