iris: Drop hint if primitive id is required or not

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>
This commit is contained in:
Sagar Ghuge 2021-10-21 12:54:01 -07:00 committed by Marge Bot
parent 1ee043e662
commit 29762ea897
1 changed files with 3 additions and 0 deletions

View File

@ -4423,6 +4423,9 @@ iris_store_tes_state(const struct intel_device_info *devinfo,
ds.ComputeWCoordinateEnable =
tes_prog_data->domain == BRW_TESS_DOMAIN_TRI;
#if GFX_VER >= 12
ds.PrimitiveIDNotRequired = !tes_prog_data->include_primitive_id;
#endif
ds.UserClipDistanceCullTestEnableBitmask =
vue_prog_data->cull_distance_mask;
}