v3d, vc4: Fix dmabuf import for non-scanout buffers
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 27 Jul 2021 16:41:53 +0000 (11:41 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 29 Jul 2021 20:14:00 +0000 (20:14 +0000)
commit7bcb22363935431f1c8886608d9a77b3503fc5b4
tree90075e6ad048d9015fbb464132fbd0ccd8505216
parentb3e1f45cfb9b43142bb8b6103d3b7d22a8be79e2
v3d, vc4: Fix dmabuf import for non-scanout buffers

Failure to create a buffer for scanout should not be fatal when
importing a buffer. Buffers allocated from a render-only device may not
be able to scanned out directly but can still be used for other
rendering purposes (e.g. as a texture).

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12081>
src/broadcom/ci/piglit-v3d-rpi4-fails.txt
src/gallium/drivers/v3d/v3d_resource.c
src/gallium/drivers/vc4/vc4_resource.c