mesa: Fix test for optimistic coloring being necessary. 87/6787/1
authorEric Anholt <eric@anholt.net>
Mon, 6 May 2013 20:47:27 +0000 (13:47 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 29 May 2013 17:16:44 +0000 (10:16 -0700)
commit7e7600d10b9bf29d23b1aefc5c208fc73a21163f
tree5f30ed2bce72d598d90ef28fa1497e646ea79a8d
parent22f1add9687ac272bc731b6612bfee50bdbf2f7e
mesa: Fix test for optimistic coloring being necessary.

i965 and radeon use ra_set_node_reg() to force payload registers to
specific registers while exposing those registers to the allocator still.
We were treating those register nodes as unsuccessfully allocated in the
ra_simplify() step, leading to walking the registers again to do
optimistic coloring even if there was nothing left ot do.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/register_allocate.c