summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vmwgfx
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2015-06-29 22:57:37 +0300
committerThomas Hellstrom <thellstrom@vmware.com>2015-08-05 15:01:10 +0300
commit352b20dc51488b264abe6b9755395c63c90e807b (patch)
treed1b93f624cd32b308f9df18b78738d4559a67607 /drivers/gpu/drm/vmwgfx
parenta278724aa23c544c2087cb7537db6b950877c291 (diff)
downloadlinux-352b20dc51488b264abe6b9755395c63c90e807b.tar.xz
drm/vmwgfx: Reinstate the legacy display system dirty callback
It somehow got lost in a rewrite. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 06ff7c87fe3b..ae87e7ec06ef 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -632,10 +632,13 @@ static int vmw_framebuffer_dmabuf_dirty(struct drm_framebuffer *framebuffer,
true,
NULL);
break;
+ case vmw_du_legacy:
+ ret = vmw_kms_ldu_do_dmabuf_dirty(dev_priv, &vfbd->base, 0, 0,
+ clips, num_clips, increment);
+ break;
default:
- ret = -ENOSYS;
- WARN_ONCE(true,
- "Dirty called with invalid display system.\n");
+ ret = -EINVAL;
+ WARN_ONCE(true, "Dirty called with invalid display system.\n");
break;
}