on a220 it makes a difference if the max register # is -1 or 0

Signed-off-by: Jonathan Marek <jonat...@marek.ca>
---
 src/gallium/drivers/freedreno/a2xx/ir-a2xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c 
b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
index f8e056e424..3924d11e5a 100644
--- a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
+++ b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
@@ -209,8 +209,8 @@ void* ir2_shader_assemble(struct ir2_shader *shader,
        /* bitmask of variables required for exports defined by "export" */
        uint32_t export_mask[REG_MASK/32+1] = {};
 
-       unsigned idx, reg_idx;
-       unsigned max_input = 0;
+       int idx, reg_idx;
+       int max_input = -1;
        int export_size = -1;
 
        for (idx = 0; idx < shader->instr_count; idx++) {
-- 
2.17.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to