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

Closed
leonida/mandy
PyZikYG wants to merge 0 commits from d3d12-tessellation-patches into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

PyZikYG commented 2026-11-25 00:08:57 +00:00

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.

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.
whoalin1 commented 2026-11-25 06:22:50 +00:00

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.

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.
Sign in to join this conversation.
No description provided.