From patchwork Mon Apr 11 23:23:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 8806181 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18000C0554 for ; Mon, 11 Apr 2016 23:24:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4DB9F20328 for ; Mon, 11 Apr 2016 23:23:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 16C8A20219 for ; Mon, 11 Apr 2016 23:23:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C80906E62B; Mon, 11 Apr 2016 23:23:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5B35F6E62B for ; Mon, 11 Apr 2016 23:23:53 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id w85so1957308oiw.0 for ; Mon, 11 Apr 2016 16:23:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YLAhUXzwhTK1pUIHb+ckAzePFgFXWlkDaNnoQdGaZwM=; b=VM+Ez6W3RVBrmcNobvA3iPvvbOxUWNBvH1aFpmkctOvYZVD6mcsOCHnKAijjz8d0xR RvwOVcDur9ISitEfENRTBeOLSNrlpC0bLrMl4Dz3lA36vgnIDADUZP4Voc4Wt1er7bcu iox1yUlXoq2qZmC5Ij1KIB3QLQU9LVbMfIeSqkcWMcCcYf3NaQOZYCB5zOLOqE+7maeA D49J4kL58mfPTF/QGKVzWjf3bPJR5ppgOedjFGWTTXEwpvIbHW7v9cp8q/XTloQyRg0I OxxM1SOyKbTcCSIwqUKPoAyLoqMW+Rq7KijPulesxF/ANHOboLq0NZXOXL+E4lXCE4GP f4AA== X-Gm-Message-State: AOPr4FWYnmPmeTws23y9VbC77uiHkjp/O9My94VwlQfSTnK8s/rQPi1SyS6+nlO/vL659A== X-Received: by 10.157.6.65 with SMTP id 59mr39204otn.39.1460417032545; Mon, 11 Apr 2016 16:23:52 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id g41sm9104475ote.8.2016.04.11.16.23.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2016 16:23:52 -0700 (PDT) From: Rob Herring To: robdclark@gmail.com Subject: [PATCH] drm/msm/mdp: Add support for more RGBX formats Date: Mon, 11 Apr 2016 18:23:51 -0500 Message-Id: <1460417031-9859-1-git-send-email-robh@kernel.org> X-Mailer: git-send-email 2.5.0 Cc: dri-devel@lists.freedesktop.org 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=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Android needs XBGR8888 format. Add all the missing 32-bpp formats without alpha for completeness. Cc: Archit Taneja Cc: Rob Clark Signed-off-by: Rob Herring Reviewed-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp_format.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp_format.c b/drivers/gpu/drm/msm/mdp/mdp_format.c index 1c2caff..b4a8aa4 100644 --- a/drivers/gpu/drm/msm/mdp/mdp_format.c +++ b/drivers/gpu/drm/msm/mdp/mdp_format.c @@ -105,6 +105,12 @@ static const struct mdp_format formats[] = { MDP_PLANE_INTERLEAVED, CHROMA_FULL, false), FMT(XRGB8888, 8, 8, 8, 8, 1, 0, 2, 3, false, true, 4, 4, MDP_PLANE_INTERLEAVED, CHROMA_FULL, false), + FMT(XBGR8888, 8, 8, 8, 8, 2, 0, 1, 3, false, true, 4, 4, + MDP_PLANE_INTERLEAVED, CHROMA_FULL, false), + FMT(RGBX8888, 8, 8, 8, 8, 3, 1, 0, 2, false, true, 4, 4, + MDP_PLANE_INTERLEAVED, CHROMA_FULL, false), + FMT(BGRX8888, 8, 8, 8, 8, 3, 2, 0, 1, false, true, 4, 4, + MDP_PLANE_INTERLEAVED, CHROMA_FULL, false), FMT(RGB888, 0, 8, 8, 8, 1, 0, 2, 0, false, true, 3, 3, MDP_PLANE_INTERLEAVED, CHROMA_FULL, false), FMT(BGR888, 0, 8, 8, 8, 2, 0, 1, 0, false, true, 3, 3,