iris: assert(bo->deps) after realloc()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 8 Sep 2023 21:50:17 +0000 (14:50 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 19 Sep 2023 18:33:48 +0000 (18:33 +0000)
commit7c538b5ad8ef7b86164080c1639d993b7d7bdfb9
tree3d786ecfd5564eb49df363cb28065940e4f50a97
parent3cec15dd142b47c33b9e266a9b9f8e2c6540fa99
iris: assert(bo->deps) after realloc()

Iris in general doesn't really like checking the return value of its
allocations, but in some places it does assert that those pointers are
non-NULL. We've recently investigated a bug that could have been
coming from a failed bo->deps realloc(), so add the assert() here to
help give us more confidence over things the next time we're debugging
issues.

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25236>
src/gallium/drivers/iris/iris_batch.c