Module: Mesa Branch: main Commit: 16483cd4bc9a09c3bd7f343ecc72082ab20fd12e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=16483cd4bc9a09c3bd7f343ecc72082ab20fd12e
Author: Jordan Justen <jordan.l.jus...@intel.com> Date: Fri Dec 16 03:24:44 2022 -0800 iris: xe2 doesn't have INTERFACE_DESCRIPTOR_DATA::BarrierEnable Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> Reviewed-by: Caio Oliveira <caio.olive...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26390> --- src/gallium/drivers/iris/iris_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d87ada96f75..bee087d191a 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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);