diff options
author | Fredrik Höglund <fredrik@kde.org> | 2015-05-15 19:30:38 +0200 |
---|---|---|
committer | Fredrik Höglund <fredrik@kde.org> | 2015-05-15 22:12:05 +0200 |
commit | b3059bb7c53d33764b96b76971b3ff98675198c1 (patch) | |
tree | 0bd23825b2c7d2e27578868bfd04510451bbb48b /src | |
parent | d43aed9646972c4aca44f47d1b445bd8e67024d7 (diff) | |
download | external_mesa3d-b3059bb7c53d33764b96b76971b3ff98675198c1.zip external_mesa3d-b3059bb7c53d33764b96b76971b3ff98675198c1.tar.gz external_mesa3d-b3059bb7c53d33764b96b76971b3ff98675198c1.tar.bz2 |
st/mesa: Flush the bitmap cache in st_BlitFramebuffer
With DSA we can no longer rely on this being done in st_validate_state
in response to the framebuffer bindings having changed.
This fixes the ext_framebuffer_multisample-bitmap piglit test.
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_blit.c b/src/mesa/state_tracker/st_cb_blit.c index bbaedd1..6d93718 100644 --- a/src/mesa/state_tracker/st_cb_blit.c +++ b/src/mesa/state_tracker/st_cb_blit.c @@ -36,6 +36,7 @@ #include "st_context.h" #include "st_texture.h" +#include "st_cb_bitmap.h" #include "st_cb_blit.h" #include "st_cb_fbo.h" #include "st_atom.h" @@ -93,6 +94,9 @@ st_BlitFramebuffer(struct gl_context *ctx, st_validate_state(st); + /* Make sure bitmap rendering has landed in the framebuffers */ + st_flush_bitmap_cache(st); + clip.srcX0 = srcX0; clip.srcY0 = srcY0; clip.srcX1 = srcX1; |