i915: Refine the texture indirect lookup accounting.
authorEric Anholt <eric@anholt.net>
Sun, 5 Oct 2008 01:20:35 +0000 (18:20 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 5 Oct 2008 01:40:32 +0000 (18:40 -0700)
commit91d0020eecb78ef2984fd0afafc5d555c0e957d8
tree7087a3ad731bde8c1b24ee8b3c23ac4c5aa288c8
parentdb9ba91971a1f279b040b30bf8fd5d13a70f0a03
i915: Refine the texture indirect lookup accounting.

Without this, we would reject programs which sampled multiple times from
registers defined in the same phase (block of instructions with the same
texture indirection count), as each sample would count as a new phase
beginning.  Instead, keep track of which phases registers were written in,
and only bump phase when we're reading from one generated in this phase.

On the other hand, we failed to count oC or oD texture samples as being new
phases.

Bug #17865.
src/mesa/drivers/dri/i915/i915_context.h
src/mesa/drivers/dri/i915/i915_program.c