summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-08 21:36:47 +0200
committerMarek Olšák <[email protected]>2010-07-08 21:37:04 +0200
commit9cc6b5b043044bc0b74502f3cca03a8423ed25b2 (patch)
treea4aa90d90783baa5403f4cf6f89aaffa36d2587d
parente72b87736d8453e79bb6da48ba4cfcc2e97c8e14 (diff)
r300g: fix transfering compressed textures
-rw-r--r--src/gallium/drivers/r300/r300_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_transfer.c b/src/gallium/drivers/r300/r300_transfer.c
index 02421a58b83..2eb93e19111 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;
}