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.ghuge@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26886>
This commit is contained in:
Sagar Ghuge 2024-01-03 15:32:51 -08:00 committed by Marge Bot
parent 56a72e014f
commit 96e0d979a7

View file

@ -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 &&