drm/msm: enable zpos normalization
authorJeykumar Sankaran <jsanka@codeaurora.org>
Mon, 11 Jun 2018 21:13:20 +0000 (14:13 -0700)
committerSean Paul <seanpaul@chromium.org>
Thu, 26 Jul 2018 14:40:15 +0000 (10:40 -0400)
Enable drm core zpos normalization for planes.

Changes in v3:
- None

Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c

index 2608d3f77956934bd206b2210c0d07af3d5a87d7..9c760cee51565e0a2984ce0a93c5ef2317d91fc1 100644 (file)
@@ -439,6 +439,9 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
                goto fail;
        }
 
+       /* Enable normalization of plane zpos */
+       ddev->mode_config.normalize_zpos = true;
+
        if (kms) {
                ret = kms->funcs->hw_init(kms);
                if (ret) {