st/mesa: Flush the bitmap cache in st_BlitFramebuffer
authorFredrik Höglund <fredrik@kde.org>
Fri, 15 May 2015 17:30:38 +0000 (19:30 +0200)
committerFredrik Höglund <fredrik@kde.org>
Fri, 15 May 2015 20:12:05 +0000 (22:12 +0200)
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>
src/mesa/state_tracker/st_cb_blit.c

index bbaedd108f6c55d81d27f188fdd571856c44e80f..6d9371852c5bdc37625a0ec31ef9008447078fce 100644 (file)
@@ -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;