mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 14:00:37 +02:00
radeon: lower texture memory consumption is some cases
When searching for valid miptree check images in range of [BaseLeve, MaxLevel] not [MinLod, MaxLoad]. Prevents unnecessary miptree allocations in cases when during every rendering operation different texture image level was selected using MIN_LOD = MAX_LOD = level (for every level new miptree for whole texture was allocated). Candidate for 7.8 branch. Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
This commit is contained in:
parent
ad24ea37bb
commit
72e6a1e72f
1 changed files with 1 additions and 1 deletions
|
|
@ -602,7 +602,7 @@ int radeon_validate_texture_miptree(GLcontext * ctx, struct gl_texture_object *t
|
|||
__FUNCTION__, texObj ,t->minLod, t->maxLod);
|
||||
|
||||
radeon_mipmap_tree *dst_miptree;
|
||||
dst_miptree = get_biggest_matching_miptree(t, t->minLod, t->maxLod);
|
||||
dst_miptree = get_biggest_matching_miptree(t, t->base.BaseLevel, t->base.MaxLevel);
|
||||
|
||||
radeon_miptree_unreference(&t->mt);
|
||||
if (!dst_miptree) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue