summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-05-16 18:18:43 -0700
committerFrancisco Jerez <[email protected]>2016-05-27 23:29:05 -0700
commitae730049c67cb882c3f936ba6a2c3b1449c45f5e (patch)
tree5ff7a4530cf60d19443a0df7ca4d2d9df23ff8c4 /src/mesa/drivers
parent8b6edee6790f5e196a815f7a149792279564871f (diff)
i965/fs: Return 32 bit mask from fs_builder::sample_mask().
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. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_builder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_builder.h b/src/mesa/drivers/dri/i965/brw_fs_builder.h
index f38be6cdf4c..f22903e5234 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 {