iris: xe2 doesn't have INTERFACE_DESCRIPTOR_DATA::BarrierEnable

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26390>
This commit is contained in:
Jordan Justen 2022-12-16 03:24:44 -08:00 committed by Marge Bot
parent ef1c1ca821
commit 16483cd4bc

View file

@ -5172,7 +5172,9 @@ iris_store_cs_state(const struct intel_device_info *devinfo,
assert(cs_prog_data->push.per_thread.regs == 0);
assert(cs_prog_data->push.cross_thread.regs == 0);
#endif
#if GFX_VERx10 <= 125
desc.BarrierEnable = cs_prog_data->uses_barrier;
#endif
/* Typically set to 0 to avoid prefetching on every thread dispatch. */
desc.BindingTableEntryCount = devinfo->verx10 == 125 ?
0 : MIN2(shader->bt.size_bytes / 4, 31);