mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
iris: Set patch count threshold in 3DSTATE_HS
Lets specifiy maximum number of patches that will be accumulated before a thread is dispatched. Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3563> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3563>
This commit is contained in:
parent
60c789543e
commit
c40acdef52
1 changed files with 7 additions and 0 deletions
|
|
@ -4183,6 +4183,13 @@ iris_store_tcs_state(struct iris_context *ice,
|
|||
hs.MaximumNumberofThreads = devinfo->max_tcs_threads - 1;
|
||||
hs.IncludeVertexHandles = true;
|
||||
|
||||
#if GEN_GEN == 12
|
||||
/* Patch Count threshold specifies the maximum number of patches that
|
||||
* will be accumulated before a thread dispatch is forced.
|
||||
*/
|
||||
hs.PatchCountThreshold = tcs_prog_data->patch_count_threshold;
|
||||
#endif
|
||||
|
||||
#if GEN_GEN >= 9
|
||||
hs.DispatchMode = vue_prog_data->dispatch_mode;
|
||||
hs.IncludePrimitiveID = tcs_prog_data->include_primitive_id;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue