[PR #1008] [MERGED] Use wave64 graphics tiers on fixed 32-wide devices (RT-WAVE64-GRAPHICS-TIER) #1045

Closed
opened 2026-11-26 20:19:54 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1008
Author: @sodove
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: runtime/wave64-graphics-tier


📝 Commits (2)

  • acef4fa Honor wave64 graphics tiers on fixed 32-wide devices (RT-WAVE64-GRAPHICS-TIER)
  • 40b393a Merge main into RT-WAVE64-GRAPHICS-TIER (#1008)

📊 Changes

1 file changed (+27 additions, -0 deletions)

View changed files

📝 runtime/test/subgroup_size_test.cpp (+27 -0)

📄 Description

Claimed in #14 as RT-WAVE64-GRAPHICS-TIER.

What and why

On a fixed 32-lane device, the runtime warned about every native wave64 graphics shader, including shaders the translator had classified as safe to run in two halves. The shader library now reads wave64_graphics. For tier A or B on a vertex, pixel or geometry stage, the subgroup decision records graphics_halves with no required size or flags. A native width of 64 still takes precedence where available. Tier C and older or unrecognized metadata keep the width warning.

This changes the per-stage decision and diagnostic. The runtime already submitted the pipeline in all three cases. The translator and generated modules are unchanged.

Tested

  • Native Windows, MSVC RelWithDebInfo. shader_library, subgroup_size and d3d12_draw passed. The index-to-decision regression failed on the base revision before the fix.
  • Drew the hand-written A, B and C pixel fixtures through the runtime's D3D12 graphics PSOs on an RTX 5070 Ti (reported subgroup range 32–32). Recorded outcomes were graphics_halves, graphics_halves, and unavailable. Only C warned. All three draws completed without requesting a subgroup size.
  • A and B each matched the expected four words at all 4,096 pixels. C produced lane IDs 0–31 and matched the fixed-32 expectation at all 4,096 pixels. The standalone harness also passed A/B and skipped the 64-vs-32 comparison for C. Native wave64 was covered by synthetic device properties only.
  • Translator semantic suite on Windows: 6,165 tests across 470 files, zero failing files. The repository's game-data check passed for all four changed files.

GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Windows 11 build 26100.7623.

AI-assisted: yes, OpenAI Codex.


🔄 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/1008 **Author:** [@sodove](https://github.com/sodove) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `runtime/wave64-graphics-tier` --- ### 📝 Commits (2) - [`acef4fa`](https://github.com/ubiquitarianism/leonida/commit/acef4fa6b5911a846abeb29300a55a13ae821a58) Honor wave64 graphics tiers on fixed 32-wide devices (RT-WAVE64-GRAPHICS-TIER) - [`40b393a`](https://github.com/ubiquitarianism/leonida/commit/40b393aeaf2c0ba008bfca4de5454b5026e0d971) Merge main into RT-WAVE64-GRAPHICS-TIER (#1008) ### 📊 Changes **1 file changed** (+27 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/subgroup_size_test.cpp` (+27 -0) </details> ### 📄 Description Claimed in [#14](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137755033) as `RT-WAVE64-GRAPHICS-TIER`. ### What and why On a fixed 32-lane device, the runtime warned about every native wave64 graphics shader, including shaders the translator had classified as safe to run in two halves. The shader library now reads `wave64_graphics`. For tier A or B on a vertex, pixel or geometry stage, the subgroup decision records `graphics_halves` with no required size or flags. A native width of 64 still takes precedence where available. Tier C and older or unrecognized metadata keep the width warning. This changes the per-stage decision and diagnostic. The runtime already submitted the pipeline in all three cases. The translator and generated modules are unchanged. ### Tested - Native Windows, MSVC RelWithDebInfo. `shader_library`, `subgroup_size` and `d3d12_draw` passed. The index-to-decision regression failed on the base revision before the fix. - Drew the hand-written A, B and C pixel fixtures through the runtime's D3D12 graphics PSOs on an RTX 5070 Ti (reported subgroup range 32–32). Recorded outcomes were `graphics_halves`, `graphics_halves`, and `unavailable`. Only C warned. All three draws completed without requesting a subgroup size. - A and B each matched the expected four words at all 4,096 pixels. C produced lane IDs 0–31 and matched the fixed-32 expectation at all 4,096 pixels. The standalone harness also passed A/B and skipped the 64-vs-32 comparison for C. Native wave64 was covered by synthetic device properties only. - Translator semantic suite on Windows: 6,165 tests across 470 files, zero failing files. The repository's game-data check passed for all four changed files. GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Windows 11 build 26100.7623. AI-assisted: yes, OpenAI Codex. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:54 +01:00
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#1045
No description provided.