intel/fs: limit FS dispatch to SIMD16 when using ray queries
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 2 Jul 2021 09:47:38 +0000 (12:47 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Feb 2022 12:55:25 +0000 (12:55 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13719>

src/intel/compiler/brw_fs.cpp

index 4ccaea5..3dbb7b6 100644 (file)
@@ -9762,6 +9762,9 @@ brw_compile_fs(const struct brw_compiler *compiler,
                                " pixel shading.\n");
    }
 
+   if (nir->info.ray_queries > 0)
+      v8->limit_dispatch_width(16, "SIMD32 with ray queries.\n");
+
    if (!has_spilled &&
        v8->max_dispatch_width >= 16 &&
        (!INTEL_DEBUG(DEBUG_NO16) || params->use_rep_send)) {