Mesa (main): anv: Drop hint if primitive id is required or not
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 26 18:35:39 UTC 2021
Module: Mesa
Branch: main
Commit: 1ee043e66214519513f3647e754ea051553cd528
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ee043e66214519513f3647e754ea051553cd528
Author: Sagar Ghuge <sagar.ghuge at intel.com>
Date: Thu Oct 21 12:48:47 2021 -0700
anv: Drop hint if primitive id is required or not
Signed-off-by: Sagar Ghuge <sagar.ghuge at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13474>
---
src/intel/vulkan/genX_pipeline.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index bc34a7e38e3..81b07c40ade 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1975,6 +1975,9 @@ emit_3dstate_hs_te_ds(struct anv_graphics_pipeline *pipeline,
tes_prog_data->base.cull_distance_mask;
#endif
+#if GFX_VER >= 12
+ ds.PrimitiveIDNotRequired = !tes_prog_data->include_primitive_id;
+#endif
#if GFX_VERx10 >= 125
ds.ScratchSpaceBuffer = get_scratch_surf(&pipeline->base, tes_bin);
#else
More information about the mesa-commit
mailing list