mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
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:
parent
2e85117b5f
commit
12dac449fb
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue