Skip to content

Commit 3f678c9

Browse files
mattropedanvet
authored andcommitted
drm/i915: Switch planes from transitional helpers to full atomic helpers
There are two sets of helper functions provided by the DRM core that can implement the .update_plane() and .disable_plane() hooks in terms of a driver's atomic entrypoints. The transitional helpers (which we have been using so far) create a plane state and then use the plane's atomic entrypoints to perform the atomic begin/check/prepare/commit/finish sequence on that single plane only. The full atomic helpers create a top-level atomic state (which is capable of holding multiple object states for planes, crtc's, and/or connectors) and then passes the top-level atomic state through the full "atomic modeset" pipeline. Switching from the transitional to full helpers here shouldn't result in any functional change, but will enable us to exercise/test more of the internal atomic pipeline with the legacy API's used by existing applications. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 1ed1f96 commit 3f678c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/i915/intel_display.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12076,8 +12076,8 @@ void intel_plane_destroy(struct drm_plane *plane)
1207612076
}
1207712077

1207812078
const struct drm_plane_funcs intel_plane_funcs = {
12079-
.update_plane = drm_plane_helper_update,
12080-
.disable_plane = drm_plane_helper_disable,
12079+
.update_plane = drm_atomic_helper_update_plane,
12080+
.disable_plane = drm_atomic_helper_disable_plane,
1208112081
.destroy = intel_plane_destroy,
1208212082
.set_property = drm_atomic_helper_plane_set_property,
1208312083
.atomic_get_property = intel_plane_atomic_get_property,

0 commit comments

Comments
 (0)