[PR #2216] subgroup_size: reject malformed device size ranges #2220

Open
opened 2026-11-26 21:20:27 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2216
Author: @whoalin1
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: subgroup-malformed-caps


📝 Commits (1)

  • a286c48 subgroup_size: reject malformed device size ranges

📊 Changes

2 files changed (+75 additions, -4 deletions)

View changed files

📝 runtime/src/subgroup_size.h (+8 -4)
📝 runtime/test/subgroup_size_test.cpp (+67 -0)

📄 Description

Summary

  • treat half-zero, inverted, or non-power-of-two subgroup min/max ranges as malformed instead of trusting them for requiredSubgroupSize
  • keep device_default / unknown_device fallbacks when a default size is or is not available
  • add synthetic regressions for half-zero, mirror half-zero, inverted, non-power-of-two, and valid control ranges

Item: SUBGROUP-MALFORMED-CAPS

This carries forward the still-uncarried fix in old-pr/9881, originally written by Andretuta, reapplied and verified on current main.

Tests

Under the local machine coordination lock:

  • control: patched subgroup_size_test against the unpatched header fails at the first half-zero-range expectation
  • fixed: the same test compiles and exits 0: subgroup size decision: AMD-like, NVIDIA-like, old RADV, limits, create-info chain and query OK
  • git diff --cached --check — pass

A full CMake configure is not possible in this shell because it does not initialize the Windows SDK environment; the test was instead compiled directly with the same MSVC 14.44 toolset and Vulkan SDK include path used by the existing configured build. No game files or GPU.

AI-assisted with Devin.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2216 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `subgroup-malformed-caps` --- ### 📝 Commits (1) - [`a286c48`](https://github.com/ubiquitarianism/leonida/commit/a286c48980f8d596a4e359e93d34e85fa8f78bd5) subgroup_size: reject malformed device size ranges ### 📊 Changes **2 files changed** (+75 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runtime/src/subgroup_size.h` (+8 -4) 📝 `runtime/test/subgroup_size_test.cpp` (+67 -0) </details> ### 📄 Description ## Summary - treat half-zero, inverted, or non-power-of-two subgroup min/max ranges as malformed instead of trusting them for `requiredSubgroupSize` - keep `device_default` / `unknown_device` fallbacks when a default size is or is not available - add synthetic regressions for half-zero, mirror half-zero, inverted, non-power-of-two, and valid control ranges Item: SUBGROUP-MALFORMED-CAPS This carries forward the still-uncarried fix in old-pr/9881, originally written by Andretuta, reapplied and verified on current main. ## Tests Under the local machine coordination lock: - control: patched `subgroup_size_test` against the unpatched header fails at the first half-zero-range expectation - fixed: the same test compiles and exits 0: `subgroup size decision: AMD-like, NVIDIA-like, old RADV, limits, create-info chain and query OK` - `git diff --cached --check` — pass A full CMake configure is not possible in this shell because it does not initialize the Windows SDK environment; the test was instead compiled directly with the same MSVC 14.44 toolset and Vulkan SDK include path used by the existing configured build. No game files or GPU. AI-assisted with Devin. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#2220
No description provided.