mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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>
This commit is contained in:
parent
c325aa5d80
commit
c948aab96c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue