mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
anv, iris: Implement Wa_14014890652 for DG2
Workaround is to set: 3DSTATE_VFG::GranularityThresholdDisable = 1 3DSTATE_VFG::DistributionGranularity = BATCH 3DSTATE_VF::GeometryDistributionEnable = 1 Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14212>
This commit is contained in:
parent
40b66a4499
commit
cd38b6e2e8
2 changed files with 6 additions and 0 deletions
|
|
@ -6639,6 +6639,9 @@ 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;
|
||||
vfg.ListCutIndexEnable = draw->primitive_restart;
|
||||
/* 192 vertices for TRILIST_ADJ */
|
||||
vfg.ListNBatchSizeScale = 0;
|
||||
|
|
|
|||
|
|
@ -695,6 +695,9 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer)
|
|||
anv_pipeline_has_stage(pipeline, MESA_SHADER_TESS_EVAL) ? RR_STRICT :
|
||||
RR_FREE;
|
||||
vfg.DistributionGranularity = BatchLevelGranularity;
|
||||
/* Wa_14014890652 */
|
||||
if (intel_device_info_is_dg2(&cmd_buffer->device->info))
|
||||
vfg.GranularityThresholdDisable = 1;
|
||||
vfg.ListCutIndexEnable = d->primitive_restart_enable;
|
||||
/* 192 vertices for TRILIST_ADJ */
|
||||
vfg.ListNBatchSizeScale = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue