turnip: Account for additional_cs_reserve_size for both bin and render.

Both emit_program() calls will use this space.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17102>
This commit is contained in:
Emma Anholt 2022-06-16 16:29:51 -07:00 committed by Marge Bot
parent e082b26458
commit 7d9a824d27

View file

@ -2347,7 +2347,8 @@ tu_pipeline_allocate_cs(struct tu_device *dev,
}
}
size += builder->additional_cs_reserve_size;
/* The additional size is used twice, once per tu6_emit_program() call. */
size += builder->additional_cs_reserve_size * 2;
} else {
size += compute->info.size / 4;