venus: no roundtrip needed for shmem backed by BLOB_MEM_HOST3D

A successful DRM_IOCTL_VIRTGPU_MAP on BLOB_MEM_HOST3D implies a
roundtrip.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14658>
This commit is contained in:
Yiwei Zhang
2022-01-29 06:09:36 +00:00
committed by Marge Bot
parent a76d1e0e74
commit 05a2cea14c
4 changed files with 21 additions and 9 deletions
+3 -1
View File
@@ -689,7 +689,9 @@ vn_cmd_submit(struct vn_command_buffer *cmd)
return VK_ERROR_OUT_OF_HOST_MEMORY;
}
vn_instance_wait_roundtrip(instance, cmd->cs.current_buffer_roundtrip);
if (unlikely(!instance->renderer->info.supports_blob_id_0))
vn_instance_wait_roundtrip(instance, cmd->cs.current_buffer_roundtrip);
VkResult result = vn_instance_ring_submit(instance, &cmd->cs);
if (result != VK_SUCCESS) {
cmd->state = VN_COMMAND_BUFFER_STATE_INVALID;