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 \(Arm\)" X-Patchwork-Id: 65574 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1615953qge; Mon, 11 Apr 2016 16:23:58 -0700 (PDT) X-Received: by 10.98.16.198 with SMTP id 67mr132466pfq.21.1460417038111; Mon, 11 Apr 2016 16:23:58 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id w62si6076106pfa.177.2016.04.11.16.23.57; Mon, 11 Apr 2016 16:23:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org 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" 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 --- 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,