summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/textureview.h
diff options
context:
space:
mode:
authorAntia Puentes <apuentes@igalia.com>2015-11-16 15:45:54 +0100
committerEduardo Lima Mitev <elima@igalia.com>2016-03-03 15:14:07 +0100
commit04e2e0b24a72dc4f66a0d56cee8b5d50233374a7 (patch)
treea7b83612d91087d97386e3bbe79f9332707b2e79 /src/mesa/main/textureview.h
parent2066c7be61c2edc07c79ea690ee1aef92665b5ec (diff)
downloadexternal_mesa3d-04e2e0b24a72dc4f66a0d56cee8b5d50233374a7.zip
external_mesa3d-04e2e0b24a72dc4f66a0d56cee8b5d50233374a7.tar.gz
external_mesa3d-04e2e0b24a72dc4f66a0d56cee8b5d50233374a7.tar.bz2
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 <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/textureview.h')
-rw-r--r--src/mesa/main/textureview.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/textureview.h b/src/mesa/main/textureview.h
index 59e24b6..39b415d 100644
--- a/src/mesa/main/textureview.h
+++ b/src/mesa/main/textureview.h
@@ -34,6 +34,14 @@ _mesa_texture_view_compatible_format(const struct gl_context *ctx,
GLenum origInternalFormat,
GLenum newInternalFormat);
+/**
+ * Lookup format view class based on internalformat
+ * \return VIEW_CLASS if internalformat found in table, false otherwise.
+ */
+GLenum
+_mesa_texture_view_lookup_view_class(const struct gl_context *ctx,
+ GLenum internalformat);
+
extern void GLAPIENTRY
_mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
GLenum internalformat,