[Mesa-dev] [PATCH 2/3] mesa: move _mesa_compressed_texture_pixel_storage_error_check()

Matt Turner mattst88 at gmail.com
Fri Aug 15 16:28:46 PDT 2014


On Fri, Aug 15, 2014 at 4:04 PM, Brian Paul <brianp at vmware.com> wrote:
> to pixelstore.c, add const qualifier to the 'packing' parameter.
> Add comments.
> ---
>  src/mesa/main/pixelstore.c  |   42 +++++++++++++++++++++++++++++++++++++++++
>  src/mesa/main/pixelstore.h  |    8 ++++++++
>  src/mesa/main/texgetimage.c |    7 ++++---
>  src/mesa/main/teximage.c    |   44 +++++++------------------------------------
>  src/mesa/main/teximage.h    |    6 ------
>  5 files changed, 61 insertions(+), 46 deletions(-)
>
> diff --git a/src/mesa/main/pixelstore.c b/src/mesa/main/pixelstore.c
> index 05f6583..b5df5e6 100644
> --- a/src/mesa/main/pixelstore.c
> +++ b/src/mesa/main/pixelstore.c
> @@ -284,3 +284,45 @@ _mesa_init_pixelstore( struct gl_context *ctx )
>     _mesa_reference_buffer_object(ctx, &ctx->DefaultPacking.BufferObj,
>                                   ctx->Shared->NullBufferObj);
>  }
> +
> +
> +/**
> + * Check if the given compressed pixel storage parameters are legal.
> + * Record a GL error if illegl.

illegal.


More information about the mesa-dev mailing list