diff options
author | Brian Paul <brianp@vmware.com> | 2016-01-05 18:28:57 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-01-06 15:53:46 -0700 |
commit | b6bcf0864138787c21b19cda3749c80c6ad74604 (patch) | |
tree | 68d6fe7fbb4c362e04883ac6d029841591288d3d /src/mesa/state_tracker/st_cb_clear.c | |
parent | c28d72a3473ad0127c82c1244b6688dcc184e85e (diff) |
st/mesa: move bitmap cache flushing out of state validation
Just do it where needed (before drawing, clearing, etc).
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_clear.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_clear.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index e09f5ec6a0b..7b6d10e76b1 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -41,6 +41,7 @@ #include "program/prog_instruction.h" #include "st_context.h" #include "st_atom.h" +#include "st_cb_bitmap.h" #include "st_cb_clear.h" #include "st_cb_fbo.h" #include "st_format.h" @@ -466,6 +467,8 @@ st_Clear(struct gl_context *ctx, GLbitfield mask) GLbitfield clear_buffers = 0x0; GLuint i; + st_flush_bitmap_cache(st); + /* This makes sure the pipe has the latest scissor, etc values */ st_validate_state( st ); |