mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
drm/virtio: Create Dumb BOs as guest Blobs (v3)
If support for Blob resources is available, then dumb BOs created by the driver can be considered as guest Blobs. v2: Don't skip transfer and flush commands as part of plane update as the device may have created a shared mapping. (Gerd) v3: Don't create dumb BOs as Guest blobs if Virgl is enabled. (Gurchetan) Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com> Acked-by: Gurchetan Singh <gurchetansingh@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/20210413052614.2486768-1-vivek.kasireddy@intel.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Gerd Hoffmann
parent
2b173d7fc2
commit
3389082bb9
@@ -254,6 +254,9 @@ int virtio_gpu_object_create(struct virtio_gpu_device *vgdev,
|
||||
}
|
||||
|
||||
if (params->blob) {
|
||||
if (params->blob_mem == VIRTGPU_BLOB_MEM_GUEST)
|
||||
bo->guest_blob = true;
|
||||
|
||||
virtio_gpu_cmd_resource_create_blob(vgdev, bo, params,
|
||||
ents, nents);
|
||||
} else if (params->virgl) {
|
||||
|
||||
Reference in New Issue
Block a user