aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-12-18 14:35:01 -0800
committerIan Romanick <[email protected]>2014-01-27 14:21:42 -0700
commit421b5958eb53fa3558b7be80f3f63aa77d49c336 (patch)
tree701a7f142dc4ae89ce0f50470d573c62b0ec1326 /src/mesa/main/teximage.h
parent88db6ad7dbe14e2f149d655cfe5b983e1a8751da (diff)
mesa: Refactor internalFormat / target checks to a separate function
We need almost identical code in the glTexStorage path. v2: Fix typo in a comment noticed by Topi. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r--src/mesa/main/teximage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index 80a0a57b505..bff6d7ff5cf 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -157,6 +157,14 @@ extern gl_format
_mesa_validate_texbuffer_format(const struct gl_context *ctx,
GLenum internalFormat);
+
+bool
+_mesa_legal_texture_base_format_for_target(struct gl_context *ctx,
+ GLenum target,
+ GLenum internalFormat,
+ unsigned dimensions,
+ const char *caller);
+
/**
* Lock a texture for updating. See also _mesa_lock_context_textures().
*/