i965/vs: Add support for texel offsets.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 12 Nov 2011 10:21:44 +0000 (02:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Dec 2011 00:33:10 +0000 (16:33 -0800)
commit328b693a199a67ce3a17d258f34d7bfd26790871
tree8037cdc595e057b2594c5a593e74a240e2cc8fa7
parent475d70d6ef5feb94efab3923e5607e625f2aee67
i965/vs: Add support for texel offsets.

The visit() half computes the values to put in the header based on the
IR and simply stuffs that in the vec4_instruction; the emit() half uses
this to set up the message header.  This works out well since emit() can
use brw_reg directly and access individual DWords without kludgery.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp