diff options
author | Erico Nunes <[email protected]> | 2019-06-14 12:28:55 +0200 |
---|---|---|
committer | Erico Nunes <[email protected]> | 2019-06-14 20:47:35 +0200 |
commit | 3ddea5e8c526334afa29641d4bdedce418f3b6d6 (patch) | |
tree | 26b03ac12dab2871e1c0f747a1e5582b12cdfa06 /src/gallium/drivers/lima/lima_submit.c | |
parent | 9ab8d31f32ba557ed33dd7c41b40dd565067b12c (diff) |
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 <[email protected]>
Reviewed-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_submit.c')
-rw-r--r-- | src/gallium/drivers/lima/lima_submit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_submit.c b/src/gallium/drivers/lima/lima_submit.c index c54289d1470..3b5145f3bc4 100644 --- a/src/gallium/drivers/lima/lima_submit.c +++ b/src/gallium/drivers/lima/lima_submit.c @@ -110,7 +110,7 @@ bool lima_submit_add_bo(struct lima_submit *submit, struct lima_bo *bo, uint32_t submit_bo->handle = bo->handle; submit_bo->flags = flags; - struct lima_bo **jbo = util_dynarray_grow(&submit->bos, struct lima_bo, 1); + struct lima_bo **jbo = util_dynarray_grow(&submit->bos, struct lima_bo *, 1); *jbo = bo; /* prevent bo from being freed when submit start */ |