Module: Mesa Branch: main Commit: f5d15d6a06b4386f6a13af09d17ebb0a0d6c0732 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5d15d6a06b4386f6a13af09d17ebb0a0d6c0732
Author: Caio Oliveira <caio.olive...@intel.com> Date: Wed Oct 19 11:28:22 2022 -0700 anv/xe2+: Use Region-based Tessellation redistribution Update to recommended value from BSpec for xe2. Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26438> --- 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 */