[Mesa-dev] [PATCH 08/24] i965/fs: Return 32 bit mask from fs_builder::sample_mask().
Francisco Jerez
currojerez at riseup.net
Fri May 27 03:46:13 UTC 2016
This doesn't actually handle the FS case, just add an assertion for
the moment so I don't forget to update it later on for SIMD32 fragment
shader dispatch.
---
src/mesa/drivers/dri/i965/brw_fs_builder.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_builder.h b/src/mesa/drivers/dri/i965/brw_fs_builder.h
index f38be6c..f22903e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_builder.h
+++ b/src/mesa/drivers/dri/i965/brw_fs_builder.h
@@ -236,8 +236,10 @@ 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(0xffff);
+ return brw_imm_d(0xffffffff);
} else if (((brw_wm_prog_data *)shader->stage_prog_data)->uses_kill) {
return brw_flag_reg(0, 1);
} else {
--
2.7.3
More information about the mesa-dev
mailing list