diff options
author | Timothy Arceri <[email protected]> | 2017-06-07 13:26:16 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-06-09 09:13:46 +1000 |
commit | bc70bad59bde311434349bbe07b7fb1d3b0ec559 (patch) | |
tree | ed702288f8d317dde9b1a1f5fdc18dc5d46ace98 /src/mesa/vbo/vbo_exec.c | |
parent | 99987fe92e5e109d7a0c114477cba52cdc6629b5 (diff) |
mesa: inline vbo_exec_invalidate_state() and call from mesa core
Rather than calling it indirectly in each driver.
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_exec.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mesa/vbo/vbo_exec.c b/src/mesa/vbo/vbo_exec.c index de8461f1fcc..dc26dfd37b4 100644 --- a/src/mesa/vbo/vbo_exec.c +++ b/src/mesa/vbo/vbo_exec.c @@ -26,7 +26,6 @@ */ -#include "main/api_arrayelt.h" #include "main/glheader.h" #include "main/mtypes.h" #include "main/vtxfmt.h" @@ -71,27 +70,6 @@ void vbo_exec_destroy( struct gl_context *ctx ) /** - * Really want to install these callbacks to a central facility to be - * invoked according to the state flags. That will have to wait for a - * mesa rework: - */ -void vbo_exec_invalidate_state( struct gl_context *ctx, GLbitfield new_state ) -{ - struct vbo_context *vbo = vbo_context(ctx); - struct vbo_exec_context *exec = &vbo->exec; - - if (!exec->validating && new_state & (_NEW_PROGRAM|_NEW_ARRAY)) { - exec->array.recalculate_inputs = GL_TRUE; - } - - if (new_state & _NEW_EVAL) - exec->eval.recalculate_maps = GL_TRUE; - - _ae_invalidate_state(ctx, new_state); -} - - -/** * Figure out the number of transform feedback primitives that will be output * considering the drawing mode, number of vertices, and instance count, * assuming that no geometry shading is done and primitive restart is not |