[Mesa-dev] [PATCH 1/5] mesa/bufferobj: make _mesa_delete_buffer_object externally accessible
Marek Olšák
maraeo at gmail.com
Wed Jan 6 03:04:50 PST 2016
For the series:
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Wed, Jan 6, 2016 at 3:53 AM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> gl_buffer_object has grown more complicated and requires cleanup. Using this
> function from drivers will be more future-proof.
> ---
> src/mesa/main/bufferobj.c | 2 +-
> src/mesa/main/bufferobj.h | 4 ++++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
> index 8a9f9b6..4a098ac 100644
> --- a/src/mesa/main/bufferobj.c
> +++ b/src/mesa/main/bufferobj.c
> @@ -447,7 +447,7 @@ _mesa_new_buffer_object(struct gl_context *ctx, GLuint name)
> *
> * Default callback for the \c dd_function_table::DeleteBuffer() hook.
> */
> -static void
> +void
> _mesa_delete_buffer_object(struct gl_context *ctx,
> struct gl_buffer_object *bufObj)
> {
> diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
> index 3eac96d..a5bfe88 100644
> --- a/src/mesa/main/bufferobj.h
> +++ b/src/mesa/main/bufferobj.h
> @@ -109,6 +109,10 @@ _mesa_initialize_buffer_object(struct gl_context *ctx,
> GLuint name);
>
> extern void
> +_mesa_delete_buffer_object(struct gl_context *ctx,
> + struct gl_buffer_object *bufObj);
> +
> +extern void
> _mesa_reference_buffer_object_(struct gl_context *ctx,
> struct gl_buffer_object **ptr,
> struct gl_buffer_object *bufObj);
> --
> 2.5.0
>
> _______________________________________________
> 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