Mesa (main): mesa/vbo: remove unused vbo_context->binding

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 6 19:05:07 UTC 2022


Module: Mesa
Branch: main
Commit: 1ef734cde681e4a66e2d726c439545e461b6cbce
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ef734cde681e4a66e2d726c439545e461b6cbce

Author: Qiang Yu <yuq825 at gmail.com>
Date:   Mon Mar 14 15:11:34 2022 +0800

mesa/vbo: remove unused vbo_context->binding

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Signed-off-by: Qiang Yu <yuq825 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15765>

---

 src/mesa/main/mtypes.h     | 1 -
 src/mesa/vbo/vbo_context.c | 6 ------
 2 files changed, 7 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index cd2af9f7225..9d7aa49972c 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3062,7 +3062,6 @@ struct gl_client_attrib_node
  * The VBO module implemented in src/vbo.
  */
 struct vbo_context {
-   struct gl_vertex_buffer_binding binding;
    struct gl_array_attributes current[VBO_ATTRIB_MAX];
 
    struct gl_vertex_array_object *VAO;
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index 89dc1486ee9..0ac99b552e5 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -155,10 +155,6 @@ _vbo_CreateContext(struct gl_context *ctx)
 
    memset(vbo, 0, sizeof(*vbo));
 
-   vbo->binding.Offset = 0;
-   vbo->binding.Stride = 0;
-   vbo->binding.InstanceDivisor = 0;
-
    init_legacy_currval(ctx);
    init_generic_currval(ctx);
    init_mat_currval(ctx);
@@ -191,8 +187,6 @@ _vbo_DestroyContext(struct gl_context *ctx)
    struct vbo_context *vbo = vbo_context(ctx);
 
    if (vbo) {
-      _mesa_reference_buffer_object(ctx, &vbo->binding.BufferObj, NULL);
-
       vbo_exec_destroy(ctx);
       if (ctx->API == API_OPENGL_COMPAT)
          vbo_save_destroy(ctx);



More information about the mesa-commit mailing list