From 058a607754d9fdd0f337ae197cca6532694aa71e Mon Sep 17 00:00:00 2001 From: Krzysztof Krakowiak Date: Fri, 31 May 2013 03:56:41 +0200 Subject: [PATCH] fixes FDO bug #54867 rc_find_free_temporary_list returns signed integer (in case of lack of free temporary registersreturns -1), so new_index in radeon_rename_regs() should be signed. --- src/gallium/drivers/r300/compiler/radeon_rename_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r300/compiler/radeon_rename_regs.c b/src/gallium/drivers/r300/compiler/radeon_rename_regs.c index 7b29ece..498b88f 100644 --- a/src/gallium/drivers/r300/compiler/radeon_rename_regs.c +++ b/src/gallium/drivers/r300/compiler/radeon_rename_regs.c @@ -68,7 +68,7 @@ void rc_rename_regs(struct radeon_compiler *c, void *user) variables = rc_get_variables(c); for (var_ptr = variables; var_ptr; var_ptr = var_ptr->Next) { - unsigned new_index; + int new_index; unsigned writemask; struct rc_variable * var = var_ptr->Item; -- 1.8.2.1