tgsi: add support for texture offsets to the TGSI IR. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 26 Aug 2011 09:59:18 +0000 (10:59 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Sep 2011 09:47:45 +0000 (10:47 +0100)
commit2083a276eb270b748d1c2668eb9faa5aadc8e700
treefa03d01ecdba21bab656cf5e9f274ee2b0db7f83
parent49e24d3b8c0129e11fcc94b6e74dc2589d64c882
tgsi: add support for texture offsets to the TGSI IR. (v2)

This adds tokens for texture offsets, to store 4 * swizzled vec 3
for use in TXF and other opcodes.

It also contains TGSI exec changes for softpipe to use this code,
along with GLSL->TGSI support for TXF.

v2: add some more comments, add back padding I removed.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
13 files changed:
src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/auxiliary/tgsi/tgsi_parse.c
src/gallium/auxiliary/tgsi/tgsi_parse.h
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h
src/gallium/docs/source/tgsi.rst
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/include/pipe/p_shader_tokens.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c