llvmpipe: handle shader sample mask output
authorRoland Scheidegger <sroland@vmware.com>
Tue, 17 Oct 2017 19:55:03 +0000 (21:55 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 18 Oct 2017 16:16:44 +0000 (18:16 +0200)
commit3d0deed12ab3982cc183189f39c0df2793c2d94a
tree8590b205b7fded0202b2195e85878ec1addb6531
parentc5124fbc74dca573fead4149d4287103a84ebae2
llvmpipe: handle shader sample mask output

This probably isn't all that useful for GL, but there are apis where
sample_mask is a valid output even without msaa.
Just discard the pixel if the sample_mask doesn't include the bit for
sample 0.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_fs.c