Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2123458rwi; Fri, 28 Oct 2022 03:24:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mhCdogEpVFTiwQm/w4r1PqtcoA72uzFIIqKvhq0u/iTPWFFJP0pkjcgWMlvTmL7mRxe+a X-Received: by 2002:a17:90b:1b4c:b0:20d:70d8:1491 with SMTP id nv12-20020a17090b1b4c00b0020d70d81491mr15500872pjb.3.1666952649914; Fri, 28 Oct 2022 03:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666952649; cv=none; d=google.com; s=arc-20160816; b=UC/J4ZgUt79OXJmTHP0f/Ts6i24o7WgFqkfyuspbByQkHJEXEtPqJuhJRfMfFYwCV7 dregx82jP88RCymVwho5sjo+nYb+T1recnps43JBf5fSRsRx1rpGd/43AghoB8kMo6Fg srPUjV0fbGRerw4XmQ5ZacOjKU+FqT7iuhXEkJ1l2afXDwQzQexBTp5d8cRZa52nnqPn xfKCwQDme4BqpmUWt82ivSHn8ddP5VmXJ//3kXDgGbvpApdyb94Usr6HRT9hwJv6qu2F chr1PgYoqwjDTB5tXw2Ztk7xbbMm4BI8ho8wkKunFYuRlQiufcN+CxWEgkXFhCOoOK+y tMSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7Niov0aVLKvbPcvgD8g/iro+2RhpHJiftbvGa7fCpt0=; b=TmZaO9J36sGxpUu+IuANXfolz3A6U/twAkFSuNyxeO9/cimEQDbOAu7euWzd7aeCck w8wrAMKDD+nPkNKqOIgtO0/iWSpYXre7Rh4cklLbOeUNMP8dsMhap5uvb2dHLEwmC3MK ogSAc+ZK1vgmJDNNUSmLntGE+LbWts1OkYPtqLhjpcuAD422Iy7HRNugsg8NJ+4Z3GvB Kd4sp632N39D/LfBzsGgS5rupEaaJ8LIC+YHsXEKXavQ/8QmTC7m3LIKS2Hs42WquSWo lTTsB40Y8LQTef6nCxQuCSfttpPOz9xwg6LFdt3ysvmBsHf2pD5zvONdC9zeEQx/A5aN F4rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RIUM0epU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020a056a000c9000b00561a2341e81si5543248pfv.125.2022.10.28.03.23.58; Fri, 28 Oct 2022 03:24:09 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=RIUM0epU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiJ1KEW (ORCPT + 99 others); Fri, 28 Oct 2022 06:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbiJ1KEU (ORCPT ); Fri, 28 Oct 2022 06:04:20 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8621E56BAA; Fri, 28 Oct 2022 03:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666951458; x=1698487458; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=hhsMbbxGYStohAh15fvX1DMTKWlhhSTK1Gfncm9ni3g=; b=RIUM0epUNODLl2tp2Gdxg3lv6p3JpUQloT5b1a2M3MseV1MBgq1kJvWj M75FM2UhwHUvnTYZuRXFgPg2eYrtD3wprnaVKZ761Od+jXT671T1KqY8B hUI8VO9eSkAZh+OiPiC/+PGvF4p/U+b/VHeML4QyZAgICsxnMQ1U3Mq5w g3fuGlp6eJR2WfhffCr/wAZ3LuQM1zXeM6snHgneHLxBOheYXSp+O/P7w jMyLLNvXrsk6TVgWJfSMPyTVMwY7DxLFKHSqQoT9KO7b8dTecDGvTHTLx nODA7Annn8L2yqUXcoa7S6kiF5F8ui5iiNhWxDzllftEeFa6wMa9Bagtl Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="288852935" X-IronPort-AV: E=Sophos;i="5.95,220,1661842800"; d="scan'208";a="288852935" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2022 03:04:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="627478453" X-IronPort-AV: E=Sophos;i="5.95,220,1661842800"; d="scan'208";a="627478453" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.191]) by orsmga007.jf.intel.com with SMTP; 28 Oct 2022 03:04:13 -0700 Received: by stinkbox (sSMTP sendmail emulation); Fri, 28 Oct 2022 13:04:11 +0300 Date: Fri, 28 Oct 2022 13:04:11 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Thomas Zimmermann Cc: Hector Martin , Maarten Lankhorst , Maxime Ripard , David Airlie , Daniel Vetter , Javier Martinez Canillas , stable@vger.kernel.org, Pekka Paalanen , asahi@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/simpledrm: Only advertise formats that are supported Message-ID: References: <20221027101327.16678-1-marcan@marcan.st> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 On Thu, Oct 27, 2022 at 01:08:24PM +0200, Thomas Zimmermann wrote: > I trust you when you say that ->XRGB8888 is not enough. But > although I've read your replies, I still don't understand why this > switch is necessary. > > Why don't we call drm_fb_build_fourcc_list() with the native > format/formats and let it append a number of formats, such as adding > XRGB888, adding ARGB8888 if necessary, adding ARGB2101010 if necessary. > Each with a elaborate comment why and which userspace needs the format. (?) Are you saying there is some real userspace that breaks without the alpha formats? That would already be broken on many devices. -- Ville Syrj?l? Intel