From d83e090f1248425b0948ccec5a2c62c8f9dfcc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Molinari?= Date: Thu, 26 Feb 2026 14:32:17 +0100 Subject: [PATCH] u_blitter: Fix out-dated draw_rectangle handler doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove mention of UTIL_BLITTER_ATTRIB_COLOR and UTIL_BLITTER_ATTRIB_TEXCOORD and add a few words about UTIL_BLITTER_ATTRIB_XY and UTIL_BLITTER_ATTRIB_XYZW. Fixes: 22ed1ba01a4 ("gallium/u_blitter: use draw_rectangle for all blits except cubemaps") Fixes: ca09c173f6e ("gallium/u_blitter: remove UTIL_BLITTER_ATTRIB_COLOR, use a constant buffer") Signed-off-by: Loïc Molinari Reviewed-by: Ashley Smith Part-of: --- src/gallium/auxiliary/util/u_blitter.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index a7dfa47eaca..b9d07efd049 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -72,13 +72,11 @@ struct blitter_context * * \param type Semantics of the attributes "attrib". * If type is UTIL_BLITTER_ATTRIB_NONE, ignore them. - * If type is UTIL_BLITTER_ATTRIB_COLOR, the attributes - * make up a constant RGBA color, and should go - * to the GENERIC0 varying slot of a fragment shader. - * If type is UTIL_BLITTER_ATTRIB_TEXCOORD, {a1, a2} and - * {a3, a4} specify top-left and bottom-right texture - * coordinates of the rectangle, respectively, and should go - * to the GENERIC0 varying slot of a fragment shader. + * If type is UTIL_BLITTER_ATTRIB_TEXCOORD_XY or + * UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW, attrib stores the + * 2-component or 4-component texture coordinates of the + * rectangle, and should go to the GENERIC0 varying slot of a + * fragment shader. * * \param attrib See type. *