iris: cleanup, use intel_needs_workaround instead of is_dg2

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26666>
This commit is contained in:
Tapani Pälli 2023-12-13 13:51:12 +02:00 committed by Marge Bot
parent 2f25679b3f
commit 07f8db02ff

View file

@ -7967,9 +7967,10 @@ iris_upload_dirty_render_state(struct iris_context *ice,
ice->shaders.prog[MESA_SHADER_TESS_EVAL] != NULL ? RR_STRICT :
RR_FREE;
vfg.DistributionGranularity = BatchLevelGranularity;
/* Wa_14014890652 */
if (intel_device_info_is_dg2(batch->screen->devinfo))
vfg.GranularityThresholdDisable = 1;
#if INTEL_WA_14014851047_GFX_VER
vfg.GranularityThresholdDisable =
intel_needs_workaround(batch->screen->devinfo, 14014851047);
#endif
vfg.ListCutIndexEnable = draw->primitive_restart;
/* 192 vertices for TRILIST_ADJ */
vfg.ListNBatchSizeScale = 0;