Implement Pow2 tessellation partitioning case

Add handling for Pow2 tessellation partitioning in SPIR-V.
This commit is contained in:
Hog 2026-06-07 09:49:18 +01:00 committed by GitHub
parent c234299be7
commit 9af54811a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,6 +236,10 @@ spv::ExecutionMode ExecutionMode(AmdGpu::TessellationPartitioning spacing) {
return spv::ExecutionMode::SpacingFractionalOdd;
case AmdGpu::TessellationPartitioning::FracEven:
return spv::ExecutionMode::SpacingFractionalEven;
case AmdGpu::TessellationPartitioning::Pow2:
// Pow2 rounds tessellation factors to the nearest power of 2, which has no
// direct Vulkan equivalent. SpacingEqual (integer) is the closest match.
return spv::ExecutionMode::SpacingEqual;
default:
break;
}