i965/fs: Simplify gl_SampleMaskIn handling.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 14 May 2014 04:21:21 +0000 (21:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:18 +0000 (23:35 -0700)
commitc76e6db05f9256711a226de8562124a5f14aae2d
tree047f54c1a9f7afb5d7f6e55d08b6f4c2ff286b37
parent5cd7cf58e66ebb4e87a7fe6bba3b43f062ace47f
i965/fs: Simplify gl_SampleMaskIn handling.

As far as I can tell, there's no point in allocating an extra register
and generating a MOV---we can just use the copy provided as part of our
thread payload directly.  It's already in the right format.

Of course, there are zero Piglit tests for this.  We don't actually ship
the extension (GL_ARB_gpu_shader5) that exposes this functionality
either.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp