mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
Revert "Revert "drm/virtio: implement context init: advertise feature to userspace""
This reverts commit 172272a5e9.
Should not be needed to be reverted anymore.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I76fb807a7cd7bd8aad0f55f3d9394d2a2c5b2f7a
This commit is contained in:
@@ -286,6 +286,12 @@ static int virtio_gpu_getparam_ioctl(struct drm_device *dev, void *data,
|
||||
case VIRTGPU_PARAM_CROSS_DEVICE:
|
||||
value = vgdev->has_resource_assign_uuid ? 1 : 0;
|
||||
break;
|
||||
case VIRTGPU_PARAM_CONTEXT_INIT:
|
||||
value = vgdev->has_context_init ? 1 : 0;
|
||||
break;
|
||||
case VIRTGPU_PARAM_SUPPORTED_CAPSET_IDs:
|
||||
value = vgdev->capset_id_mask;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user