summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-06-10 15:59:58 +0200
committerEmil Velikov <[email protected]>2016-06-21 11:53:55 +0100
commit6306930c3f0cd790e9d8995468559453b6c75b2c (patch)
tree162738880bcabb7cc395bf58f457227a7c0a91a2
parent76377387c2d44d0fbae21763386ac86ffb54c635 (diff)
st/mesa: flush bitmap cache before CopyImageSubData
Found by inspection. Cc: 11.2 12.0 <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (cherry picked from commit f9ddd52317caf14a21ec7c040fd4bb944f9842e4)
-rw-r--r--src/mesa/state_tracker/st_cb_copyimage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_copyimage.c b/src/mesa/state_tracker/st_cb_copyimage.c
index 617e470531d..8afb861812f 100644
--- a/src/mesa/state_tracker/st_cb_copyimage.c
+++ b/src/mesa/state_tracker/st_cb_copyimage.c
@@ -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;