intel/fs: Return consistent UW types from sample_mask_reg() in fragment shaders.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 5 Jan 2020 00:11:23 +0000 (16:11 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Feb 2020 22:31:49 +0000 (14:31 -0800)
commit04c7d3d4b19610cae8250102fefd0012b7233d9e
tree5d0d9b493b6a840f9b73114c43419cfee5bf44cb
parent1c6853a9be28c4193fc44eebf812ecf7a02a04f9
intel/fs: Return consistent UW types from sample_mask_reg() in fragment shaders.

In SIMD32 programs that don't use discard, the upper 16 bits of the UD
result of sample_mask_reg() don't contain the sample mask of the upper
16 channels as one would expect.  Stop pretending we are returning a
valid 32-bit mask.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.cpp