i965/fs: Rudimentary support for non-floating point texture results.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Aug 2011 07:18:15 +0000 (00:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 23 Aug 2011 18:18:08 +0000 (11:18 -0700)
commitb6bdcf2a908889532ef6d5eb643791176dffcb9d
treedd8edd2ab8c977e747937afd2f8b0cf9bd8234da
parent2054652796d78996b1f9308ab1a75361d71e864e
i965/fs: Rudimentary support for non-floating point texture results.

Not all texturing operations return floating point data.  For example,
the resinfo message (textureSize or TXS) returns integer data.  In the
future, we'll also add integer texture support.

ir_texture's type field contains this information; use its base type to
appropriately type the destination register.  We want to keep it as a
four component vector, however, since SIMD8 samplers always have a
response length of 4.

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