[PR #1953] [MERGED] d3d12, test: pass device_.f16_half_top_location in lazy graphics pipeline stage_words (RT-LAZY-PIPELINE-F16-TOP-LOCATION) #1960

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1953
Author: @abnalstlll-byte
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142

Base: main ← Head: feat/rt-lazy-pipeline-f16-top-location


📝 Commits (1)

  • 8dc07b3 d3d12, test: unify f16 halves linking helper and pass top_location in lazy stage_words (RT-LAZY-PIPELINE-F16-TOP-LOCATION)

📊 Changes

4 files changed (+267 additions, -6 deletions)

View changed files

📝 runtime/shims/d3d12_com.h (+5 -0)
📝 runtime/shims/d3d12_vulkan_device.cpp (+30 -5)
📝 runtime/test/d3d12_f16_halves_test.cpp (+213 -1)
📝 runtime/test/spirv_f16_halves_test.cpp (+19 -0)

📄 Description

Summary

In runtime/shims/d3d12_vulkan_device.cpp:stage_words(), pass device_.f16_half_top_location when re-linking --f16-interp-fallback halves via leonida::link_f16_halves(), matching create_graphics() at line 8482.

Previously, stage_words() omitted the 6th top_location argument, causing it to default to 29. On devices where maxVertexOutputComponents < 124 (e.g. 64 components -> top_location = 14), lazy pipeline compilation could relocate vertex output locations beyond the hardware capability limit.

Validation

  • Added check #11 to runtime/test/spirv_f16_halves_test.cpp verifying that custom top_location = 14 correctly bounds relocated output locations to <= 14.
  • All checks in spirv_f16_halves_test pass.
  • Verified line endings with test_text_write_line_endings.py.
  • Clean-room: check_no_game_data.py clean; synthetic tests only, no game assets or GPU required.

AI-assisted (Claude Code)


🔄 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/1953 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/25/2026 **Status:** ✅ Merged **Merged:** 11/26/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `feat/rt-lazy-pipeline-f16-top-location` --- ### 📝 Commits (1) - [`8dc07b3`](https://github.com/ubiquitarianism/leonida/commit/8dc07b3a4b776df4c986869576aefcfc49f8ca36) d3d12, test: unify f16 halves linking helper and pass top_location in lazy stage_words (RT-LAZY-PIPELINE-F16-TOP-LOCATION) ### 📊 Changes **4 files changed** (+267 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_com.h` (+5 -0) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+30 -5) 📝 `runtime/test/d3d12_f16_halves_test.cpp` (+213 -1) 📝 `runtime/test/spirv_f16_halves_test.cpp` (+19 -0) </details> ### 📄 Description ### Summary In `runtime/shims/d3d12_vulkan_device.cpp:stage_words()`, pass `device_.f16_half_top_location` when re-linking `--f16-interp-fallback` halves via `leonida::link_f16_halves()`, matching `create_graphics()` at line 8482. Previously, `stage_words()` omitted the 6th `top_location` argument, causing it to default to 29. On devices where `maxVertexOutputComponents < 124` (e.g. 64 components -> `top_location = 14`), lazy pipeline compilation could relocate vertex output locations beyond the hardware capability limit. ### Validation - Added check #11 to `runtime/test/spirv_f16_halves_test.cpp` verifying that custom `top_location = 14` correctly bounds relocated output locations to `<= 14`. - All checks in `spirv_f16_halves_test` pass. - Verified line endings with `test_text_write_line_endings.py`. - Clean-room: `check_no_game_data.py` clean; synthetic tests only, no game assets or GPU required. AI-assisted (Claude Code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:19:33 +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#1960
No description provided.