From: Marek Olšák Date: Thu, 8 Jul 2010 19:36:47 +0000 (+0200) Subject: r300g: fix transfering compressed textures X-Git-Tag: 062012170305~11477 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cc6b5b043044bc0b74502f3cca03a8423ed25b2;p=profile%2Fivi%2Fmesa.git r300g: fix transfering compressed textures --- diff --git a/src/gallium/drivers/r300/r300_transfer.c b/src/gallium/drivers/r300/r300_transfer.c index 02421a5..2eb93e1 100644 --- a/src/gallium/drivers/r300/r300_transfer.c +++ b/src/gallium/drivers/r300/r300_transfer.c @@ -204,7 +204,7 @@ r300_texture_get_transfer(struct pipe_context *ctx, r300_texture_get_stride(r300screen, tex, sr.level); trans->offset = r300_texture_get_offset(tex, sr.level, box->z, sr.face); - if (referenced_cs && (usage & PIPE_TRANSFER_READ)) + if (referenced_cs) ctx->flush(ctx, PIPE_FLUSH_RENDER_CACHE, NULL); return &trans->transfer; }