From 30c0f2bfbbd1d1b245281cfa6858c016aab5e9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Mon, 16 May 2022 12:26:51 +0200 Subject: [PATCH] intel/compiler: there are 4 types of fences on gfx >= 12.5 Found by code inspection. There's an assert later checking that we haven't overflown this array, so this change probably doesn't matter for any workload. Cc: 22.1 Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_fs_nir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index d8379706c54..3a0af5007aa 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -4556,7 +4556,7 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr } unsigned fence_regs_count = 0; - fs_reg fence_regs[3] = {}; + fs_reg fence_regs[4] = {}; const fs_builder ubld = bld.group(8, 0);