summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texpal.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-09-12 11:38:52 -0500
committerIan Romanick <ian.d.romanick@intel.com>2011-09-19 10:04:47 -0700
commita2cab751beed5d130c4085d4215f8b7ad25d9cb1 (patch)
treee768d03f10fd0247a02020a18a0aa7897e7d397c /src/mesa/main/texpal.h
parentfc0fa16be3792bdabad0993fc4026bf621d6092f (diff)
downloadexternal_mesa3d-a2cab751beed5d130c4085d4215f8b7ad25d9cb1.zip
external_mesa3d-a2cab751beed5d130c4085d4215f8b7ad25d9cb1.tar.gz
external_mesa3d-a2cab751beed5d130c4085d4215f8b7ad25d9cb1.tar.bz2
mesa: Refactor expected texture size check in cpal_get_info
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com>
Diffstat (limited to 'src/mesa/main/texpal.h')
-rw-r--r--src/mesa/main/texpal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/texpal.h b/src/mesa/main/texpal.h
index eeff5a9..e180999 100644
--- a/src/mesa/main/texpal.h
+++ b/src/mesa/main/texpal.h
@@ -34,5 +34,8 @@ _mesa_cpal_compressed_teximage2d(GLenum target, GLint level,
GLsizei width, GLsizei height,
GLsizei imageSize, const void *palette);
+extern unsigned
+_mesa_cpal_compressed_size(int level, GLenum internalFormat,
+ unsigned width, unsigned height);
#endif /* TEXPAL_H */