[Mesa-dev] [PATCH 41/47] (0039) i965/fs: Fix fs_builder::sample_mask_reg() for 32-wide FS dispatch.
Shaofeng Tang
shaofeng.tang at intel.com
Mon May 21 03:30:15 UTC 2018
From: Francisco Jerez <currojerez at riseup.net>
Change-Id: I29db4abf960d785a4d9eedcf5676cf9b20e07df2
---
src/intel/compiler/brw_fs_builder.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/intel/compiler/brw_fs_builder.h b/src/intel/compiler/brw_fs_builder.h
index 4203c8c..7bee2aa 100644
--- a/src/intel/compiler/brw_fs_builder.h
+++ b/src/intel/compiler/brw_fs_builder.h
@@ -235,14 +235,14 @@ namespace brw {
src_reg
sample_mask_reg() const
{
- assert(shader->stage != MESA_SHADER_FRAGMENT ||
- group() + dispatch_width() <= 16);
if (shader->stage != MESA_SHADER_FRAGMENT) {
return brw_imm_d(0xffffffff);
} else if (brw_wm_prog_data(shader->stage_prog_data)->uses_kill) {
return brw_flag_reg(0, 1);
} else {
- return retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UD);
+ assert(shader->devinfo->gen >= 6 && dispatch_width() <= 16);
+ return retype(brw_vec1_grf((_group >= 16 ? 2 : 1), 7),
+ BRW_REGISTER_TYPE_UD);
}
}
--
2.7.4
More information about the mesa-dev
mailing list