public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH -v2 1/4] drm/i915: init sprites with univeral plane init function
@ 2014-09-02 19:23 Gustavo Padovan
  2014-09-02 19:23 ` [PATCH -v2 2/4] drm/i915: trivial: remove unneed set to NULL Gustavo Padovan
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Gustavo Padovan @ 2014-09-02 19:23 UTC (permalink / raw)
  To: intel-gfx; +Cc: Derek Foreman, dri-devel

From: Derek Foreman <derek.foreman@collabora.co.uk>

Really just for completeness - old init function ends up making the plane
exactly the same way due to the way the enums are set up.

Signed-off-by: Derek Foreman <derek.foreman@collabora.co.uk>
---
 drivers/gpu/drm/i915/intel_sprite.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index 0bdb00b..4cbe286 100644
--- a/drivers/gpu/drm/i915/intel_sprite.c
+++ b/drivers/gpu/drm/i915/intel_sprite.c
@@ -1375,10 +1375,10 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe, int plane)
 	intel_plane->plane = plane;
 	intel_plane->rotation = BIT(DRM_ROTATE_0);
 	possible_crtcs = (1 << pipe);
-	ret = drm_plane_init(dev, &intel_plane->base, possible_crtcs,
-			     &intel_plane_funcs,
-			     plane_formats, num_plane_formats,
-			     false);
+	ret = drm_universal_plane_init(dev, &intel_plane->base, possible_crtcs,
+				       &intel_plane_funcs,
+				       plane_formats, num_plane_formats,
+				       DRM_PLANE_TYPE_OVERLAY);
 	if (ret) {
 		kfree(intel_plane);
 		goto out;
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-09-03 13:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 19:23 [PATCH -v2 1/4] drm/i915: init sprites with univeral plane init function Gustavo Padovan
2014-09-02 19:23 ` [PATCH -v2 2/4] drm/i915: trivial: remove unneed set to NULL Gustavo Padovan
2014-09-02 19:23 ` [PATCH -v2 3/4] drm/i915: create struct intel_plane_state Gustavo Padovan
2014-09-03  8:22   ` Ville Syrjälä
2014-09-02 19:23 ` [PATCH -v2 4/4] drm/i915: split intel_update_plane into check() and commit() Gustavo Padovan
2014-09-03  8:41   ` Ville Syrjälä
2014-09-03  8:18 ` [PATCH -v2 1/4] drm/i915: init sprites with univeral plane init function Ville Syrjälä
2014-09-03  8:36   ` Daniel Vetter
2014-09-03  8:38   ` Daniel Vetter
2014-09-03 10:36     ` Daniel Vetter
2014-09-03 13:38       ` [PATCH] " Gustavo Padovan
2014-09-03 13:44         ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox