radeon-gallium: Wait for BOs before mapping them.
This commit is contained in:
parent
6fff62ee3f
commit
df04e72d25
|
@ -141,6 +141,8 @@ static void *radeon_buffer_map(struct pipe_winsys *ws,
|
|||
write = 1;
|
||||
}
|
||||
|
||||
radeon_bo_wait(radeon_buffer->bo);
|
||||
|
||||
if (radeon_bo_map(radeon_buffer->bo, write))
|
||||
return NULL;
|
||||
return radeon_buffer->bo->ptr;
|
||||
|
|
Loading…
Reference in New Issue