pan/bi: Fix off-by-one in RA

Could result in trying to allocate R64 which is clearly wrong.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7615>
This commit is contained in:
Alyssa Rosenzweig
2020-11-24 13:56:52 -05:00
committed by Marge Bot
parent 087e3f8da8
commit b9121624fc

View File

@@ -76,7 +76,7 @@ bi_allocate_registers(bi_context *ctx, bool *success)
} else {
/* R0 - R63, all 32-bit */
l->class_start[BI_REG_CLASS_WORK] = 0;
l->class_size[BI_REG_CLASS_WORK] = 64 * 4;
l->class_size[BI_REG_CLASS_WORK] = 63 * 4;
}
bi_foreach_instr_global(ctx, ins) {