Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2122438rwi; Fri, 28 Oct 2022 03:23:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pre86+9A7ICx5gKgOv1VIV2/UcMAKHAqY9coF6ZWFYoGMXSlGQy3i8tDuYwqT1zJlQfqE X-Received: by 2002:a17:90b:1a8a:b0:213:20c:a427 with SMTP id ng10-20020a17090b1a8a00b00213020ca427mr15512754pjb.9.1666952583667; Fri, 28 Oct 2022 03:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666952583; cv=none; d=google.com; s=arc-20160816; b=UoIIOZ4BobJ2jpuBHcfowsfNYoHGn/AJszdcBNAUSxcdiVIkhKAKTwPcZT5SGuNcTA btYmgeEL6plNNLYWOq5JhiiqiYew5rNFSo24slPNat5RIHSVzk12p5zoG+nIxjJpizvy 4GruzV1YYem8XUcp4xop1D78Ca8lGxf7GeszMweYjFEQbaAkaNgdmCBLhkBAp/UTwUlw 4i8oPz4TgvehbqtYDuNVCnRj1osRlLitKdyGVoI14o70VQhup9+Y/D95/0lLVJaw6R0V krmyFMecM7V5sASRyWpG0NsYWklUk/XSTuVxm4Jtp+7Crxogtr8hfsDlgGBR89mlDzxe gpow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=Eis4BHp6rV4DuI32+/hJJDIeNrqEW30VXCIBbxfDosQ=; b=sr42TrTycqqgzCf8loImtrNiIl3F5GKu4anpxyI3Z/jTjugz7zPclwlNHn7oDFFFwg aPh8+j+ybayDy8AYJWwraZoIJLIeMKgS10mx/NHSj9ZM03T5pbTWTjWRscZ2Q2fEZOQb ALNAKahY4iedJLmlzW93mSyUu65eHePY7zmXDQos+VfP1gzTyNuKGJQbBtS/MF9wmyEB PR1PkR/4lNAFjrWoxVFkGLWG7RyUnVrqEP2kDefgJIr9mH2VskbxYcAr6RYh8SaoRIHP h67wUBS3XiTSYn7cd1B+sPqezlJ7e1UXB9yJS1Gpbyc+r3jEC1Tk92QaXjRTOwbgOG5k Rkcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="Moq/6jp5"; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0045a07a7c790si4622399pgb.740.2022.10.28.03.22.51; Fri, 28 Oct 2022 03:23:03 -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=@mailbox.org header.s=mail20150812 header.b="Moq/6jp5"; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbiJ1JTB (ORCPT + 99 others); Fri, 28 Oct 2022 05:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiJ1JS7 (ORCPT ); Fri, 28 Oct 2022 05:18:59 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A9411C69EA; Fri, 28 Oct 2022 02:18:57 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4MzH6P5DY0z9sWR; Fri, 28 Oct 2022 11:18:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1666948733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Eis4BHp6rV4DuI32+/hJJDIeNrqEW30VXCIBbxfDosQ=; b=Moq/6jp5+T8DQK1h1wG+o+TgTWVFLL6rUV9i4B1j0+NphVi6q7r2pZ98SyL0/u1TVEo+xI JY14bk+wBgpdWXKVfsZYz8gJOtkMcxYKbZ1QpqZregow6xOtU9Yl46LEjaRmJyZ1GePtPM PQD22sQjze2E6vGFA7EkvWmkxNAEibyETX4BHb6qz9r1+gO9C8wY2pkromSfAbVrF7xOBc MfJ7o2AcoYAJtcK9v3E4Bfp8qlDZ2uU0dlZsq/LYxbl4C7E09mXuvWjGvzpLU34XLGAxzo iUYT7fl/mS17p3vbbveX88mUQj80WmSPRTaqpMPt8TX75BMdYEwiItkJCekIYA== Message-ID: <54ee5dcb-d573-ade6-9132-8b165fbc875c@mailbox.org> Date: Fri, 28 Oct 2022 11:18:51 +0200 MIME-Version: 1.0 Subject: Re: [PATCH] drm/simpledrm: Only advertise formats that are supported Content-Language: en-CA To: Hector Martin , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Javier Martinez Canillas Cc: stable@vger.kernel.org, Pekka Paalanen , asahi@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221027101327.16678-1-marcan@marcan.st> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: 55bpuhqga5u63eixficdps4prshzwmo6 X-MBO-RS-ID: 0b09ffe32abd9141eff X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 2022-10-27 12:53, Hector Martin wrote: > > Q: Why not just add a conversion from XRGB2101010 to XRGB8888? > A: Because that would only fix KDE, and would make it slower vs. not > advertising XRGB2101010 at all (double conversions, plus kernel > conversion can be slower). Plus, it doesn't make any sense as it only > fills in one entry in the conversion matrix. If we wanted to actually > fill out the conversion matrix, and thus support everything simpledrm > has advertised to day correctly, we would need helpers for: > > rgb565->rgb888 > rgb888->rgb565 > rgb565->xrgb2101010 > rgb888->xrgb2101010 > xrgb2101010->rgb565 > xrgb2101010->rgb888 > xrgb2101010->xrgb8888 > > That seems like overkill and unlikely to actually help anyone, it'd just > give userspace more options to shoot itself in the foot with a > sub-optimal format choice. And it's a pile of code. In addition to everything you mentioned, converting from XRGB2101010 to XRGB8888 loses the additional information, defeating the only point of using XRGB2101010 instead of XRGB8888 in the first place. -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and Xwayland developer