mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 17:10:32 +01:00
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:
parent
2f25679b3f
commit
07f8db02ff
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue