diff options
author | Eduardo Lima Mitev <[email protected]> | 2015-09-24 10:57:42 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-09-28 20:35:26 +0100 |
commit | cfddc456ae25f61dadda8c639628a918534154f8 (patch) | |
tree | 240bfb94141765e7ed8499dfdfc966e18ca750f9 /src/mesa/main/glformats.h | |
parent | 25e2a4136bc9b2cd503022eb39fc4ae9e219d1d4 (diff) |
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" <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Tested-by: Mark Janes <[email protected]>
(cherry picked from commit c6bf1cd1467ea5d5370394ba99366dd8a59a385c)
Signed-off-by: Emil Velikov <[email protected]>
Conflicts:
src/mesa/main/teximage.c
src/mesa/main/teximage.h
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r-- | src/mesa/main/glformats.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h index 419955a6033..84328f29f6e 100644 --- a/src/mesa/main/glformats.h +++ b/src/mesa/main/glformats.h @@ -131,6 +131,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); |