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 <jglisse@redhat.com>
This commit is contained in:
Jerome Glisse 2010-08-04 16:28:33 -04:00
parent 2e85117b5f
commit 12dac449fb

View file

@ -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;