diff options
author | Antia Puentes <[email protected]> | 2015-11-30 20:37:24 +0100 |
---|---|---|
committer | Eduardo Lima Mitev <[email protected]> | 2016-03-03 15:14:06 +0100 |
commit | f1c789fa00ba7216161bcee2691936fd7312d74c (patch) | |
tree | 418bfa429bf27bb183bf55e64e8502a7bd0c754d /src/mesa/main/texparam.h | |
parent | eacb2c971ed2aa0a2f51f47d8b1667a5edf97a00 (diff) |
mesa/main: Make legal_get_tex_level_parameter_target public
It will be used by the ARB_internalformat_query2 implementation
to check if the target is valid for those <pnames> that are said
in the spec that should return the same values than the
'glGetTexLevelParameter{if}v' function:
- INTERNALFORMAT_RED_SIZE
- INTERNALFORMAT_GREEN_SIZE
- INTERNALFORMAT_BLUE_SIZE
- INTERNALFORMAT_ALPHA_SIZE
- INTERNALFORMAT_DEPTH_SIZE
- INTERNALFORMAT_STENCIL_SIZE
- INTERNALFORMAT_SHARED_SIZE
- INTERNALFORMAT_RED_TYPE
- INTERNALFORMAT_GREEN_TYPE
- INTERNALFORMAT_BLUE_TYPE
- INTERNALFORMAT_ALPHA_TYPE
- INTERNALFORMAT_DEPTH_TYPE
- INTERNALFORMAT_STENCIL_TYPE
- IMAGE_FORMAT_COMPATIBILITY_TYPE
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.h')
-rw-r--r-- | src/mesa/main/texparam.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/texparam.h b/src/mesa/main/texparam.h index 96defbec213..eca6e6fe5d9 100644 --- a/src/mesa/main/texparam.h +++ b/src/mesa/main/texparam.h @@ -65,6 +65,10 @@ _mesa_texture_parameterIuiv(struct gl_context *ctx, struct gl_texture_object *texObj, GLenum pname, const GLuint *params, bool dsa); +GLboolean +_mesa_legal_get_tex_level_parameter_target(struct gl_context *ctx, GLenum target, + bool dsa); + /*@}*/ /** |