[Mesa-dev] [PATCH 4/5] mesa/texformat: add _mesa_tex_target_is_array function
Eric Anholt
eric at anholt.net
Wed May 22 15:57:27 PDT 2013
Jordan Justen <jordan.l.justen at intel.com> writes:
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
> src/mesa/main/texformat.c | 13 +++++++++++++
> src/mesa/main/texformat.h | 2 ++
> 2 files changed, 15 insertions(+)
>
> diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
> index ed40b7e..a7df868 100644
> --- a/src/mesa/main/texformat.c
> +++ b/src/mesa/main/texformat.c
> @@ -929,3 +929,16 @@ _mesa_choose_tex_format(struct gl_context *ctx, GLenum target,
> return MESA_FORMAT_NONE;
> }
>
> +GLboolean
> +_mesa_tex_target_is_array(GLenum target)
> +{
> + switch (target) {
> + case GL_TEXTURE_1D_ARRAY_EXT:
> + case GL_TEXTURE_2D_ARRAY_EXT:
> + case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
> + case GL_TEXTURE_CUBE_MAP_ARRAY:
> + return GL_TRUE;
> + default:
trailing whitespace.
With the removal of the extraneous change in patch 2, patches 1-4 are:
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130522/e9248ee7/attachment.pgp>
More information about the mesa-dev
mailing list