Skip to content

tests: give ms_w64x_ballot its synthetic PSV0 so it is translated and validated - #636

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
rafaelpssz:test/ms-w64x-ballot-psv0
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
rafaelpssz:test/ms-w64x-ballot-psv0

Conversation

@rafaelpssz

@rafaelpssz rafaelpssz commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Item: new TEST item, claimed in #634 (#634 (comment))

runtime/test/shaders/ms_w64x_ballot.asm was skipped by two tests, because tests/conftest.py's SAMPLE_DXBC had no entry for it:

  • test_gpu_samples_translate_and_validate
  • test_wave64_emulate_uses_no_subgroup_ops

Its header asks for ms_tri's DXBC (PSV0, 128 threads, 64/64 outputs, triangles), so it now gets MS_TRI_DXBC, as ms_wave_info_s3 does. One line.

Tested

  • On this branch (rebased on current main): both tests run for ms_w64x_ballot and pass. The plain translation and the --wave64-emulate one (no subgroup ops, %x_buf exchange) both pass spirv-val.
  • Full pytest tests on the previous main (before the rebase): 2465 passed, 2 failed (test_swizzle_search without numpy, which tests: skip the swizzle_search no-layout CLI test without numpy #547 covers), 40 skipped (numpy, ffmpeg, symlink privileges, Windows SDK). tests/semantic: 708 passed.
  • Windows 11, RTX 3060 (NVIDIA 616.64), Python 3.14.7, llvm-mc 23.1.3 with amdgcn (WinLibs build), SPIRV-Tools Khronos Windows build. These are CPU tests. The sample itself was not run on the GPU (no MSVC runtime build on this machine).

Note: #493 edits the same SAMPLE_DXBC line; a rebase of either is a one-line merge.

No game files.

By @rafaelpssz, with Claude Code (AI-assisted).

… validated

test_gpu_samples_translate_and_validate and test_wave64_emulate_uses_no_subgroup_ops
skipped runtime/test/shaders/ms_w64x_ballot.asm because conftest.SAMPLE_DXBC had no
entry for it. Its header asks for ms_tri's DXBC (PSV0, 128 threads, 64/64 outputs,
triangles), so it gets MS_TRI_DXBC, as ms_wave_info_s3 does.

Both tests now run for it and pass: the plain translation and the --wave64-emulate one
(no subgroup ops, %x_buf exchange) translate and pass spirv-val.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kam471

Kam471 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Code read: the sample's own header says it "needs a DXBC with PSV0, 128 threads, 64/64 outputs, triangles", and MS_TRI_DXBC is exactly mesh_psv0_chunk() with those defaults. Mapping it to MS_TRI_DXBC, like ms_wave_info_s3, is the right one-line fixture; both tests should now see the sample instead of skipping it. The SAMPLE_DXBC collision with #493 is a one-line rebase for whichever lands second. No changes requested.

@rafaelpssz
rafaelpssz marked this pull request as ready for review November 22, 2026 01:33
@ItsNotRexed
ItsNotRexed merged commit ef3d5ea into ItsNotRexed:main Nov 22, 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