st/mesa: flush bitmap cache before CopyImageSubData
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 10 Jun 2016 13:59:58 +0000 (15:59 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 21 Jun 2016 08:54:10 +0000 (10:54 +0200)
Found by inspection.

Cc: 11.2 12.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_copyimage.c

index 617e470531dd19994db06fa605c0dc4d7bca002b..8afb861812f5f6b25018cbf0b7e557dfff12cb69 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include "state_tracker/st_context.h"
+#include "state_tracker/st_cb_bitmap.h"
 #include "state_tracker/st_cb_copyimage.h"
 #include "state_tracker/st_cb_fbo.h"
 #include "state_tracker/st_texture.h"
@@ -547,6 +548,8 @@ st_CopyImageSubData(struct gl_context *ctx,
    struct pipe_box box;
    int src_level, dst_level;
 
+   st_flush_bitmap_cache(st);
+
    if (src_image) {
       struct st_texture_image *src = st_texture_image(src_image);
       src_res = src->pt;