Mesa (master): mesa: rename _mesa_free_errors_data

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 15 09:38:24 UTC 2020


Module: Mesa
Branch: master
Commit: e6f7b4312f5f924c8da74d8989ef4ebec7466240
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6f7b4312f5f924c8da74d8989ef4ebec7466240

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Tue Jul  7 11:00:58 2020 +0200

mesa: rename _mesa_free_errors_data

Use the _mesa_init_XXX / _mesa_destroy_XXX pattern to clearly associate
the 2 functions.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5789>

---

 src/mesa/main/context.c      | 2 +-
 src/mesa/main/debug_output.c | 2 +-
 src/mesa/main/debug_output.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index be2e7df5824..d1949ada746 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1386,7 +1386,7 @@ _mesa_free_context_data(struct gl_context *ctx)
    /* needs to be after freeing shared state */
    _mesa_free_display_list_data(ctx);
 
-   _mesa_free_errors_data(ctx);
+   _mesa_destroy_debug_output(ctx);
 
    free((void *)ctx->Extensions.String);
 
diff --git a/src/mesa/main/debug_output.c b/src/mesa/main/debug_output.c
index 3f1ca8bf340..6d4c8e72ee3 100644
--- a/src/mesa/main/debug_output.c
+++ b/src/mesa/main/debug_output.c
@@ -1281,7 +1281,7 @@ _mesa_init_debug_output(struct gl_context *ctx)
 
 
 void
-_mesa_free_errors_data(struct gl_context *ctx)
+_mesa_destroy_debug_output(struct gl_context *ctx)
 {
    if (ctx->Debug) {
       debug_destroy(ctx->Debug);
diff --git a/src/mesa/main/debug_output.h b/src/mesa/main/debug_output.h
index 8a5eedc21f0..e467b087b5e 100644
--- a/src/mesa/main/debug_output.h
+++ b/src/mesa/main/debug_output.h
@@ -43,7 +43,7 @@ void
 _mesa_init_debug_output(struct gl_context *ctx);
 
 void
-_mesa_free_errors_data(struct gl_context *ctx);
+_mesa_destroy_debug_output(struct gl_context *ctx);
 
 void
 _mesa_debug_get_id(GLuint *id);



More information about the mesa-commit mailing list