Module: Mesa Branch: main Commit: 96e0d979a7b9fb65a8fa88079ae779310e36ad2a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=96e0d979a7b9fb65a8fa88079ae779310e36ad2a
Author: Sagar Ghuge <sagar.gh...@intel.com> Date: Wed Jan 3 15:32:51 2024 -0800 intel/fs: Check fs_visitor instance before using it 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 <sagar.gh...@intel.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26886> --- 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 &&