From f5d15d6a06b4386f6a13af09d17ebb0a0d6c0732 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Wed, 19 Oct 2022 11:28:22 -0700 Subject: [PATCH] anv/xe2+: Use Region-based Tessellation redistribution Update to recommended value from BSpec for xe2. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_pipeline.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 7e596a4b6cb..68e7a3f2a7d 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1410,7 +1410,11 @@ emit_3dstate_te(struct anv_graphics_pipeline *pipeline) te.TessellationDistributionMode = TEDMODE_OFF; } +#if GFX_VER >= 20 + te.TessellationDistributionLevel = TEDLEVEL_REGION; +#else te.TessellationDistributionLevel = TEDLEVEL_PATCH; +#endif /* 64_TRIANGLES */ te.SmallPatchThreshold = 3; /* 1K_TRIANGLES */