mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
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:
parent
087e3f8da8
commit
b9121624fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue