nouveau: Add a nouveau_ws_bo_new_mapped helper
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:58 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:59 +0000 (21:31 +0000)
commitb8d092afb19baa1fb1cc287d73eea932d82a6b62
tree87c8e43c35a731f152825353d2f63ea0e760c73c
parentdee921f46df07115f3dfb61d7aebcb8ff1703be3
nouveau: Add a nouveau_ws_bo_new_mapped helper

Error handling for allocating a bo and immediately mapping it is a pain.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/winsys/nouveau_bo.c
src/nouveau/winsys/nouveau_bo.h