r300g/compiler: Fix unsigned comparison with less than zero
authorDavid Heidelberger <david.heidelberger@ixit.cz>
Mon, 7 Oct 2013 16:06:11 +0000 (18:06 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 20 Oct 2013 23:31:51 +0000 (01:31 +0200)
commitc948aab96ca512247124819c4a2736e7385ea95d
tree4d928fdbf890aca671f5c6342bbd5f164b407bda
parentc325aa5d803368adff6db20cebad7d5ab23f6eb1
r300g/compiler: Fix unsigned comparison with less than zero

rc_find_free_temporary_list() returns signed integer
(in case of lack of free temporary registers returns -1),
so new_index in radeon_rename_regs() should be signed.

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

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r300/compiler/radeon_rename_regs.c