diff options
Diffstat (limited to 'libdrm/radeon')
-rw-r--r-- | libdrm/radeon/radeon_bo_gem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdrm/radeon/radeon_bo_gem.c b/libdrm/radeon/radeon_bo_gem.c index add55db9..76d80e7e 100644 --- a/libdrm/radeon/radeon_bo_gem.c +++ b/libdrm/radeon/radeon_bo_gem.c @@ -152,7 +152,10 @@ static int bo_map(struct radeon_bo *bo, int write) int r; void *ptr; - if (bo_gem->map_count++ != 0 || bo_gem->priv_ptr) { + if (bo_gem->map_count++ != 0) { + return 0; + } + if (bo_gem->priv_ptr) { goto wait; } |