libdrm_radeon: Always wait for BO idle in bo_map.
This allows users to eliminate explicit bo_wait calls before bo_map calls.main
parent
ce6c68dc8a
commit
0a732983f0
|
@ -152,10 +152,7 @@ static int bo_map(struct radeon_bo *bo, int write)
|
|||
int r;
|
||||
void *ptr;
|
||||
|
||||
if (bo_gem->map_count++ != 0) {
|
||||
return 0;
|
||||
}
|
||||
if (bo_gem->priv_ptr) {
|
||||
if (bo_gem->map_count++ != 0 || bo_gem->priv_ptr) {
|
||||
goto wait;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue