aux/tc: fix initial rp info allocation

this value is -1 by default, which means the initial allocation yields
9 info structs instead of 10 (though this has no bearing on functionality)

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21800>
This commit is contained in:
Mike Blumenkrantz
2023-03-13 07:41:33 -04:00
committed by Marge Bot
parent 1a9ba0aaa3
commit 64a256c66a
@@ -121,7 +121,7 @@ static void
tc_batch_renderpass_infos_resize(struct threaded_context *tc, struct tc_batch *batch)
{
unsigned size = batch->renderpass_infos.capacity;
unsigned cur_num = batch->renderpass_info_idx;
unsigned cur_num = MAX2(batch->renderpass_info_idx, 0);
if (size / sizeof(struct tc_renderpass_info) > cur_num)
return;