r300g: fix transfering compressed textures
authorMarek Olšák <maraeo@gmail.com>
Thu, 8 Jul 2010 19:36:47 +0000 (21:36 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 8 Jul 2010 19:37:04 +0000 (21:37 +0200)
src/gallium/drivers/r300/r300_transfer.c

index 02421a58b835ad82398ac5a27033e8141f1323da..2eb93e19111a2eae79a009ec848b4e525956a9bb 100644 (file)
@@ -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;
     }