projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce9daf6
)
winsys/radeon: little change in radeon_bo_is_referenced_by_cs
author
Marek Olšák
<maraeo@gmail.com>
Fri, 22 Jul 2011 17:20:25 +0000
(19:20 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 25 Jul 2011 21:10:40 +0000
(23:10 +0200)
src/gallium/winsys/radeon/drm/radeon_drm_cs.h
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
index 339beedc6abbb1bb1184de8e318350a6ce708a51..b8b170adcbe0d9fdd0ee1dc131a81be0bcce77d4 100644
(file)
--- a/
src/gallium/winsys/radeon/drm/radeon_drm_cs.h
+++ b/
src/gallium/winsys/radeon/drm/radeon_drm_cs.h
@@
-88,8
+88,9
@@
static INLINE boolean
radeon_bo_is_referenced_by_cs(struct radeon_drm_cs *cs,
struct radeon_bo *bo)
{
- return bo->num_cs_references == bo->rws->num_cs ||
- (bo->num_cs_references && radeon_get_reloc(cs->csc, bo) != -1);
+ int num_refs = bo->num_cs_references;
+ return num_refs == bo->rws->num_cs ||
+ (num_refs && radeon_get_reloc(cs->csc, bo) != -1);
}
static INLINE boolean