lima: fix dynarray usage in lima_submit_add_bo
authorErico Nunes <nunes.erico@gmail.com>
Fri, 14 Jun 2019 10:28:55 +0000 (12:28 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Fri, 14 Jun 2019 18:47:35 +0000 (20:47 +0200)
commit3ddea5e8c526334afa29641d4bdedce418f3b6d6
tree26b03ac12dab2871e1c0f747a1e5582b12cdfa06
parent9ab8d31f32ba557ed33dd7c41b40dd565067b12c
lima: fix dynarray usage in lima_submit_add_bo

Commit de8a919702a refactored dynarray usage and changed the size of the
allocation in lima_submit_add_bo.
That causes a segfault in programs running with lima.
This commit restores the allocation size back to the previous size.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_submit.c