i965: Add SHADER_OPCODE_TG4_OFFSET for gather with nonconstant offsets.
authorChris Forbes <chrisf@ijw.co.nz>
Tue, 8 Oct 2013 08:42:10 +0000 (21:42 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 26 Oct 2013 08:54:15 +0000 (21:54 +1300)
commit6bb2cf2107c4461ea9dd100edaf110b839311b90
tree0f3c06f08079693d01806c841e98a377e6afbe88
parentcd8505bfb8d6ff86adeff9416e0dcf9085fd8fb0
i965: Add SHADER_OPCODE_TG4_OFFSET for gather with nonconstant offsets.

The generator code ends up clearer this way than if we had to sniff
via the message length. Implemented via the gather4_po message in
hardware, which is present in Gen7 and later.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp