From patchwork Fri Nov 6 14:04:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kulkarni, Vandita" X-Patchwork-Id: 7566511 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6D93E9F2F7 for ; Fri, 6 Nov 2015 06:21:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A73E0206B2 for ; Fri, 6 Nov 2015 06:21:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E928020691 for ; Fri, 6 Nov 2015 06:21:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E27C6EB8D; Thu, 5 Nov 2015 22:21:02 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 7622A6EB8D for ; Thu, 5 Nov 2015 22:21:01 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 05 Nov 2015 22:20:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,251,1444719600"; d="scan'208";a="679443875" Received: from vandita-desktop.iind.intel.com ([10.223.26.19]) by orsmga003.jf.intel.com with ESMTP; 05 Nov 2015 22:20:48 -0800 From: Vandita Kulkarni To: intel-gfx@lists.freedesktop.org Date: Fri, 6 Nov 2015 19:34:47 +0530 Message-Id: <1446818687-27050-3-git-send-email-vandita.kulkarni@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1446818687-27050-1-git-send-email-vandita.kulkarni@intel.com> References: <1446818687-27050-1-git-send-email-vandita.kulkarni@intel.com> Cc: vandita kulkarni Subject: [Intel-gfx] [PATCH 2/2] drm: Add AYUV format support in get_plane_cpp X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 From: vandita kulkarni This patch adds the missing DRM_FORMAT_AYUV case in get_plane_cpp function. AYUV has 4 bytes per pixel composition, that is 8 bit samples for each component with 8 bit alpha blend. Signed-off-by: vandita kulkarni --- drivers/gpu/drm/drm_crtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 720a153..1c26963 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -5578,6 +5578,8 @@ int drm_format_plane_cpp(uint32_t format, int plane) case DRM_FORMAT_YUV444: case DRM_FORMAT_YVU444: return 1; + case DRM_FORMAT_AYUV: + return 4; default: drm_fb_get_bpp_depth(format, &depth, &bpp); return bpp >> 3;