glsl: Change texel offsets to a single vector rvalue.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 9 Jan 2011 07:49:23 +0000 (23:49 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 31 Jan 2011 19:10:59 +0000 (11:10 -0800)
commitc5a27b5939427bdc95c926b450ed3de1ff4baafb
treeed0518338cbec7badc6a699a94167dbec5248429
parent60c8e91c795dc604c08977d5773f96a4de8e402b
glsl: Change texel offsets to a single vector rvalue.

Having these as actual integer values makes it difficult to implement
the texture*Offset built-in functions, since the offset is actually a
function parameter (which doesn't have a constant value).

The original rationale was that some hardware needs these offset baked
into the instruction opcode.  However, at least i965 should be able to
support non-constant offsets.  Others should be able to rely on inlining
and constant propagation.
src/glsl/builtins/tools/texture_builtins.py
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_hv_accept.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/ir_rvalue_visitor.cpp
src/glsl/opt_tree_grafting.cpp