[Mesa-dev] [RFC 19/63] mesa/teximage: Make _mesa_format_no_online_compression public

Eduardo Lima Mitev elima at igalia.com
Tue Jan 19 08:41:59 PST 2016


From: Antia Puentes <apuentes at igalia.com>

It will be used by the ARB_internalformat_query2 implementation
to check if a certain compressed 'internalformat' is supported
by texture 'targets'.
---
 src/mesa/main/teximage.c | 2 +-
 src/mesa/main/teximage.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 12d7d0e..bf94636 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1280,7 +1280,7 @@ compressedteximage_only_format(const struct gl_context *ctx, GLenum format)
 /**
  * Return true if the format doesn't support online compression.
  */
-static bool
+bool
 _mesa_format_no_online_compression(const struct gl_context *ctx, GLenum format)
 {
    return _mesa_is_astc_format(format) ||
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index 218506c..f51bdd9 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -164,6 +164,9 @@ _mesa_legal_texture_base_format_for_target(struct gl_context *ctx,
                                            unsigned dimensions,
                                            const char *caller);
 
+bool
+_mesa_format_no_online_compression(const struct gl_context *ctx, GLenum format);
+
 GLboolean
 _mesa_is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat);
 
-- 
2.5.3



More information about the mesa-dev mailing list