virgl: Don't try to do re-alloc or readback by transfer for blob resources
authorGert Wollny <gert.wollny@collabora.com>
Mon, 27 Feb 2023 11:53:19 +0000 (12:53 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 16 Mar 2023 09:30:00 +0000 (09:30 +0000)
commit1247b23f287b0bacaebccc14217e3cabb877e5a3
tree1dbb0978b75b3d0afcfa6d8c916e4b99f442e1f7
parent831e7818aad562be029a00492bd86640bbe7bc59
virgl: Don't try to do re-alloc or readback by transfer for blob resources

Blob resources are mapped directly, no need to copy data around, and
in any case, neither the resource nor the transfer info will have an
IOV attached to it, so the transfer would result error out on the host
anyway.

In addition, blob resources should not use re-allocation.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21586>
src/gallium/drivers/virgl/virgl_resource.c