i965/fs: Define logical typed and untyped surface opcodes.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 21 Jul 2015 15:45:32 +0000 (18:45 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 29 Jul 2015 11:12:49 +0000 (14:12 +0300)
commit7a594a95a930f1658062e4d86d0f37d491b372b3
treec6e1edcfd16a8dcbbaa55763deb50a5ab06abb33
parent3af2623da5167aa686bcb2cff01d27058a507026
i965/fs: Define logical typed and untyped surface opcodes.

Each logical variant is largely equivalent to the original opcode but
instead of taking a single payload source it expects its arguments
separately as individual sources, like:

 typed_surface_write_logical null, coordinates, source, surface,
                                    num_coordinates, num_components

This patch defines the opcodes and usual instruction boilerplate,
including a placeholder lowering function provided mainly as
documentation for their source registers.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp