Mesa (master): vbo: Preserve vbo_save::no_current_update on primitive restart.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 1 05:41:59 UTC 2018
Module: Mesa
Branch: master
Commit: b00cb994ef35a35151eb4b970c0e252dee04f221
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b00cb994ef35a35151eb4b970c0e252dee04f221
Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date: Mon Oct 29 06:13:19 2018 +0100
vbo: Preserve vbo_save::no_current_update on primitive restart.
With this change we preserve the no_current_update property when we
observe a glPrimitiveRestart call. That means that we now also get the
no_current_update optimization for display lists that are made
out of indexed draws using primitive restart.
Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
---
src/mesa/vbo/vbo_save_api.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index dbdd5bfbcb..05c894328e 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -1277,10 +1277,11 @@ _save_PrimitiveRestartNV(void)
} else {
/* get current primitive mode */
GLenum curPrim = save->prims[save->prim_count - 1].mode;
+ bool no_current_update = save->no_current_update;
/* restart primitive */
CALL_End(GET_DISPATCH(), ());
- vbo_save_NotifyBegin(ctx, curPrim, false);
+ vbo_save_NotifyBegin(ctx, curPrim, no_current_update);
}
}
More information about the mesa-commit
mailing list