Mesa (master): vbo: Remove vbo...recalculate_inputs from vbo_exec_invalidate_state.
Mathias Fröhlich
frohlich at kemper.freedesktop.org
Thu Mar 22 04:25:07 UTC 2018
Module: Mesa
Branch: master
Commit: 9f5b6ef2ef4a9ba266250ec02769a46cf490ed7b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f5b6ef2ef4a9ba266250ec02769a46cf490ed7b
Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date: Fri Mar 16 06:34:35 2018 +0100
vbo: Remove vbo...recalculate_inputs from vbo_exec_invalidate_state.
This flag is now set when the actual Array._DrawVAO changes.
So setting this flag is redundant here.
Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
---
src/mesa/vbo/vbo_context.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index 28f494839e..6b4f74d72f 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -206,16 +206,8 @@ vbo_exec_invalidate_state(struct gl_context *ctx)
struct vbo_exec_context *exec = &vbo->exec;
if (ctx->NewState & (_NEW_PROGRAM | _NEW_ARRAY)) {
- exec->array.recalculate_inputs = GL_TRUE;
-
_ae_invalidate_state(ctx);
}
- /* If _mesa_update_state is called in a non draw code path,
- * changes in the VAO need to be captured.
- */
- if (ctx->Array.VAO->NewArrays)
- exec->array.recalculate_inputs = GL_TRUE;
-
if (ctx->NewState & _NEW_EVAL)
exec->eval.recalculate_maps = GL_TRUE;
}
More information about the mesa-commit
mailing list