mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/virtio: implement blob resources: resource create blob ioctl
Implement resource create blob as specified. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200924003214.662-18-gurchetansingh@chromium.org Co-developed-by: Gurchetan Singh <gurchetansingh@chromium.org> Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
@@ -246,7 +246,10 @@ int virtio_gpu_object_create(struct virtio_gpu_device *vgdev,
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (params->virgl) {
|
||||
if (params->blob) {
|
||||
virtio_gpu_cmd_resource_create_blob(vgdev, bo, params,
|
||||
ents, nents);
|
||||
} else if (params->virgl) {
|
||||
virtio_gpu_cmd_resource_create_3d(vgdev, bo, params,
|
||||
objs, fence);
|
||||
virtio_gpu_object_attach(vgdev, bo, ents, nents);
|
||||
|
||||
Reference in New Issue
Block a user