From dabaaaf6c7fee81df252054f5f55320dad4a7d1a Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 30 Oct 2020 17:41:02 +0200 Subject: [PATCH] intel/compiler: make sure we keep the lowest dispatch limit Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Reviewed-by: Kenneth Graunke 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 512a616..4e3476f 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -714,7 +714,7 @@ fs_visitor::limit_dispatch_width(unsigned n, const char *msg) if (dispatch_width > n) { fail("%s", msg); } else { - max_dispatch_width = n; + max_dispatch_width = MIN2(max_dispatch_width, n); compiler->shader_perf_log(log_data, "Shader dispatch width limited to SIMD%d: %s", n, msg); -- 2.7.4