mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 14:48:03 +02:00
Revert "libdrm_radeon: Always wait for BO idle in bo_map."
This reverts commit 0a732983f0.
Paul Nieminen and Dave Airlie pointed out on IRC that this shouldn't be
necessary. I was seeing visual corruption in X before I made this change, but
I can't reproduce that anymore so it was probably an unrelated issue.
This commit is contained in:
parent
0a732983f0
commit
19d6fadfa2
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue