aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/textureview.c
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2015-11-16 15:45:54 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:07 +0100
commit04e2e0b24a72dc4f66a0d56cee8b5d50233374a7 (patch)
treea7b83612d91087d97386e3bbe79f9332707b2e79 /src/mesa/main/textureview.c
parent2066c7be61c2edc07c79ea690ee1aef92665b5ec (diff)
mesa/textureview: Make _lookup_view_class public
It will be used by the ARB_internalformat_query2 implementation to implement the VIEW_COMPATIBILITY_CLASS <pname> query. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/textureview.c')
-rw-r--r--src/mesa/main/textureview.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c
index 316d8280338..419fbebf2f0 100644
--- a/src/mesa/main/textureview.c
+++ b/src/mesa/main/textureview.c
@@ -162,12 +162,8 @@ static const struct internal_format_class_info s3tc_compatible_internal_formats[
{GL_VIEW_CLASS_S3TC_DXT5_RGBA, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT},
};
-/**
- * Lookup format view class based on internalformat
- * \return VIEW_CLASS if internalformat found in table, false otherwise.
- */
-static GLenum
-lookup_view_class(const struct gl_context *ctx, GLenum internalformat)
+GLenum
+_mesa_texture_view_lookup_view_class(const struct gl_context *ctx, GLenum internalformat)
{
GLuint i;
@@ -336,8 +332,8 @@ _mesa_texture_view_compatible_format(const struct gl_context *ctx,
if (origInternalFormat == newInternalFormat)
return true;
- origViewClass = lookup_view_class(ctx, origInternalFormat);
- newViewClass = lookup_view_class(ctx, newInternalFormat);
+ origViewClass = _mesa_texture_view_lookup_view_class(ctx, origInternalFormat);
+ newViewClass = _mesa_texture_view_lookup_view_class(ctx, newInternalFormat);
if ((origViewClass == newViewClass) && origViewClass != false)
return true;