diff options
author | Sagar Ghuge <[email protected]> | 2020-01-23 22:27:53 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-23 17:57:57 +0000 |
commit | 60c789543e3738f3a39897758d7507da8c044d78 (patch) | |
tree | 997767772edea505565c328988ab5124d17bbb71 /src | |
parent | 1a5ac646cefaa183ee09b149ea31931d122c0f51 (diff) |
anv: 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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3563>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index e775c29a2c2..b02b9e96db5 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1623,6 +1623,13 @@ emit_3dstate_hs_te_ds(struct anv_graphics_pipeline *pipeline, hs.ScratchSpaceBasePointer = get_scratch_address(&pipeline->base, MESA_SHADER_TESS_CTRL, tcs_bin); +#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 = tcs_prog_data->base.dispatch_mode; hs.IncludePrimitiveID = tcs_prog_data->include_primitive_id; |