intel/compiler: make sure we keep the lowest dispatch limit

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7455>
This commit is contained in:
Lionel Landwerlin 2020-10-30 17:41:02 +02:00 committed by Marge Bot
parent 4dcfb18a82
commit dabaaaf6c7
1 changed files with 1 additions and 1 deletions

View File

@ -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);