projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a571c7
)
drm/virtgpu api: cross-device feature
author
Gurchetan Singh
<gurchetansingh@chromium.org>
Thu, 24 Sep 2020 00:32:02 +0000
(17:32 -0700)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 29 Sep 2020 09:23:18 +0000
(11:23 +0200)
This feature was recently added to virtio-gpu, lets make
it userspace queryable. It's an error to use
BLOB_FLAG_USE_CROSS_DEVICE when this feature is not present.
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Acked-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/20200924003214.662-7-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/uapi/drm/virtgpu_drm.h
patch
|
blob
|
history
diff --git
a/include/uapi/drm/virtgpu_drm.h
b/include/uapi/drm/virtgpu_drm.h
index
e1b1518
..
b9ec26e
100644
(file)
--- a/
include/uapi/drm/virtgpu_drm.h
+++ b/
include/uapi/drm/virtgpu_drm.h
@@
-74,6
+74,7
@@
struct drm_virtgpu_execbuffer {
#define VIRTGPU_PARAM_CAPSET_QUERY_FIX 2 /* do we have the capset fix */
#define VIRTGPU_PARAM_RESOURCE_BLOB 3 /* DRM_VIRTGPU_RESOURCE_CREATE_BLOB */
#define VIRTGPU_PARAM_HOST_VISIBLE 4 /* Host blob resources are mappable */
+#define VIRTGPU_PARAM_CROSS_DEVICE 5 /* Cross virtio-device resource sharing */
struct drm_virtgpu_getparam {
__u64 param;