mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 11:30:22 +01:00
radeon: Remove NULL check of bo_legacy->tobj.
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.
This commit is contained in:
parent
a1a7738223
commit
d69ed3a96e
1 changed files with 1 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue