From 2665595244811d84b0acd4a8df32d2feaf95cb9e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 2 Jul 2021 12:47:38 +0300 Subject: [PATCH] intel/fs: limit FS dispatch to SIMD16 when using ray queries Signed-off-by: Lionel Landwerlin Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_fs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 4ccaea593c4..3dbb7b61081 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -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)) {