From patchwork Fri Oct 31 22:54:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 5207761 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B3395C11AC for ; Fri, 31 Oct 2014 23:57:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0395F20120 for ; Fri, 31 Oct 2014 23:57:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2C8E720173 for ; Fri, 31 Oct 2014 23:57:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 537056E869; Fri, 31 Oct 2014 16:56:58 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 993396E84B for ; Fri, 31 Oct 2014 15:57:24 -0700 (PDT) Received: by mail-pd0-f180.google.com with SMTP id ft15so8014754pdb.25 for ; Fri, 31 Oct 2014 15:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TWIsPHcsxTZ1+cG6y/MJjUPVe4fT+KT5ngY0MDKxP+M=; b=0ejcWPm1JwJgDKxSUJZ/vwEERMj76ImTxpBEUVbZ+nIS3+pY3G4po25Dl5EmFEupo5 qhIMJ6pu2nKEGs//zIq9dq1ao7BS53vpYSLBOMPKOICY8xNsNCClNCmo0l6gBsJcjc74 +mFNmEj10DQg2XNqUllkAxLiBGK9Zvoy3/KtnVMGKiw/rHcpTy8YH/wbwtIsVGnZJ8a5 d7J0xJAjwYU9eZ8b9EPfRxhFusc2rWR+N4PiZao/NI2Kqtks6LtLM7QoVE63t3CD9LFf znmw4nddNpvx6357LwgjEDvAXpmbR1uhcMsp2PEnPwVprmIhplcIfb2dDztY5N68H2sC 30tw== X-Received: by 10.68.102.229 with SMTP id fr5mr14860094pbb.113.1414796244515; Fri, 31 Oct 2014 15:57:24 -0700 (PDT) Received: from mothership.mgc.mentorg.com (c-50-152-159-227.hsd1.ca.comcast.net. [50.152.159.227]) by mx.google.com with ESMTPSA id ev8sm10870656pdb.28.2014.10.31.15.57.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 15:57:24 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: dri-devel@lists.freedesktop.org Subject: [PATCH 44/72] imx-drm: ipuv3-plane: Fix planar formats Date: Fri, 31 Oct 2014 15:54:27 -0700 Message-Id: <1414796095-10107-45-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414796095-10107-1-git-send-email-steve_longerbeam@mentor.com> References: <1414796095-10107-1-git-send-email-steve_longerbeam@mentor.com> X-Mailman-Approved-At: Fri, 31 Oct 2014 16:56:32 -0700 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP During a mode set the U/V plane strides and buffer offsets for planar pixel formats were not being configured in cpmem. Fix by calling ipu_cpmem_set_yuv_planar() for planar formats. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/imx-drm/ipuv3-plane.c b/drivers/staging/imx-drm/ipuv3-plane.c index 365cdfe..edfa72a 100644 --- a/drivers/staging/imx-drm/ipuv3-plane.c +++ b/drivers/staging/imx-drm/ipuv3-plane.c @@ -174,6 +174,10 @@ int ipu_plane_mode_set(struct ipu_plane *ipu_plane, struct drm_crtc *crtc, fb->pixel_format); return ret; } + if (ipu_drm_fourcc_is_planar(fb->pixel_format)) + ipu_cpmem_set_yuv_planar(ipu_plane->ipu_ch, fb->pixel_format, + fb->pitches[0], crtc_h); + ipu_cpmem_set_high_priority(ipu_plane->ipu_ch); ret = ipu_plane_set_base(ipu_plane, fb, src_x, src_y);