mesa/teximage: Make _mesa_format_no_online_compression public

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>
This commit is contained in:
Antia Puentes
2015-11-15 21:31:36 +01:00
committed by Eduardo Lima Mitev
parent 5eef355823
commit aaf5ad513b
2 changed files with 4 additions and 1 deletions

View 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) ||

View 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);