i965/blorp: Add support for sampling 3D textures
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 8 Apr 2016 07:22:37 +0000 (10:22 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 21 Apr 2016 07:20:01 +0000 (10:20 +0300)
commit9e4d19372b1d7f6ab12ddab1929a53335d9cce06
tree3ec4a047e5277b38ac64b8a4f2099386a737d0f4
parent6b33d63d77ab7835b5883140e54316e86e73888d
i965/blorp: Add support for sampling 3D textures

This patch adds additional MOV instruction for all blorp programs
that use SHADER_OPCODE_TXF. Alternative is to augment blorp program
key to tell if z-coordinate is needed, add condition to the blorp
blit compiler and to produce a variant with and without the MOV.
This seems a little overkill.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/gen8_blorp.cpp