Mesa (master): vbo: remove redundant code in vbo_exec_fixup_vertex

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 18 22:09:08 UTC 2020


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Feb 10 21:58:07 2020 -0500

vbo: remove redundant code in vbo_exec_fixup_vertex

Callers of this function also set FLUSH_STORED_VERTICES for attr == 0.

Reviewed-by: Mathias Fröhlich <mathias.froehlich at web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>

---

 src/mesa/vbo/vbo_exec_api.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 698663d48f5..16df956d85d 100644
--- a/src/mesa/vbo/vbo_exec_api.c
+++ b/src/mesa/vbo/vbo_exec_api.c
@@ -427,13 +427,6 @@ vbo_exec_fixup_vertex(struct gl_context *ctx, GLuint attr,
 
    exec->vtx.attr[attr].active_size = newSize;
    exec->vtx.attr[attr].type = newType;
-
-   /* Does setting NeedFlush belong here?  Necessitates resetting
-    * vtxfmt on each flush (otherwise flags won't get reset
-    * afterwards).
-    */
-   if (attr == 0)
-      ctx->Driver.NeedFlush |= FLUSH_STORED_VERTICES;
 }
 
 



More information about the mesa-commit mailing list