i965/blorp: Emit sample index in SAMPLE_LD message when necessary
authorPaul Berry <stereotype441@gmail.com>
Wed, 9 May 2012 13:57:06 +0000 (06:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 25 May 2012 15:45:10 +0000 (08:45 -0700)
commit233c207e9e477b6b0a5c6705e727129b92989073
treebbbbda7b1fb0f5e6bf64740fd58d095b6952b318
parent665dc82bdc0e83854dd0f700ec264021bfb5cb39
i965/blorp: Emit sample index in SAMPLE_LD message when necessary

This patch modifies the function brw_blorp_blit_program::texel_fetch()
to emit the SI (sample index) argument to the SAMPLE_LD message when
reading from a sample index other than zero.

Previously we were using the ugly hack of configuring multisampled
source surfaces as single-sampled, and accessing sample indices other
than zero by swizzling the texture coordinates in the WM program.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp