mesa/teximage: Make _mesa_format_no_online_compression public
authorAntia Puentes <apuentes@igalia.com>
Sun, 15 Nov 2015 20:31:36 +0000 (21:31 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:06 +0000 (15:14 +0100)
It will be used by the ARB_internalformat_query2 implementation
to check if a certain compressed 'internalformat' is supported
by texture 'targets'.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/teximage.c
src/mesa/main/teximage.h

index 3f8e2a6dd4d2c68ac37de190ba93b2b99f01a322..63c28d1447d082611dc3cc7646abd16a3dfdf5ec 100644 (file)
@@ -1266,7 +1266,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) ||
index b3829aa56a5d5a64b4b505e365331cb049a58508..41f145c4cc8ab115e1e0d64e32b8f634da9fb835 100644 (file)
@@ -214,6 +214,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);