prog_optimize: Fix reallocating registers for shaders with loops
authorTom Stellard <tstellar@gmail.com>
Sun, 27 Mar 2011 08:17:43 +0000 (01:17 -0700)
committerTom Stellard <tstellar@gmail.com>
Fri, 1 Apr 2011 04:20:46 +0000 (21:20 -0700)
commit18dcbd358f1d4fd5e4a40fa26c6d3bf99485884e
tree65bea52d8d54a1bd87055adff17f01669546bea3
parentc3526585b79f6865bfedd15a7336027597555ec7
prog_optimize: Fix reallocating registers for shaders with loops

Registers that are used inside of loops need to be considered live
starting with the first instruction of the outermost loop.

https://bugs.freedesktop.org/show_bug.cgi?id=34370

NOTE: This is a candidate for the 7.9 and 7.10 branches.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_optimize.c