[Mesa-dev] [PATCH 1/5] mesa: add const qualifer on _mesa_is_compressed_format()

Pohjolainen, Topi topi.pohjolainen at intel.com
Mon May 25 23:51:43 PDT 2015


On Mon, May 25, 2015 at 08:57:36AM -0600, Brian Paul wrote:
> ---
>  src/mesa/main/glformats.c | 2 +-
>  src/mesa/main/glformats.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Very nice, series is:

Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

> 
> diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
> index 8ced579..6a77c91 100644
> --- a/src/mesa/main/glformats.c
> +++ b/src/mesa/main/glformats.c
> @@ -1200,7 +1200,7 @@ _mesa_is_depth_or_stencil_format(GLenum format)
>   * \return GL_TRUE if compressed, GL_FALSE if uncompressed
>   */
>  GLboolean
> -_mesa_is_compressed_format(struct gl_context *ctx, GLenum format)
> +_mesa_is_compressed_format(const struct gl_context *ctx, GLenum format)
>  {
>     switch (format) {
>     case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
> diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
> index e1ecd64..8881cb7 100644
> --- a/src/mesa/main/glformats.h
> +++ b/src/mesa/main/glformats.h
> @@ -96,7 +96,7 @@ extern GLboolean
>  _mesa_is_depth_or_stencil_format(GLenum format);
>  
>  extern GLboolean
> -_mesa_is_compressed_format(struct gl_context *ctx, GLenum format);
> +_mesa_is_compressed_format(const struct gl_context *ctx, GLenum format);
>  
>  extern GLenum
>  _mesa_base_format_to_integer_format(GLenum format);
> -- 
> 1.9.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list