summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2010-08-04 16:28:33 -0400
committerJerome Glisse <[email protected]>2010-08-04 16:29:56 -0400
commit12dac449fba5fe17087fd48ac959a5388875b2d3 (patch)
treed40855bd840196cb7b19fe43d34d22f323249c22 /src/gallium/drivers
parent2e85117b5f8909b8737e0c0e479360640e405192 (diff)
r600g: force flush on map as temporary fix to readpixel
Should allow more piglit test to pass. Need to plugin proper flushing. Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 3725bf85609..033c71f6ef1 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -234,6 +234,8 @@ void* r600_texture_transfer_map(struct pipe_context *ctx,
struct r600_screen *rscreen = r600_screen(ctx->screen);
char *map;
+ r600_flush(ctx, 0, NULL);
+
resource = (struct r600_resource *)transfer->resource;
if (radeon_bo_map(rscreen->rw, resource->bo)) {
return NULL;