[PR #1432] [CLOSED] d3d12: replay tessellation pipelines with IA patch sizes (D3D-TESSELLATION) #1461

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1432
Author: @PyZikYG
Created: 11/25/2026
Status: ❌ Closed

Base: main ← Head: d3d12-tessellation-patches


📝 Commits (1)

  • b22bc56 d3d12: replay tessellation pipelines with IA patch sizes

📊 Changes

9 files changed (+301 additions, -34 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+9 -3)
📝 runtime/CMakeLists.txt (+16 -1)
📝 runtime/shims/d3d12_vulkan_device.cpp (+49 -26)
📝 runtime/src/shader_library.h (+1 -1)
📝 runtime/src/vulkan_replay.h (+13 -3)
➕ runtime/test/d3d12_tessellation_test.cpp (+183 -0)
➕ runtime/test/glsl/tess_patch.tesc (+20 -0)
➕ runtime/test/glsl/tess_patch.tese (+9 -0)
📝 runtime/test/vk_test_device.h (+1 -0)

📄 Description

Claimed in the coordination issue as: D3D-TESSELLATION.

What and why

Accept linked hull and domain shader modules from the shader library in a D3D12 graphics PSO. Replay selects a Vulkan pipeline variant using the IA patch control-point count and the existing attachment mask. This permits different patch sizes with one D3D12 PSO without requiring extended dynamic state for patch control points.

This contributes to runtime compatibility. The catalogued 1.0.2.1 shader set has no hull or domain shaders. HS/DS translation and pipelines that combine tessellation with a geometry stage remain open.

Tested

Verified rendered output from both 3- and 4-control-point patch lists using one PSO. Also checked mismatched PSO descriptions and command-list topology, existing geometry and mesh draws, and the replay benchmark self-test.

AI-assisted: yes.


🔄 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/1432 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `d3d12-tessellation-patches` --- ### 📝 Commits (1) - [`b22bc56`](https://github.com/ubiquitarianism/leonida/commit/b22bc56151df8f3390ed483d0b7d2841506fb96a) d3d12: replay tessellation pipelines with IA patch sizes ### 📊 Changes **9 files changed** (+301 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+9 -3) 📝 `runtime/CMakeLists.txt` (+16 -1) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+49 -26) 📝 `runtime/src/shader_library.h` (+1 -1) 📝 `runtime/src/vulkan_replay.h` (+13 -3) ➕ `runtime/test/d3d12_tessellation_test.cpp` (+183 -0) ➕ `runtime/test/glsl/tess_patch.tesc` (+20 -0) ➕ `runtime/test/glsl/tess_patch.tese` (+9 -0) 📝 `runtime/test/vk_test_device.h` (+1 -0) </details> ### 📄 Description Claimed in the coordination issue as: [D3D-TESSELLATION](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148029096). ### What and why Accept linked hull and domain shader modules from the shader library in a D3D12 graphics PSO. Replay selects a Vulkan pipeline variant using the IA patch control-point count and the existing attachment mask. This permits different patch sizes with one D3D12 PSO without requiring extended dynamic state for patch control points. This contributes to runtime compatibility. The catalogued 1.0.2.1 shader set has no hull or domain shaders. HS/DS translation and pipelines that combine tessellation with a geometry stage remain open. ### Tested Verified rendered output from both 3- and 4-control-point patch lists using one PSO. Also checked mismatched PSO descriptions and command-list topology, existing geometry and mesh draws, and the replay benchmark self-test. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:21:20 +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#1461
No description provided.