From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8C3E5C4708E for ; Thu, 5 Jan 2023 20:04:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8946810E802; Thu, 5 Jan 2023 20:04:27 +0000 (UTC) Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9961C10E802 for ; Thu, 5 Jan 2023 20:04:24 +0000 (UTC) Date: Thu, 05 Jan 2023 20:04:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1672949062; x=1673208262; bh=Iu0S5pzTOxTDfG7nebE2jCK1ayWZMXcNpMamDyFKYu8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=bxv1IiLGY0gFh32sbqKjzec04SrU7o24i6IkRpdyZKjaRBJ2yI7CkD0/vPCc54qJJ YZBRgNgVb+MObZtrwDLfxWnZwoUJTlKF11mlMoDCz7bW4JLbVXL+dqDyDiQ5C3vFTD kuLAMsYu+F+7LY5h9m9anRK8sDkxX1YzrXFJqFAbkvlNnwAsEMwP3ZZjkC9mmvsLEs Ec9gBeOy0WNE+JzL3/Y6Kw6AmmBgbtDNI7xUaDsI19RVn5ldagxS/VZZwcXAf7AAbB GMpGHakg6phGm8Nxq4Ufqw/4eBW2VhfkRL0jzBg8By6mN9S04ca0cdm5SsluXmQFU4 yRjSC+3wStIGg== To: =?utf-8?Q?Ma=C3=ADra_Canal?= From: Simon Ser Subject: Re: [PATCH] drm/gem: Check for valid formats Message-ID: In-Reply-To: References: <20230103125322.855089-1-mcanal@igalia.com> <7104fc80-f996-8fce-eb72-b29ba4ff438e@igalia.com> <5d2ed13c-2317-bc77-68d1-ce3099382f68@igalia.com> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Melissa Wen , =?utf-8?Q?Andr=C3=A9_Almeida?= , Thomas Zimmermann , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To be honest, your suggestion to put the check inside framebuffer_check() sounds like a better idea: we wouldn't even hit any driver-specific code-path when the check fails. Daniel, do you think there'd be an issue with this approach?