diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-08-31 12:26:52 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-09-20 08:25:41 -0400 |
commit | 5c32c3dd8501b017e0ce139a2abcd23cc471b773 (patch) | |
tree | bfc6b65798728bfd688002603ad638961858a59a /drivers/gpu | |
parent | b28c69dd3d563676db079a678a2deabf37461fbf (diff) |
drm/virtio: drop virtio_gpu_execbuffer_ioctl() wrapping
Instead of wrapping virtio_gpu_execbuffer() to execute the ioctl
just execute it directly.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Message-id: 1472660813-28219-1-git-send-email-gustavo@padovan.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_ioctl.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_ioctl.c b/drivers/gpu/drm/virtio/virtgpu_ioctl.c index c046903cb47b..e0613a9c2833 100644 --- a/drivers/gpu/drm/virtio/virtgpu_ioctl.c +++ b/drivers/gpu/drm/virtio/virtgpu_ioctl.c | |||
@@ -89,10 +89,16 @@ static void virtio_gpu_unref_list(struct list_head *head) | |||
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | static int virtio_gpu_execbuffer(struct drm_device *dev, | 92 | /* |
93 | struct drm_virtgpu_execbuffer *exbuf, | 93 | * Usage of execbuffer: |
94 | * Relocations need to take into account the full VIRTIO_GPUDrawable size. | ||
95 | * However, the command as passed from user space must *not* contain the initial | ||
96 | * VIRTIO_GPUReleaseInfo struct (first XXX bytes) | ||
97 | */ | ||
98 | static int virtio_gpu_execbuffer_ioctl(struct drm_device *dev, void *data, | ||
94 | struct drm_file *drm_file) | 99 | struct drm_file *drm_file) |
95 | { | 100 | { |
101 | struct drm_virtgpu_execbuffer *exbuf = data; | ||
96 | struct virtio_gpu_device *vgdev = dev->dev_private; | 102 | struct virtio_gpu_device *vgdev = dev->dev_private; |
97 | struct virtio_gpu_fpriv *vfpriv = drm_file->driver_priv; | 103 | struct virtio_gpu_fpriv *vfpriv = drm_file->driver_priv; |
98 | struct drm_gem_object *gobj; | 104 | struct drm_gem_object *gobj; |
@@ -182,20 +188,6 @@ out_free: | |||
182 | return ret; | 188 | return ret; |
183 | } | 189 | } |
184 | 190 | ||
185 | /* | ||
186 | * Usage of execbuffer: | ||
187 | * Relocations need to take into account the full VIRTIO_GPUDrawable size. | ||
188 | * However, the command as passed from user space must *not* contain the initial | ||
189 | * VIRTIO_GPUReleaseInfo struct (first XXX bytes) | ||
190 | */ | ||
191 | static int virtio_gpu_execbuffer_ioctl(struct drm_device *dev, void *data, | ||
192 | struct drm_file *file_priv) | ||
193 | { | ||
194 | struct drm_virtgpu_execbuffer *execbuffer = data; | ||
195 | return virtio_gpu_execbuffer(dev, execbuffer, file_priv); | ||
196 | } | ||
197 | |||
198 | |||
199 | static int virtio_gpu_getparam_ioctl(struct drm_device *dev, void *data, | 191 | static int virtio_gpu_getparam_ioctl(struct drm_device *dev, void *data, |
200 | struct drm_file *file_priv) | 192 | struct drm_file *file_priv) |
201 | { | 193 | { |