diff --git a/src/intel/compiler/brw_fs_lower_simd_width.cpp b/src/intel/compiler/brw_fs_lower_simd_width.cpp index 56ec355ba3b..97b26dea55f 100644 --- a/src/intel/compiler/brw_fs_lower_simd_width.cpp +++ b/src/intel/compiler/brw_fs_lower_simd_width.cpp @@ -637,7 +637,8 @@ brw_fs_lower_simd_width(fs_visitor &s) */ const unsigned max_width = MAX2(inst->exec_size, lower_width); - const fs_builder bld = fs_builder(&s).at_end(); + const fs_builder bld = + fs_builder(&s, MAX2(max_width, s.dispatch_width)).at_end(); const fs_builder ibld = bld.at(block, inst) .exec_all(inst->force_writemask_all) .group(max_width, inst->group / max_width); diff --git a/src/intel/compiler/elk/elk_fs.cpp b/src/intel/compiler/elk/elk_fs.cpp index 85b226fe22f..05ec8ba7d2e 100644 --- a/src/intel/compiler/elk/elk_fs.cpp +++ b/src/intel/compiler/elk/elk_fs.cpp @@ -5329,7 +5329,8 @@ elk_fs_visitor::lower_simd_width() */ const unsigned max_width = MAX2(inst->exec_size, lower_width); - const fs_builder bld = fs_builder(this).at_end(); + const fs_builder bld = + fs_builder(this, MAX2(max_width, dispatch_width)).at_end(); const fs_builder ibld = bld.at(block, inst) .exec_all(inst->force_writemask_all) .group(max_width, inst->group / max_width);