[Mesa-dev] [PATCH 10/11] freedreno: a2xx: start max_reg at -1
Jonathan Marek
jonathan at marek.ca
Mon Oct 8 04:06:10 UTC 2018
on a220 it makes a difference if the max register # is -1 or 0
Signed-off-by: Jonathan Marek <jonathan at 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
More information about the mesa-dev
mailing list