Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp753914pxb; Thu, 17 Feb 2022 14:06:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5u7MjHbSIYXrwlHax+pvxzC5WR4UVvRGZvMoepV4yjWAAkVPhf5cuJimxgjqeQ4r39LeW X-Received: by 2002:a17:902:e2d3:b0:14d:743c:abe2 with SMTP id l19-20020a170902e2d300b0014d743cabe2mr4648482plc.103.1645135576353; Thu, 17 Feb 2022 14:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645135576; cv=none; d=google.com; s=arc-20160816; b=dXXUoiTZ+/5z8rdjKVZTOhQKELoHUsXZm/YeVC/lLh7pIsanS/omOFI0e8Ko8gn1hJ thn8QaqlD/xi1VyPPtglcXJ8JnoK/lzSGhBh471DkyNGsPk6lKL1c4DIO9siDacjww93 drMExAXDma3ShCKQlGSedWJbnCzCV6QiKLhQ4y27+HKlRswDXHb8cIfj+9LwCAearoYO gjp2G+HDLeazXhc1eFbRUZrictgvRsGTHjt5d0zAUHEJlbSKvaqv67n87r5rgsir/WH6 v++gw+rCrXv8kIFhBIuoqC9q8/zC9ufKUw9/4+7Lb4WOFSlgs0+osKIjqNJfZRU3ucmO qf5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=mDJqoFZz0dz3Q1I37x7okE1Q7HMXJStYbJXkk2d13x4=; b=R7rdHjFZAP89M6fNtXXYuOjpFuFdO8UKgWG0CehG46PInNLO+S4k2NLTnU4tbbo+Qd sekb4XpUjAcI9t0qKOrWOGKpwZUlY6lvzVJ12etJgO1yxwe76LVCMtTnq+xWdRfCoNXK cOjdFHSv0RS+TytzxtfaqYiqjSgNpbk7qjzp09HkjCQbvKOkBIrUFIOp0Ko6liFK3zsb zqQuZ0FV51hflP6VYnYV2bnGueLYH0Z1ed2GXpbE/hWzMTvFQnahSKScb3jVrXbhBzkr eZCVLhW+7LlKJcOR2c3b31WTi927BhKiKJFvy2gPKc8QX7pFgKYk6hsdDAU8ARj9Lq3M NUSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16si22434782plg.151.2022.02.17.14.05.58; Thu, 17 Feb 2022 14:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243666AbiBQRV4 (ORCPT + 99 others); Thu, 17 Feb 2022 12:21:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236689AbiBQRVz (ORCPT ); Thu, 17 Feb 2022 12:21:55 -0500 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF2F165F5; Thu, 17 Feb 2022 09:21:39 -0800 (PST) Received: by mail-vs1-f51.google.com with SMTP id e5so7022531vsg.12; Thu, 17 Feb 2022 09:21:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mDJqoFZz0dz3Q1I37x7okE1Q7HMXJStYbJXkk2d13x4=; b=seO/xDPaXkxZDHFacKoggtganAFkKTlND89OCWoNcZ99Zl7b7OYzhQ+LEvjgtQoXC8 Hd4qBYJfoFZgdDXoBxq3aE4A8io9V641O9HCdqlT3I4nlkksAgw/oqO1UttUyhgzUhOD QaMMx9jKU51LpxynYgCXimtkICxc8A+ril3ZOUx/pjkBhX5Pfynu/WD/PjN2IBacYsg+ rACC7GbOaadZ05AvBGL8i708VlSk5zmxwo7dA0TkgV7rmNkfoqP/nFMnGChmiuo9j4Lz gNvibh6azwHf+f8DZ3ArheIRFzTtOUgzMnBJ3+7VGkjPLSa+0mj2fcyWCODKVS4cRTqj mgzg== X-Gm-Message-State: AOAM531MuN0DgkFAdEE2+9K0jLrI5tk9duD9AVHqDzxuzIextY6fAMaV jK/tZNsnXpoToB8cJ4Y02ZL35oQ6U2eMsw== X-Received: by 2002:a05:6102:1622:b0:30f:8678:5bb7 with SMTP id cu34-20020a056102162200b0030f86785bb7mr1721707vsb.59.1645118498870; Thu, 17 Feb 2022 09:21:38 -0800 (PST) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com. [209.85.217.48]) by smtp.gmail.com with ESMTPSA id e9sm342847vsl.31.2022.02.17.09.21.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Feb 2022 09:21:38 -0800 (PST) Received: by mail-vs1-f48.google.com with SMTP id d11so3039885vsm.5; Thu, 17 Feb 2022 09:21:38 -0800 (PST) X-Received: by 2002:a67:b00e:0:b0:30d:dc98:6024 with SMTP id z14-20020a67b00e000000b0030ddc986024mr1803164vse.57.1645118498172; Thu, 17 Feb 2022 09:21:38 -0800 (PST) MIME-Version: 1.0 References: <20220215165226.2738568-1-geert@linux-m68k.org> <20220215165226.2738568-3-geert@linux-m68k.org> <4fff0c08-adab-c1d5-4a7e-1513cb2bf7ca@suse.de> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 17 Feb 2022 18:21:27 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/8] drm/fb-helper: Add support for DRM_FORMAT_C[124] To: Simon Ser Cc: Thomas Zimmermann , Linux Fbdev development list , David Airlie , Helge Deller , Javier Martinez Canillas , Linux Kernel Mailing List , "Linux/m68k" , DRI Development Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Simon, On Thu, Feb 17, 2022 at 5:18 PM Simon Ser wrote: > On Thursday, February 17th, 2022 at 17:12, Geert Uytterhoeven wrote: > > > What is C0? > > > > A non-existing color-indexed mode with zero colors ;-) > > Introduced purely to make a check like in the comment below work. > > What we really want to check here is if the mode is color-indexed > > or not... > > Maybe it would be worth introducing a drm_format_info_is_color_indexed > function? Would be self-describing when used, and would avoid to miss > some places to update when adding new color-indexed formats. Yep, and a .is_color_indexed flag, cfr. the existing .is_yuv flag. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds