summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/compiler
diff options
context:
space:
mode:
authorDavid Heidelberger <[email protected]>2013-10-07 18:06:11 +0200
committerMarek Olšák <[email protected]>2013-10-21 01:31:51 +0200
commitc948aab96ca512247124819c4a2736e7385ea95d (patch)
tree4d928fdbf890aca671f5c6342bbd5f164b407bda /src/gallium/drivers/r300/compiler
parentc325aa5d803368adff6db20cebad7d5ab23f6eb1 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/compiler')
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_rename_regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/compiler/radeon_rename_regs.c b/src/gallium/drivers/r300/compiler/radeon_rename_regs.c
index 7b29eceb684..498b88fca67 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;