anv: check the return value of anv_execbuf_add_bo_bitset()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Sat, 14 Jan 2023 00:51:59 +0000 (16:51 -0800)
committerEric Engestrom <eric@engestrom.ch>
Thu, 26 Jan 2023 15:40:31 +0000 (15:40 +0000)
commit9098d83fb3391c3c4d80bad241d86d5f3bfadb04
treeb9df342c8005f5192e2f7fd805f037f6d97b71e1
parentf2aaa18997c13c92d00705d00cbae26e48204387
anv: check the return value of anv_execbuf_add_bo_bitset()

Because anv_execbuf_add_bo_bitset() calls anv_execbuf_add_bo(), which
can fail if its memory allocations fail.

I have seen dEQP tests exercising memory allocation failures during
anv_execbuf_add_bo(), but I don't think the path coming from
add_bo_biset() was specifically exercised. Anyway, add the error check
just in case.

v2: Rebase.

Cc: mesa-stable
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20703>
(cherry picked from commit 3d37950fd9ddc7b43f06b4a5fa710fb7333978ce)
.pick_status.json
src/intel/vulkan/anv_batch_chain.c