diff options
author | Dave Airlie <airlied@redhat.com> | 2013-07-02 05:44:50 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-04 20:44:16 -0400 |
commit | c927215543eb8f67c2c0102db147c299189c9957 (patch) | |
tree | 17c868757d289f422c0af3f0e97d426a809ce8af | |
parent | 07f8d9bdb235836d0a255d20f387bc3afa99180f (diff) |
drm/qxl: set time on drawables from userspace
This just sets the qxl time on the drawables.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ioctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ioctl.c b/drivers/gpu/drm/qxl/qxl_ioctl.c index a4b71b25fa53..6ba49d9922f2 100644 --- a/drivers/gpu/drm/qxl/qxl_ioctl.c +++ b/drivers/gpu/drm/qxl/qxl_ioctl.c | |||
@@ -183,6 +183,12 @@ static int qxl_execbuffer_ioctl(struct drm_device *dev, void *data, | |||
183 | /* TODO copy slow path code from i915 */ | 183 | /* TODO copy slow path code from i915 */ |
184 | fb_cmd = qxl_bo_kmap_atomic_page(qdev, cmd_bo, (release->release_offset & PAGE_SIZE)); | 184 | fb_cmd = qxl_bo_kmap_atomic_page(qdev, cmd_bo, (release->release_offset & PAGE_SIZE)); |
185 | unwritten = __copy_from_user_inatomic_nocache(fb_cmd + sizeof(union qxl_release_info) + (release->release_offset & ~PAGE_SIZE), (void *)(unsigned long)user_cmd.command, user_cmd.command_size); | 185 | unwritten = __copy_from_user_inatomic_nocache(fb_cmd + sizeof(union qxl_release_info) + (release->release_offset & ~PAGE_SIZE), (void *)(unsigned long)user_cmd.command, user_cmd.command_size); |
186 | |||
187 | { | ||
188 | struct qxl_drawable *draw = fb_cmd; | ||
189 | |||
190 | draw->mm_time = qdev->rom->mm_clock; | ||
191 | } | ||
186 | qxl_bo_kunmap_atomic_page(qdev, cmd_bo, fb_cmd); | 192 | qxl_bo_kunmap_atomic_page(qdev, cmd_bo, fb_cmd); |
187 | if (unwritten) { | 193 | if (unwritten) { |
188 | DRM_ERROR("got unwritten %d\n", unwritten); | 194 | DRM_ERROR("got unwritten %d\n", unwritten); |