]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/vmwgfx: Turn on DRIVER_ATOMIC flag
authorSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 17:16:22 +0000 (10:16 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 22:21:13 +0000 (15:21 -0700)
Now that the legacy path has been tested, turn on the
DRIVER_ATOMIC flag so user mode driver can start going through
the Atomic path.

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c

index 83ff0f033d5f85ad45035999b404740291ab8e8d..fcabb31d04638a9d060ef1498c27a82c50448087 100644 (file)
@@ -898,6 +898,8 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
                goto out_no_fifo;
 
        DRM_INFO("DX: %s\n", dev_priv->has_dx ? "yes." : "no.");
+       DRM_INFO("Atomic: %s\n",
+                (dev->driver->driver_features & DRIVER_ATOMIC) ? "yes" : "no");
 
        snprintf(host_log, sizeof(host_log), "vmwgfx: %s-%s",
                VMWGFX_REPO, VMWGFX_GIT_VERSION);
@@ -1510,7 +1512,7 @@ static const struct file_operations vmwgfx_driver_fops = {
 
 static struct drm_driver driver = {
        .driver_features = DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED |
-       DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER,
+       DRIVER_MODESET | DRIVER_PRIME | DRIVER_RENDER | DRIVER_ATOMIC,
        .load = vmw_driver_load,
        .unload = vmw_driver_unload,
        .lastclose = vmw_lastclose,
index 5e2f639b8d042e15da96feaceeb41a47c6375907..0a3e6eaa5f97a240bbc9283b12491107c0d14058 100644 (file)
@@ -390,7 +390,6 @@ static const struct drm_crtc_helper_funcs vmw_ldu_crtc_helper_funcs = {
        .prepare = vmw_ldu_crtc_helper_prepare,
        .commit = vmw_ldu_crtc_helper_commit,
        .disable = vmw_ldu_crtc_helper_disable,
-       .mode_set = drm_helper_crtc_mode_set,
        .mode_set_nofb = vmw_ldu_crtc_mode_set_nofb,
        .atomic_check = vmw_du_crtc_atomic_check,
        .atomic_begin = vmw_du_crtc_atomic_begin,
index 106a943a613c2a9d9a7ecb573b69b0e0eb61a875..2664e4c1675055457a1620503ecc7b5d09c8f94c 100644 (file)
@@ -574,7 +574,6 @@ static const struct drm_crtc_helper_funcs vmw_sou_crtc_helper_funcs = {
        .prepare = vmw_sou_crtc_helper_prepare,
        .commit = vmw_sou_crtc_helper_commit,
        .disable = vmw_sou_crtc_helper_disable,
-       .mode_set = drm_helper_crtc_mode_set,
        .mode_set_nofb = vmw_sou_crtc_mode_set_nofb,
        .atomic_check = vmw_du_crtc_atomic_check,
        .atomic_begin = vmw_du_crtc_atomic_begin,
index b7999eb4f5fc5cbc8d2810f7fcbe51fd849c276c..e5a38f4ddb62fab8ce6445f36bbd9dafce6295b8 100644 (file)
@@ -1203,7 +1203,6 @@ static const struct drm_crtc_helper_funcs vmw_stdu_crtc_helper_funcs = {
        .prepare = vmw_stdu_crtc_helper_prepare,
        .commit = vmw_stdu_crtc_helper_commit,
        .disable = vmw_stdu_crtc_helper_disable,
-       .mode_set = drm_helper_crtc_mode_set,
        .mode_set_nofb = vmw_stdu_crtc_mode_set_nofb,
        .atomic_check = vmw_du_crtc_atomic_check,
        .atomic_begin = vmw_du_crtc_atomic_begin,