iris: 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. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12091>
This commit is contained in:
parent
867e2e0716
commit
20c0ca75f5
|
@ -4435,6 +4435,16 @@ iris_store_tes_state(const struct intel_device_info *devinfo,
|
|||
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
|
||||
}
|
||||
|
||||
iris_pack_command(GENX(3DSTATE_DS), ds_state, ds) {
|
||||
|
|
Loading…
Reference in New Issue