diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 95c937a8f3b..41d48bfc7f7 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -3232,6 +3232,9 @@ fs_visitor::run_fs(bool allow_spilling, bool do_rep_send) payload_ = new fs_thread_payload(*this, source_depth_to_render_target); + if (nir->info.ray_queries > 0) + limit_dispatch_width(16, "SIMD32 not supported with ray queries.\n"); + if (do_rep_send) { assert(dispatch_width == 16); emit_repclear_shader(); @@ -3847,9 +3850,6 @@ brw_compile_fs(const struct brw_compiler *compiler, " pixel shading.\n"); } - if (nir->info.ray_queries > 0 && v8) - v8->limit_dispatch_width(16, "SIMD32 with ray queries.\n"); - if (!has_spilled && (!v8 || v8->max_dispatch_width >= 16) && (INTEL_SIMD(FS, 16) || params->use_rep_send)) {