anv: Drop hint if primitive id is required or not
authorSagar Ghuge <sagar.ghuge@intel.com>
Thu, 21 Oct 2021 19:48:47 +0000 (12:48 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 26 Oct 2021 18:22:14 +0000 (18:22 +0000)
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13474>

src/intel/vulkan/genX_pipeline.c

index bc34a7e..81b07c4 100644 (file)
@@ -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