From patchwork Thu Nov 16 14:22:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 10061335 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 09699601AE for ; Thu, 16 Nov 2017 14:55:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F04402AAF0 for ; Thu, 16 Nov 2017 14:55:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E55D72AAF9; Thu, 16 Nov 2017 14:55:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AFBAC2AAF0 for ; Thu, 16 Nov 2017 14:55:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E1A726E880; Thu, 16 Nov 2017 14:55:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1866 seconds by postgrey-1.35 at gabe; Thu, 16 Nov 2017 14:55:06 UTC Received: from mx07-00252a01.pphosted.com (mx07-00252a01.pphosted.com [62.209.51.214]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6C15B6E87E for ; Thu, 16 Nov 2017 14:55:06 +0000 (UTC) Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAGENH0w008631 for ; Thu, 16 Nov 2017 14:23:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : cc : subject : date : message-id : in-reply-to : references : in-reply-to : references; s=pp; bh=8a0YRHHlg0HJ795puq19XTR8j99+Ih8rOf1Vws3u8+U=; b=B2yDpxFrZ7RwsXx8UmGoaOVlV89HCCXkFlELlGFKRHBcF5Q0ksNI9Koma8ZIkthDZbIG gTeWWEKWCNckYh3CuFSc84UCHPNZYuXK7umpMdMPk3I1U9yVbzxk8+bxK1V76Tgp87k4 gREYXWqDIaTTqv0EdzsOSwQgLOVKfayyN/jHPBQQBg8jpZ7Z4ctvZc9YQTkxOdVviwAN Ld0obIB6ME+vSc6BtF0eNw2WbMec0AbfpPmazT2bpjJe+zbXHY3I1BzjYldA8ckGRk/7 N/LR06ls6HKXWNDavgEAMLmslQmsRuEvCAtjRY8QKbBBWPYyROvBFNRk6jEgT47pAk4v yA== Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by mx07-00252a01.pphosted.com with ESMTP id 2e8dpk0qx2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Thu, 16 Nov 2017 14:23:58 +0000 Received: by mail-wm0-f70.google.com with SMTP id y139so82251wmc.9 for ; Thu, 16 Nov 2017 06:23:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=8a0YRHHlg0HJ795puq19XTR8j99+Ih8rOf1Vws3u8+U=; b=BSBwqrvlNyjXAHBuUILFaEcBHOjlDD+vuVo8Tn9Ku5W4JtiEpoDKeKcAW4iQNMeE3s mkdRTYXt9itCB019078KN/91JXl63WyL1TtQDaojQeoYtK6jAWVaSRe3b8NyxfSLgflH FHH+o+H4uhOtmqv9eDtslVLDMEzqDD4xTDqlfPZpjPmV4f4Uib2lcZlkuSDOmX49SQ0U luLnq+DyUUPeoEiQshYwu1f444rvn9dNoBllmcm71CKZzmj6CWAIAI7Uul7eGYtHe3DU Ev/+QhxSfdulYNGYm3o7YJpkw4uPhqWt2/beb35ASLNrxlg0a4PQXgt+DsS4N3Gz12vp ygXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=8a0YRHHlg0HJ795puq19XTR8j99+Ih8rOf1Vws3u8+U=; b=t+2xQuPPCMUB2MnPPWSlBXa9hFz+kga2QXh4CktLEGz6HMsEOkFQy0VdSak0ZUylkv 6EaNX0l7f7lGrAPPv8NojajuC6HvriqpI/GXF4WePfzQsdKZyJIsGanFZSVlh2lM31Iy Q8FEyzBVOuk0zWKzbTmFhfQA96qfqnlJFayYKyG9B5f+N6BOGOZMDSjs3RwGzXm/Yq+/ iofEnj7wjxirfzPEGXnwx/zQoE8scDlUN2ts1aSKC1iLnyD9+eG/UJMewaIr/eVcdmEG Rkc2rum8HDtp9ghyBbwusNjKE/qAPVEJ9I0/FrwvilYRIlIybhm6bnXFtSx4aMY5LdYd IJyQ== X-Gm-Message-State: AJaThX5wCgfGsCcuK2zchbHR8WBgTxrCQHCEg3CUXOkk2dZyMEFVPXhb GSVl4G30pFBogcnKvuhmjRWDkOv1P/ylcIQt3ACIAxvBVbAyp7iBjvQIgFFBCO7Ekk+z39DhL6q x4rE0bLrstBcIvjIkvifeO0mH9k0= X-Received: by 10.28.134.73 with SMTP id i70mr1585358wmd.107.1510842237836; Thu, 16 Nov 2017 06:23:57 -0800 (PST) X-Google-Smtp-Source: AGs4zMY7ZIgiIVL2r8Xlz1vLz/xGfS3oBA31rv8F5wtzlgj7iJiNvDAySk+bQjUV5hYNsNbpg5pLcA== X-Received: by 10.28.134.73 with SMTP id i70mr1585351wmd.107.1510842237681; Thu, 16 Nov 2017 06:23:57 -0800 (PST) Received: from dave-VirtualBox.pitowers.org ([217.33.127.173]) by smtp.googlemail.com with ESMTPSA id 185sm2463994wmj.33.2017.11.16.06.23.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Nov 2017 06:23:56 -0800 (PST) From: Dave Stevenson To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/vc4: Add support for DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888 Date: Thu, 16 Nov 2017 14:22:29 +0000 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-11-16_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711160196 Cc: David Airlie , Dave Stevenson 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-Virus-Scanned: ClamAV using ClamSMTP Filling out the list of supported formats based on those the hardware can support. Signed-off-by: Dave Stevenson --- drivers/gpu/drm/vc4/vc4_plane.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 423a23e..513b4b1 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -121,6 +121,14 @@ static const struct hvs_format { .pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = false, }, { + .drm = DRM_FORMAT_RGB888, .hvs = HVS_PIXEL_FORMAT_RGB888, + .pixel_order = HVS_PIXEL_ORDER_XRGB, .has_alpha = false, + }, + { + .drm = DRM_FORMAT_BGR888, .hvs = HVS_PIXEL_FORMAT_RGB888, + .pixel_order = HVS_PIXEL_ORDER_XBGR, .has_alpha = false, + }, + { .drm = DRM_FORMAT_YUV422, .hvs = HVS_PIXEL_FORMAT_YCBCR_YUV422_3PLANE, },