i965/fs: Return 32 bit mask from fs_builder::sample_mask().
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 17 May 2016 01:18:43 +0000 (18:18 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:29:05 +0000 (23:29 -0700)
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 <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_builder.h

index f38be6cdf4ceed88686bb2fb2c4a9a7f4ce90fab..f22903e523405ae5d291078448554eb30f5ceea0 100644 (file)
@@ -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 {