summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-04-11 17:45:41 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2008-04-11 17:45:41 +0100
commit02250c855fbec5299a2d6118fefa0523ec73654c (patch)
treefa6acdc93d67269fff6388f48e91dfe3ca4572b1
parentd758479b9fbff803bdac15f3f39d32ef9064db71 (diff)
gallium: Flush render cache at the beginning of fallback_copy_texsubimage().
It may get stale bits otherwise.
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 43b43ec14c..3db2790267 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -41,6 +41,7 @@
#include "state_tracker/st_cb_fbo.h"
#include "state_tracker/st_cb_texture.h"
#include "state_tracker/st_format.h"
+#include "state_tracker/st_public.h"
#include "state_tracker/st_texture.h"
#include "state_tracker/st_gen_mipmap.h"
@@ -1033,6 +1034,8 @@ fallback_copy_texsubimage(GLcontext *ctx,
GLfloat *data;
GLint row, yStep;
+ st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
+
/* determine bottom-to-top vs. top-to-bottom order */
if (st_fb_orientation(ctx->ReadBuffer) == Y_0_TOP) {
destY = height - 1 - destY;