d3d12: replay tessellation pipelines with IA patch sizes (D3D-TESSELLATION) #1432

Closed
github-bot wants to merge 1 commit from github-bot/gh-1432 into main AGit
Owner

@⁠PyZikYG on GitHub · 2026-11-25 00:08 UTC · original
PyZikYG:d3d12-tessellation-patches → main · +301 −34 · 9 files · 1 commits · closed without merging

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.

**@⁠PyZikYG** on GitHub · 2026-11-25 00:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1432) `PyZikYG:d3d12-tessellation-patches` → `main` · +301 −34 · 9 files · 1 commits · closed without merging Claimed in the coordination issue as: [D3D-TESSELLATION](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:51:18 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 06:22 UTC · original

Independent verification on real hardware (native Windows 11, LEONIDA_VK_VALIDATION=1):

  • NVIDIA RTX 4070 SUPER: 18/18 ctest pass — d3d12_tessellation (new test, renders 3- and 4-control-point patches through one PSO, pixel-exact), plus d3d12_geometry/mesh/draw/msaa_draw/depth24_draw/pso_validation, all replay_*, vk_command_replay; replay_cpu_bench --self-test ok.
  • AMD Radeon iGPU (gfx1036, 128-byte push constants): the new test and 5 sibling d3d12 graphics tests cannot reach their GPU path — "pipelines need 144 bytes of push constants … maxPushConstantsSize 128". Confirmed identical on clean origin/main c7e82e26e: pre-existing platform limit (#224 fallback gap), not a regression from this PR.

AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 06:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1432#issuecomment-7154730611) Independent verification on real hardware (native Windows 11, `LEONIDA_VK_VALIDATION=1`): - **NVIDIA RTX 4070 SUPER**: 18/18 ctest pass — `d3d12_tessellation` (new test, renders 3- and 4-control-point patches through one PSO, pixel-exact), plus `d3d12_geometry`/`mesh`/`draw`/`msaa_draw`/`depth24_draw`/`pso_validation`, all `replay_*`, `vk_command_replay`; `replay_cpu_bench --self-test` ok. - **AMD Radeon iGPU** (gfx1036, 128-byte push constants): the new test and 5 sibling d3d12 graphics tests cannot reach their GPU path — "pipelines need 144 bytes of push constants … maxPushConstantsSize 128". Confirmed identical on clean `origin/main` `c7e82e26e`: pre-existing platform limit (#224 fallback gap), not a regression from this PR. AI-assisted verification.
github-bot closed this pull request 2026-11-26 12:21:02 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.