gallium: Reinstate unconditional flushes.
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Mon, 20 Apr 2009 18:43:56 +0000 (20:43 +0200)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Wed, 22 Apr 2009 09:42:46 +0000 (11:42 +0200)
Lost in commit e50dd26ca6d0eb0d0f97c2780020ea16e3d4a687.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_readpixels.c

index 703b465574d94c2eb018a5744e2fed6db798ee38..08dc7c930e281961feefdd3e684d720d9709a58c 100644 (file)
@@ -906,6 +906,8 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy,
    GLfloat *color;
    enum pipe_format srcFormat, texFormat;
 
+   pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, NULL);
+
    st_validate_state(st);
 
    if (type == GL_STENCIL) {
index 85adcb785ee9dd1abeb27fd0e9275ad14d6e42d7..7a4bbf5ce3a2c42eed3ee767f052afe09ee3a1a1 100644 (file)
@@ -357,6 +357,8 @@ st_readpixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
    if (!dest)
       return;
 
+   st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
+
    if (format == GL_STENCIL_INDEX ||
        format == GL_DEPTH_STENCIL) {
       st_read_stencil_pixels(ctx, x, y, width, height,