Module: Mesa Branch: main Commit: d96705e4b88a7edb7279c1a8602699dda60984ad URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d96705e4b88a7edb7279c1a8602699dda60984ad
Author: Caio Oliveira <caio.olive...@intel.com> Date: Wed Oct 19 14:41:32 2022 -0700 iris/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/gallium/drivers/iris/iris_state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index bee087d191a..7ec776fd2dc 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -5031,7 +5031,11 @@ iris_store_tes_state(const struct intel_device_info *devinfo, te.TessellationDistributionMode = TEDMODE_RR_FREE; } + #if GFX_VER >= 20 + te.TessellationDistributionLevel = TEDLEVEL_REGION; + #else te.TessellationDistributionLevel = TEDLEVEL_PATCH; + #endif /* 64_TRIANGLES */ te.SmallPatchThreshold = 3; /* 1K_TRIANGLES */