summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorEduardo Lima Mitev <elima@igalia.com>2015-09-24 10:57:42 +0200
committerJason Ekstrand <jason.ekstrand@intel.com>2015-09-28 11:39:53 -0700
commitc6bf1cd1467ea5d5370394ba99366dd8a59a385c (patch)
tree475202193fec55a4f65160d73c8021fd18ba1011 /src/mesa/main/glformats.h
parent15ab968f62dd322ecda6d70b1069f52616fe39bb (diff)
downloadexternal_mesa3d-c6bf1cd1467ea5d5370394ba99366dd8a59a385c.zip
external_mesa3d-c6bf1cd1467ea5d5370394ba99366dd8a59a385c.tar.gz
external_mesa3d-c6bf1cd1467ea5d5370394ba99366dd8a59a385c.tar.bz2
mesa: Move _mesa_base_tex_format() from teximage to glformats files
This function will be needed as part of validating the combination of format, type and internal format of texture pixel operations, which happens in glformats files. Specifically, we want to be able to obtain the base format of a resolved effective internal format, to compare it with the original internal format passed. Also, since this function deals solely with GL formats, it fits better in glformats where the rest of similar format functionality rests. The function is moved as-is, without any modification. Cc: "11.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Tested-by: Mark Janes <mark.a.janes@intel.com>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index aec905d..92f4bc6 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -134,6 +134,8 @@ extern GLenum
_mesa_es3_error_check_format_and_type(const struct gl_context *ctx,
GLenum format, GLenum type,
GLenum internalFormat);
+extern GLint
+_mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat );
extern uint32_t
_mesa_format_from_format_and_type(GLenum format, GLenum type);