Skip to content

Tests: run ps_vcmpx_forms on 8..32 devices again (TEST-205) - #1718

Open
EmreO33 wants to merge 4 commits into
ItsNotRexed:mainfrom
EmreO33:test205-remove-vcmpx-skip
Open

EmreO33 wants to merge 4 commits into
ItsNotRexed:mainfrom
EmreO33:test205-remove-vcmpx-skip

Conversation

@EmreO33

@EmreO33 EmreO33 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

TEST-205, claimed in #1548 (comment), from @Roberto0953's and @kapitche's finding.

Depends on: #664

This reverts 9f68177. That skip took ps_vcmpx_forms off every device whose minSubgroupSize is under 32, because a narrow fragment subgroup (#1318) was thought to change the v_cmpx EXEC packing. #1585, which proposed it, was closed as a misdiagnosis. The wrong bits are exactly the compares with a NaN operand, llvmpipe (8..8) and Linux ANV (8..32) pass 4096/4096, and the missing piece is SignedZeroInfNanPreserve (#664). With the skip in place, the Intel failure shows up as a SKIP.

Until #664 lands, ps_vcmpx_forms fails on Windows Intel iGPUs instead of skipping. That's the real result. Merge after #664 to keep main green there.

Tested

Intel Raptor Lake-S Mobile iGPU (Xe-LP, 101.7092, subgroup 8..32) and RTX 5060 Laptop (621.24), Windows 11 26300, main a0acd33, runtime fully rebuilt (#1579), llvm-mc 21.1.8, SPIRV-Tools v2026.4:

Intel NVIDIA
this PR FAIL 4096/4096: got 0xf04a2a48 0xf01e8e16, want 0xf05b2a48 0xf05e8a12, the UHD 770 bits PASS 4096/4096
this PR + #664's tools/rdna2spirv.py PASS 4096/4096 PASS 4096/4096
run_gpu_tests.py, this PR + #664 113/163, 50 skipped, 0 failed 125/163, 38 skipped, 0 failed

python -I tests/test_run_gpu_pixel_checks.py and python -I tests/test_shader_checks.py: OK. The revert removes the skip's own test cases.

AI-assisted (Claude Code).

Reverts 9f68177. That skip took ps_vcmpx_forms off every device whose
minSubgroupSize is under 32, on the reading that a narrow fragment
subgroup (ItsNotRexed#1318) changed the v_cmpx EXEC packing. ItsNotRexed#1585, which proposed
it, was closed as a misdiagnosis: the wrong bits are exactly the compares
with a NaN operand, and llvmpipe (8..8) and Linux ANV (8..32) pass.

Measured on an Intel Raptor Lake-S iGPU (101.7092, subgroup 8..32): the
test fails 4096/4096 on main without the skip, the same bits as the
UHD 770, and passes 4096/4096 with ItsNotRexed#664 (SignedZeroInfNanPreserve)
applied. With the skip, that failure was reported as a SKIP.

Depends on: ItsNotRexed#664
@evilclanker9000

Copy link
Copy Markdown
Contributor

Tested 1835e2e on AMD Radeon RDNA2 iGPU (Ryzen 9 9950X3D, driver 26.10.1, subgroup 32..64) and NVIDIA RTX 5080 (616.92, subgroup 32..32), Windows 11: pass

Runtime from an existing build (runtime/ unchanged by this PR), SPIRV-Tools and llvm-mc from the project's tool setup, VK_LOADER_LAYERS_DISABLE=~implicit~, one device at a time:

LEONIDA_VK_DEVICE=radeon  python -I scripts/run_gpu_tests.py --build <build> --work <scratch> --filter ps_vcmpx_forms
LEONIDA_VK_DEVICE=5080    (same command)
python -I tests/test_run_gpu_pixel_checks.py
python -I tests/test_shader_checks.py
result
Radeon iGPU PASS ps_vcmpx_forms 4096/4096 pixels exact
RTX 5080 PASS ps_vcmpx_forms 4096/4096 pixels exact
tests/test_run_gpu_pixel_checks.py 8 tests OK
tests/test_shader_checks.py 53 tests OK

Remarks:

  • Both devices report a minimum subgroup size of 32, so the removed skip never applied to them. This confirms the revert changes nothing on 32-wide and wave64-capable hardware; the Intel 8..32 case in the description is not covered by this check.
  • The diff only removes vcmpx_forms_narrow_skip, its call in pixel_test, and that skip's own test cases. Nothing else changes.

AI-assisted.

@tylerstraub

Copy link
Copy Markdown
Contributor

Tested 1835e2eaf7002e105bc26ce50a71306493067044 on NVIDIA GeForce RTX 5090, 595.99.02 (Linux).

Independent Linux Vulkan check with freshly built harnesses, Linux 7.0.0-43-generic, LLVM 21.1.8, and SPIRV-Tools 2026.1. I ran run_gpu_tests.py --filter ps_vcmpx_forms with separate outputs for each ICD and queried the subgroup range on each device.

  • Mesa llvmpipe software Vulkan, subgroup 8..8: the runner executed the fixture and matched 4,096/4,096 pixels.
  • RTX 5090, NVIDIA driver 595.99.02, subgroup 32..32: 4,096/4,096 pixels exact.
  • Both runs passed SPIR-V validation. All eight runner pixel-check tests and 53 shader-check tests passed.

This checks the narrow-subgroup runner path on Linux. The Windows Intel result and the #664 dependency remain as described in the PR.

AI-assisted verification.

@kapitche

kapitche commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51). This brings back the Intel failure. On the Intel UHD 770 (32.0.101.6129, 16-lane fragment subgroups), ps_vcmpx_forms fails again with exactly the pattern from #1374:

FAIL  ps_vcmpx_forms  4096/4096 mismatches; first at (0,0): got ['0xf04a2a48', '0xf01e8e16', '0xb174be18', '0x15550000'], want ['0xf05b2a48', '0xf05e8a12', '0xb174be18', '0x15550000']

On the RTX 4080 SUPER it passes 4096/4096. So whatever change this relies on doesn't cover this driver. The first two output words differ and the last two match, the same as before. I'd keep #1585's skip for devices whose fragment subgroup can be narrower than 32, at least until there's a fix that passes here. Happy to rerun a candidate on this GPU.

Correction (later): the "16 lanes wide" statement above was an inference, not a measurement. The d3d12_subgroup probe that seemed to back it read 0 because of a test-shader precision bug; with #2934 it reports 32 on this Intel driver. The Intel failure itself is real, but its cause is unknown. See #2891.

Update (later still): the correction above was itself premature. Measured with a ballot count, only 16 invocations per fragment subgroup are live on this Intel driver (gl_SubgroupSize still reports 32). So the 16-lane statement holds in effect. See #2891.

@Impre-visible

Copy link
Copy Markdown

Tested 1835e2e on NVIDIA GeForce GTX 1660 (Turing, TU116, subgroup 32..32), driver 620.73.04 (proprietary, Vulkan 1.4.357), Arch Linux (kernel 6.18): pass on a 32..32 device, where the test was judged before and still is.

Native build of runtime/ from this head (Ninja, RelWithDebInfo, clang 23.1.5), llvm-mc 23.1.5, SPIRV-Tools v2026.4.

  • ps_vcmpx_forms: PASS, 4096/4096 pixels exact in run_gpu_tests.py; check.py ok
  • tests/semantic: 1398 OK
  • build.py: 175 translated, 175 pass spirv-val; check.py: 114 of 147 pass, 33 skipped
  • run_gpu_tests.py: 168/168 translated and pass spirv-val; 125/163 passed, 38 skipped, 0 failed; with LEONIDA_W64_EMULATE=1: 155/163 passed, 8 skipped (fixtures run by the d3d12 tests), 0 failed

Not covered here: an 8..32 device, which is what the change is about (see the Intel result above).

AI-assisted run (Claude). Counts only, no game files involved.

…skip

# Conflicts:
#	runtime/test/shaders/check.py
@towade

towade commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested a4566e8 on an Intel UHD Graphics 770 with Intel driver 101.7092 (subgroup 8..32), the UHD 770 on the driver the PR description uses, plus an AMD RX 9070 XT (AMD 32.0.32029.2010, subgroup 32..64) in the same PC, picked with LEONIDA_VK_DEVICE. Windows 11 Pro 10.0.26300, runtime built from main 003e781 (this PR doesn't touch runtime/), llvm-mc 21.1.8 (WSL), SPIRV-Tools v2026.4. Result: as the PR describes.

run_gpu_tests.py --filter ps_vcmpx_forms:

UHD 770 RX 9070 XT
main 003e781 SKIP (the 8..32 skip) PASS 4096/4096
this PR FAIL 4096/4096: got 0xf04a2a48 0xf01e8e16 0xb174be18 0x15550000, want 0xf05b2a48 0xf05e8a12 0xb174be18 0x15550000 PASS 4096/4096
this PR + #664's tools/rdna2spirv.py change PASS 4096/4096 PASS 4096/4096

Full run_gpu_tests.py on the UHD 770: this PR gives 117/170, 52 skipped, with ps_vcmpx_forms the only failure. With #664 added it's 118/170, 52 skipped, 0 failed. The failing words are the same as in the PR description and in @kapitche's UHD 770 run on 101.6129, so it's the same failure on both Intel drivers. tests/test_run_gpu_pixel_checks.py and tests/test_shader_checks.py are OK.

#664 is still open and currently conflicts with main; its rdna2spirv.py hunk applied cleanly on top of this head (git apply -3). So the order the PR asks for (#664 first) still holds.

AI-assisted (Claude Code); no game files.

…skip

# Conflicts:
#	scripts/run_gpu_tests.py
@kapitche

Copy link
Copy Markdown
Contributor

Update, which reverses my earlier advice here to keep #1585's skip: on the Intel UHD 770 (driver 32.0.101.6129), ps_vcmpx_forms now passes 4096/4096 on current main with the narrow-subgroup skip bypassed. The old failure was NaN compares, not subgroup width. The wrong bits were exactly v_cmpx_ngt/nle of (NaN, 1.0) and eq/le/nle of (NaN, NaN), which Intel's compiler folded without SignedZeroInfNanPreserve. #664 (merged) emits that mode. With tools/rdna2spirv.py from before #664 the same tree fails with the exact words I reported, and the RTX 4080 SUPER passes either way. So this PR is right to drop the skip. It just needs a rebase, since it conflicts with main now. Details are in #2891.

@xDestac

xDestac commented Nov 23, 2026

Copy link
Copy Markdown

Xe2 confirmation: Intel Arc 130V (Lunar Lake iGPU), driver 32.0.101.8331, Windows 11 26300 — the fixture
passes with the skip bypassed on current main.

This device reports subgroup 16..32, so lo < 32 still fires vcmpx_forms_narrow_skip
(runtime/test/shaders/check.py:736). What I ran is main at 03b09a08 with that single call bypassed at
scripts/run_gpu_tests.py:1254 and nothing else touched, reverted afterwards — not this PR's head, which
GitHub reports as CONFLICTING: the four files it touches have moved since.

  • run_gpu_tests.py --filter ps_vcmpx_forms: PASS 4096/4096 pixels exact.
  • Full suite here: 160/210, 50 skipped, 0 failed. With LEONIDA_W64_EMULATE=1: 191/210, 19 skipped, 0 failed.
    d3d12_vulkan_device in ctest: 1/1 passed.

@EmreO33 #664 merged on 2026-11-22 18:06 UTC (a0e8229a), so the "merge after #664" condition you set is
satisfied. With kapitche's Xe-LP run
the revert now has two Intel generations behind it (8..32 and 16..32); a rebase looks like the only step left.

Setup: scripts/build_runtime.ps1 (MSVC 19.44, 414/414 targets), llvm-mc 21.1.8 with the AMDGPU target,
SPIRV-Tools v2026.4, Python 3.12.10. No game files. AI-assisted.

…skip

# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
@bobcatchris

Copy link
Copy Markdown
Contributor

Tested 282eac9 on Apple M2 with MoltenVK 1.4.2 (macOS 26.4, subgroup 4..32, device Vulkan 1.4.357): ps_vcmpx_forms 4096/4096 exact; full suite 177/237 passed, 58 skipped, 2 failed vs base 5f47ed2 176/237, 59 skipped, 2 failed A/B; no regression.

This is the first Apple/MoltenVK run of the reverted skip. On this 4..32 device the base skips the fixture with fragment subgroup may run narrower than 32 on 4..32 device; needs 32; with the skip removed it runs and returns 4096/4096 pixels exact. So the narrow-fragment-subgroup concern that motivated #1585 does not reproduce here.

Both builds used the same harness binary. Per-test comparison: the only status change is ps_vcmpx_forms SKIP→PASS; both heads have the same two known failures (cs_fma_fused, ps_ssharp), with #664's SignedZeroInfNanPreserve already in main. llvm-mc 21.1.8, Python 3.13.18. No code changes of my own; no game data.

AI-assisted.

@duudiis

duudiis commented Nov 23, 2026

Copy link
Copy Markdown

Tested 282eac9 merged onto main ff686df on RTX 5070 (Blackwell), NVIDIA Windows driver 32.0.16.2124 (621.24), Windows 11 Pro 26300, CPython 3.11.0; no llvm-mc, no SPIRV-Tools, with the CI runtime-windows test programs of main 7b7d73f (the runner is newer than those programs): pass, with notes

  • python -I scripts/run_gpu_tests.py --build <runtime-windows> --disasm-dir tests/semantic/fixtures/disasm --assembler python: main 81/96 passed, 15 skipped, 0 failed; merge 81/96 passed, 15 skipped, 0 failed. The 15 skips are the wave64 fixtures (no 64-wide subgroup); per-test statuses are identical.
  • Same with LEONIDA_W64_EMULATE=1: main 96/96 passed; merge 96/96 passed, identical per test.
  • ... --filter ps_vcmpx_forms --require-pass on the merge: PASS ps_vcmpx_forms 4096/4096 pixels exact (1/1). It also passes on main, since this is a 32-wide device where the removed skip never applied, so this is a no-regression check, not coverage of the 8..32 case.
  • python -I tests/test_run_gpu_pixel_checks.py: OK (10 tests) on the merge; OK on main.
  • python -I tests/test_shader_checks.py: 80 tests, 15 errors on the merge; main gives the same 15 errors. They are all in Wave64Checks (TypeError: Wave64Checks.run_checks.<locals>.harness() got an unexpected keyword argument 'cwd'), which this PR doesn't touch. The only tests the merge drops are the four removed vcmpx_forms skip cases.
  • Not run: runtime/test/shaders/build.py + check.py, because build.py needs llvm-mc.

AI-assisted (Claude Code).

@carlos-seiffert

Copy link
Copy Markdown

Tested 282eac9 (merged onto main 86a7807) on NVIDIA GeForce RTX 2060 (Turing), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 (10.0.26300), subgroup size 32: pass (no regression; the case this PR changes is not reachable here)

What I ran: python -I scripts/run_gpu_tests.py with the Vulkan tools built from 86a7807 (llvm-mingw + Ninja, -DLEONIDA_BUILD_WINDOWS_RUNTIME=OFF, Vulkan-Headers 6802bb47), llvm-mc 23.1.6 and SPIRV-Tools from conda-forge.

main 86a7807 this PR on main
full GPU suite 191/240 passed, 48 skipped, 1 fail 191/240 passed, 48 skipped, 1 fail (same as main)

ps_vcmpx_forms: PASS 4096/4096 pixels exact, before and after. This GPU's subgroup is fixed at 32, so the narrow-subgroup skip this PR removes never applied here; the run shows no regression but does not exercise an 8..31-wide device.

Unit tests changed by the PR: tests/test_run_gpu_pixel_checks.py: OK.

tests/test_shader_checks.py (15 errors), tests/test_f64_conversion.py (6 failures) and tests/test_f64_output_modifiers.py (7 failures) fail the same way on main 86a7807 without this PR, so they are not counted against it.

The one failure on both sides is ms_wave_info_s3, which fails on main on this GPU (10/10 runs) and is fixed by #7136 / #5741 / #5855; it is unrelated to this PR.

AI-assisted run (Claude Code); the numbers are from my machine.

@TG0000

TG0000 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 282eac9 on AMD Radeon RX 6800 (RDNA2 gfx1030, AMD 26.11.2, Windows 11): pass

Base: trial merge onto origin/main 897b2cb (clean, no conflicts). Vulkan test programs built once from that base with cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_BUILD_WINDOWS_RUNTIME=OFF (llvm-mingw clang, 146/146 targets). The PR changes no C++, so the build was reused. Bare main on this GPU: scripts/run_gpu_tests.py gives 222/240 passed, 17 skipped, 1 failed (ms_wave_info_s3, which is known to fail on bare main on this RX 6800 and has nothing to do with this PR).

  • python -I scripts/run_gpu_tests.py --build runtime/build --filter ps_vcmpx_forms: 1/1 passed (ps_vcmpx_forms 4096/4096 pixels exact, 1/1 pass spirv-val). The fixture now runs on this 32-wide device instead of being skipped.
  • python -I scripts/run_gpu_tests.py --build runtime/build (full suite): 222/240 passed, 17 skipped, 1 failed (ms_wave_info_s3 only, same as main). No other change against main.
  • python -m pytest tests/test_run_gpu_pixel_checks.py tests/test_shader_checks.py: 89 passed, 15 failed. All 15 failures also fail on bare main (15 failed, 94 passed there; the PR removes 5 tests). Their names match exactly: the Wave64Checks cases in tests/test_shader_checks.py fail with TypeError: ... harness() got an unexpected keyword argument 'cwd', a stale mock in that test file on main, not caused by this PR.

No Vulkan validation errors in the output. No game data used.

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.