libdrm_radeon: Always wait for BO idle in bo_map.

This allows users to eliminate explicit bo_wait calls before bo_map calls.
main
Michel Dänzer 2009-08-27 08:36:58 +02:00
parent ce6c68dc8a
commit 0a732983f0
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}