r300/compiler: Fix yet another regression in register allocation
authorNicolai Hähnle <nhaehnle@gmail.com>
Tue, 6 Oct 2009 19:13:27 +0000 (21:13 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Tue, 6 Oct 2009 19:13:27 +0000 (21:13 +0200)
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c

index e39ac2f510414485a67c610e5f111aebb964e506..828d0c8e28e7f514aa5ef8d12890cf20652478c2 100644 (file)
@@ -177,6 +177,7 @@ static void scan_callback(void * data, struct rc_instruction * inst,
                        reg->Live.Start = -1;
                else
                        reg->Live.Start = inst->IP;
+               reg->Live.End = inst->IP;
        } else {
                if (inst->IP > reg->Live.End)
                        reg->Live.End = inst->IP;