[Mesa-dev] [PATCH 3/7] st/mesa: flush bitmap cache before CopyImageSubData

Nicolai Hähnle nhaehnle at gmail.com
Wed Jun 15 08:38:32 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Found by inspection.

Cc: 11.2 12.0 <mesa-stable at lists.freedesktop.org>
---
 src/mesa/state_tracker/st_cb_copyimage.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/state_tracker/st_cb_copyimage.c b/src/mesa/state_tracker/st_cb_copyimage.c
index 617e470..8afb861 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;
-- 
2.7.4



More information about the mesa-dev mailing list