From 0eaf7cca35b48f001c59f3818d7ac8e30e32e6eb Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 11 Mar 2024 22:39:10 +0100 Subject: [PATCH] mesa: prefer read-format of RG for snorm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no good reason we want to read RGBA for SNORM RB textures. Let's correct the preferred read-format here. Reviewed-by: Marek Olšák Reviewed-by: Tapani Pälli Part-of: --- src/mesa/main/framebuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 962cd7c5334..baa66fc4ee5 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -905,6 +905,7 @@ _mesa_get_color_read_format(struct gl_context *ctx, return GL_RGB; case MESA_FORMAT_RG_FLOAT32: case MESA_FORMAT_RG_FLOAT16: + case MESA_FORMAT_RG_SNORM8: case MESA_FORMAT_RG_UNORM8: return GL_RG; case MESA_FORMAT_RG_SINT32: