OLD-9881: subgroup_size: reject half-zero and invalid subgroup size ranges #1651

Merged
leonida/mandy
Tortoche merged 1 commit from old-9881 into main 2026-11-28 17:57:58 +00:00

Pull request successfully merged and closed

Tortoche commented 2026-11-25 07:05:04 +00:00

Claim: #1581 (OLD-9881 / Draft #148, originally authored by ChAlanA)

Summary:

  • Rejects half-zero and invalid subgroup size ranges in ().
  • Adds unit tests in .

Verification (Linux):

  • -> OK
  • [100%] Built target subgroup_size_test -> OK
  • subgroup size decision: AMD-like, NVIDIA-like, old RADV, limits, create-info chain and query OK ->

AI-assisted: yes

Claim: #1581 (OLD-9881 / Draft #148, originally authored by ChAlanA) Summary: - Rejects half-zero and invalid subgroup size ranges in (). - Adds unit tests in . Verification (Linux): - -> OK - [100%] Built target subgroup_size_test -> OK - subgroup size decision: AMD-like, NVIDIA-like, old RADV, limits, create-info chain and query OK -> AI-assisted: yes
whoalin1 commented 2026-11-25 09:52:54 +00:00

Independent verification (native Windows): subgroup_size_test.exe prints the claimed line verbatim, rc=0; ctest -R subgroup_size 1/1; d3d12_vulkan_device_test rebuilds clean. Logic closes a real hole — min_size=0 previously allowed wanted ∈ [0,64] chaining requiredSubgroupSize against VUID -02761. GPU smoke (--filter wavemask): NVIDIA skip (no 64-wide subgroup, expected), AMD pass. Authorship preserved (ChAlanA). AI-assisted verification.

Independent verification (native Windows): `subgroup_size_test.exe` prints the claimed line verbatim, rc=0; `ctest -R subgroup_size` 1/1; `d3d12_vulkan_device_test` rebuilds clean. Logic closes a real hole — `min_size=0` previously allowed `wanted ∈ [0,64]` chaining `requiredSubgroupSize` against VUID -02761. GPU smoke (`--filter wavemask`): NVIDIA skip (no 64-wide subgroup, expected), AMD pass. Authorship preserved (ChAlanA). AI-assisted verification.
MoonEyes commented 2026-11-28 17:57:55 +00:00

Red/green: On main subgroup_size_test fails at line 249 (a half-zero subgroup size range is not rejected to device_default), and with the PR ctest -R "^subgroup_size$" passes.
Independent tester (OreoFR, RTX 4070, Windows 11): PR head merged with the other PRs of its batch on main c1ecf04ed, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.

Red/green: On main subgroup_size_test fails at line 249 (a half-zero subgroup size range is not rejected to device_default), and with the PR ctest -R "^subgroup_size$" passes. Independent tester (OreoFR, RTX 4070, Windows 11): PR head merged with the other PRs of its batch on main c1ecf04ed, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.
OreoFR commented 2026-11-28 21:52:54 +00:00

Verified by OreoFR

  • Base: main c1ecf04ed + PR head 26df694ce; green run in a merge package of 15 PRs, no new ctest failure vs main
  • Test: ctest -R ^subgroup_size$
  • Red on main: failure line 249 (r.outcome == device_default && r.size == 0 && r.flags == 0)
  • Green with the PR: OK
  • Verdict: READY (merged during the test, at the tested head)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

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

**Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `26df694ce`; green run in a merge package of 15 PRs, no new ctest failure vs main - Test: `ctest -R ^subgroup_size$` - Red on main: failure line 249 (r.outcome == device_default && r.size == 0 && r.flags == 0) - Green with the PR: OK - Verdict: READY (merged during the test, at the tested head) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No description provided.