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

Merged
Tortoche merged 1 commit from upstream-pr/1651 into main 2026-11-28 17:57:58 +00:00
Tortoche commented 2026-11-25 07:05:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tortoche on 2026-11-25T07:05:04Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5486801161 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1651). Originally posted by [Tortoche](https://github.com/Tortoche) on 2026-11-25T07:05:04Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T09:52:54Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7158925825 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1651#issuecomment-7158925825). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T09:52:54Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:57:55Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243423632 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1651#issuecomment-7243423632). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:57:55Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:52:54Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246340851 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1651#issuecomment-7246340851). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:52:54Z. --- **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 reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1651
No description provided.