mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-04-19 19:40:39 +02:00
libdrm_radeon: Always wait for BO idle in bo_map.
This allows users to eliminate explicit bo_wait calls before bo_map calls.
This commit is contained in:
parent
ce6c68dc8a
commit
0a732983f0
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue