Mesa (main): mesa: Remove unused _mesa_get_render_format

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 7 19:02:50 UTC 2021


Module: Mesa
Branch: main
Commit: 8f92e81718dec32fe7aa49d7a22376cfd782dc81
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f92e81718dec32fe7aa49d7a22376cfd782dc81

Author: Adam Jackson <ajax at redhat.com>
Date:   Thu May 20 16:42:03 2021 -0400

mesa: Remove unused _mesa_get_render_format

Reviewed-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14098>

---

 src/mesa/main/blend.c | 18 ------------------
 src/mesa/main/blend.h |  3 ---
 2 files changed, 21 deletions(-)

diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 02435e67392..8274c696dee 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -1168,24 +1168,6 @@ _mesa_update_clamp_vertex_color(struct gl_context *ctx,
          _mesa_get_clamp_vertex_color(ctx, drawFb);
 }
 
-/**
- * Returns an appropriate mesa_format for color rendering based on the
- * GL_FRAMEBUFFER_SRGB state.
- *
- * Some drivers implement GL_FRAMEBUFFER_SRGB using a flag on the blend state
- * (which GL_FRAMEBUFFER_SRGB maps to reasonably), but some have to do so by
- * overriding the format of the surface.  This is a helper for doing the
- * surface format override variant.
- */
-mesa_format
-_mesa_get_render_format(const struct gl_context *ctx, mesa_format format)
-{
-   if (ctx->Color.sRGBEnabled)
-      return format;
-   else
-      return _mesa_get_srgb_format_linear(format);
-}
-
 /**********************************************************************/
 /** \name Initialization */
 /*@{*/
diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h
index 8830ca50ea3..a7db98e6ad7 100644
--- a/src/mesa/main/blend.h
+++ b/src/mesa/main/blend.h
@@ -147,9 +147,6 @@ extern void
 _mesa_update_clamp_vertex_color(struct gl_context *ctx,
                                 const struct gl_framebuffer *drawFb);
 
-extern mesa_format
-_mesa_get_render_format(const struct gl_context *ctx, mesa_format format);
-
 extern void  
 _mesa_init_color( struct gl_context * ctx );
 



More information about the mesa-commit mailing list