OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a73298
)
Revert "libdrm_radeon: Always wait for BO idle in bo_map."
author
Michel Dänzer
<daenzer@vmware.com>
Fri, 28 Aug 2009 09:42:07 +0000
(11:42 +0200)
committer
Michel Dänzer
<michel@daenzer.net>
Fri, 28 Aug 2009 09:42:07 +0000
(11:42 +0200)
This reverts commit
0a732983f059c353b267b6bf877e1f0eea4e033f
.
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.
libdrm/radeon/radeon_bo_gem.c
patch
|
blob
|
history
diff --git
a/libdrm/radeon/radeon_bo_gem.c
b/libdrm/radeon/radeon_bo_gem.c
index
add55db
..
76d80e7
100644
(file)
--- 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;
}