Mesa (main): anv: Enable tessellation redistribution
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 13 22:51:58 UTC 2021
Module: Mesa
Branch: main
Commit: a98ece61e9109963da525592a6890ad1166a0993
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a98ece61e9109963da525592a6890ad1166a0993
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date: Fri Jun 5 14:40:25 2020 -0700
anv: Enable tessellation redistribution
This patch adds Tessellation Distribution on top of Geometry
Distribution. Using recommended values based on performance studies
across a range of workloads.
Rework:
- Add comment for new packet bits (Sagar)
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge at intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12091>
---
src/intel/vulkan/genX_pipeline.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 7675475e17f..bc34a7e38e3 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1929,6 +1929,16 @@ emit_3dstate_hs_te_ds(struct anv_graphics_pipeline *pipeline,
te.TEEnable = true;
te.MaximumTessellationFactorOdd = 63.0;
te.MaximumTessellationFactorNotOdd = 64.0;
+#if GFX_VERx10 >= 125
+ te.TessellationDistributionMode = TEDMODE_RR_FREE;
+ te.TessellationDistributionLevel = TEDLEVEL_PATCH;
+ /* 64_TRIANGLES */
+ te.SmallPatchThreshold = 3;
+ /* 1K_TRIANGLES */
+ te.TargetBlockSize = 8;
+ /* 1K_TRIANGLES */
+ te.LocalBOPAccumulatorThreshold = 1;
+#endif
}
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_DS), ds) {
More information about the mesa-commit
mailing list