From 96e0d979a7b9fb65a8fa88079ae779310e36ad2a Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Wed, 3 Jan 2024 15:32:51 -0800 Subject: [PATCH] intel/fs: Check fs_visitor instance before using it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Xe2+, we don't build the SIMD8 shader so this check makes sure we don't execute the uninitialized invocations. Signed-off-by: Sagar Ghuge Reviewed-by: Tapani Pälli Part-of: --- src/intel/compiler/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 0c50348710b..cde619e8e6f 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -7757,7 +7757,7 @@ brw_compile_fs(const struct brw_compiler *compiler, " pixel shading.\n"); } - if (nir->info.ray_queries > 0) + if (nir->info.ray_queries > 0 && v8) v8->limit_dispatch_width(16, "SIMD32 with ray queries.\n"); if (!has_spilled &&