ra: assert against unsigned underflow in q_total
authorConnor Abbott <cwabbott0@gmail.com>
Sat, 6 Sep 2014 00:59:32 +0000 (20:59 -0400)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Fri, 12 Sep 2014 14:07:47 +0000 (16:07 +0200)
commit2828680e39e843514a38781878e2a3534f876233
tree5439ab520a1749dc0d113a1e8f43db30e0c9cc02
parentec046bc08ef8ccf69e867635c7d1e2e032acce36
ra: assert against unsigned underflow in q_total

q_total should never go below 0 (which is why it's defined as unsigned),
and if it does, then something is seriously wrong.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/register_allocate.c