From patchwork Wed Jul 12 13:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13310414 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 20CB5EB64D9 for ; Wed, 12 Jul 2023 13:58:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 74F3810E53B; Wed, 12 Jul 2023 13:58:00 +0000 (UTC) Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6BF9E10E53B for ; Wed, 12 Jul 2023 13:57:58 +0000 (UTC) Date: Wed, 12 Jul 2023 13:57:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1689170275; x=1689429475; bh=kspUgoiqhSRB7PivdwVOXEGbv83P/jnlrwZxf9UMjLU=; 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=r/zEA0r21t12FJeBav7M4VdmkQR2BH752c1M++/zrf5Zpeu+V+9XQYf6k1rYQ2qx9 b1W2nUyq+ynAQPuyQOx0g4zNAkH5+5AiHoU5f4IMz9p0OFoS+MDIDumIl6ahIi7+/U iBEe980+HU3YdZSwlY7CxZAEG1HIZmVikSYmOyuVrw2mlaVNBeJ6cdLV7MqH9L0Y3Z ja6XC+G9ff4zsZE9Hv/DT5FmwaSiAw6+plhnt5PxWDxlPOGd3tkDGcTvGvpySwzCz4 p/j7NwoEL2QKfCRau+JpQ9RJnrdSj1Ub/DFKQBbjBZ0dGPRFkK1xeuZQi7EBhpo9Lw h6fZYx9hjb9WQ== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH 4/4] drm/doc: document front-buffer rendering Message-ID: <20230712135723.173506-4-contact@emersion.fr> In-Reply-To: <20230712135723.173506-1-contact@emersion.fr> References: <20230712135723.173506-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 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: Daniel Vetter , Pekka Paalanen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Explain how to perform front-buffer rendering. Signed-off-by: Simon Ser Cc: Pekka Paalanen Cc: Daniel Vetter --- drivers/gpu/drm/drm_blend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c index 6e74de833466..6c55f1da2480 100644 --- a/drivers/gpu/drm/drm_blend.c +++ b/drivers/gpu/drm/drm_blend.c @@ -75,6 +75,9 @@ * the currently visible vertical area of the &drm_crtc. * FB_ID: * Mode object ID of the &drm_framebuffer this plane should scan out. + * + * To perform front-buffer rendering, user-space should set FB_ID to the + * previous framebuffer in atomic commits. * CRTC_ID: * Mode object ID of the &drm_crtc this plane should be connected to. *