mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
nv50: count wrapped textures towards the tex_obj count
But don't count their size towards the allocated memory, since that belongs to whoever created it. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
caa34a7a64
commit
404387ecd7
1 changed files with 2 additions and 0 deletions
|
|
@ -404,6 +404,8 @@ nv50_miptree_from_handle(struct pipe_screen *pscreen,
|
|||
mt->level[0].offset = 0;
|
||||
mt->level[0].tile_mode = mt->base.bo->config.nv50.tile_mode;
|
||||
|
||||
NOUVEAU_DRV_STAT(nouveau_screen(pscreen), tex_obj_current_count, 1);
|
||||
|
||||
/* no need to adjust bo reference count */
|
||||
return &mt->base.base;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue