From 6b494745be0900a67004d6f3e4b730c3cd67da79 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 27 Oct 2022 13:17:45 +0300 Subject: [PATCH] intel/fs: only avoid SIMD32 if strictly inferior in throughput This enabled SIMD32 in blorp shaders and seems to be give a small FPS bump when using a DG2 GPU as secondary (requires copies to linear buffers to exchange with main GPU). Signed-off-by: Lionel Landwerlin Acked-by: Matt Turner Part-of: --- 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 9ae36e9f89b..dbd84968509 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -7625,7 +7625,7 @@ brw_compile_fs(const struct brw_compiler *compiler, } else { const performance &perf = v32->performance_analysis.require(); - if (!INTEL_DEBUG(DEBUG_DO32) && throughput >= perf.throughput) { + if (!INTEL_DEBUG(DEBUG_DO32) && throughput > perf.throughput) { brw_shader_perf_log(compiler, params->log_data, "SIMD32 shader inefficient\n"); } else {