diff options
Diffstat (limited to 'drivers/gpu/drm/msm/msm_atomic.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_atomic.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_atomic.c b/drivers/gpu/drm/msm/msm_atomic.c index 191968256c58..2c396540e279 100644 --- a/drivers/gpu/drm/msm/msm_atomic.c +++ b/drivers/gpu/drm/msm/msm_atomic.c | |||
@@ -127,6 +127,26 @@ static void add_fb(struct msm_commit *c, struct drm_framebuffer *fb) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | 129 | ||
130 | int msm_atomic_check(struct drm_device *dev, | ||
131 | struct drm_atomic_state *state) | ||
132 | { | ||
133 | int ret; | ||
134 | |||
135 | /* | ||
136 | * msm ->atomic_check can update ->mode_changed for pixel format | ||
137 | * changes, hence must be run before we check the modeset changes. | ||
138 | */ | ||
139 | ret = drm_atomic_helper_check_planes(dev, state); | ||
140 | if (ret) | ||
141 | return ret; | ||
142 | |||
143 | ret = drm_atomic_helper_check_modeset(dev, state); | ||
144 | if (ret) | ||
145 | return ret; | ||
146 | |||
147 | return ret; | ||
148 | } | ||
149 | |||
130 | /** | 150 | /** |
131 | * drm_atomic_helper_commit - commit validated state object | 151 | * drm_atomic_helper_commit - commit validated state object |
132 | * @dev: DRM device | 152 | * @dev: DRM device |