mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #868] tests: GPU fixture cs_w32_atomic_contend for buffer_atomic_inc/dec contention (OLD-9912) #906
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#906
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/868
Author: @TanmaySatyam
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:test/old-9912-gpu-atomic-contend📝 Commits (3)
dc9e327GPU test cs_w32_atomic_contend: buffer_atomic_inc/dec under contentionc74c89btest_atomic_contend_fixture: runs under python -I34005bdcs_w32_atomic_contend: word 2 uses D = 19, so an inc and a dec can't give the same word📊 Changes
5 files changed (+182 additions, -3 deletions)
View changed files
📝
runtime/test/shaders/check.py(+3 -1)➕
runtime/test/shaders/cs_w32_atomic_contend.asm(+47 -0)📝
scripts/run_gpu_tests.py(+4 -2)➕
tests/semantic/fixtures/disasm/cs_w32_atomic_contend.s(+29 -0)➕
tests/semantic/test_atomic_contend_fixture.py(+99 -0)📄 Description
Claimed in the coordination issue as: OLD-9912
Summary
Carries forward
old-pr/9912(carried-over draft #178) onto currentmain(f3e26be7c), preserving the original author's (Luiz Neves) three commits:GPU test cs_w32_atomic_contend: buffer_atomic_inc/dec under contentiontest_atomic_contend_fixture: runs under python -Ics_w32_atomic_contend: word 2 uses D = 19, so an inc and a dec can't give the same wordRebase adjustments
runtime/test/shaders/check.pyandscripts/run_gpu_tests.pyagainst currentmain.main's dynamictests/semantic/regen_fixtures.pyand added the; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasmmarker line toruntime/test/shaders/cs_w32_atomic_contend.asm.Testing & Hardware Verification
python -I scripts/check_no_game_data.pyclean on all touched files).LEONIDA_VK_VALIDATION=1,VKC_SUBGROUP_SIZE=32).runtime/test/shaders/build.py+vk_compute_test.exe cs_w32_atomic_contend.spv 1 dump): Matches expected[0xEEEEEF0E, 0xEEEEEEED, 0xB, 0xEEEEEECE, 0x4, 0xEEEEEF0D, 0xEEEEEECF, 0xEEEEEEED]under real 32-lane hardware CAS contention with 0 mismatches and 0 Vulkan validation errors.python -I tests/semantic/test_atomic_contend_fixture.py -v: 4/4 OKpython -I tests/test_regen_fixtures.py: 7/7 OKpython -I tests/test_text_write_line_endings.py: 3/3 OK🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.