spirv: Flip the tessellation winding order
It's not SPIR-V that's backwards from GLSL, it's Vulkan that's backwards from GL. Let's make NIR consistent with the source language and do the flipping inside the Vulkan driver instead. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -262,6 +262,7 @@ radv_tess_pipeline_compile(struct radv_pipeline *pipeline,
|
||||
if (tcs_nir == NULL)
|
||||
return;
|
||||
|
||||
tes_nir->info.tess.ccw = !tes_nir->info.tess.ccw;
|
||||
nir_lower_tes_patch_vertices(tes_nir,
|
||||
tcs_nir->info.tess.tcs_vertices_out);
|
||||
|
||||
|
Reference in New Issue
Block a user