projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a7738
)
radeon: Remove NULL check of bo_legacy->tobj.
author
Vinson Lee
<vlee@vmware.com>
Sun, 25 Apr 2010 06:41:59 +0000
(23:41 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 25 Apr 2010 06:44:56 +0000
(23:44 -0700)
bo_legacy->tobj cannot be NULL before the call to driUpdateTextureLRU.
There is a NULL check earlier in the routine, and if bo_legacy->tobj is
NULL, memory is allocated.
src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
b/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
index cf12664bacdaf48dff604e3502145ebf550e6971..78f73bf99ce7399fae30efa65efd1668769bdc64 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
@@
-618,8
+618,7
@@
static int bo_vram_validate(struct radeon_bo_int *bo,
assert(bo_legacy->tobj->base.memBlock);
- if (bo_legacy->tobj)
- driUpdateTextureLRU(&bo_legacy->tobj->base);
+ driUpdateTextureLRU(&bo_legacy->tobj->base);
if (bo_legacy->dirty || bo_legacy->tobj->base.dirty_images[0]) {
if (IS_R600_CLASS(boml->screen)) {