diff options
author | Joakim Sindholt <[email protected]> | 2013-07-08 16:05:39 +0200 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-05-23 12:34:39 -0400 |
commit | 404387ecd72a4a9ace8c1fa6895823aabfd759ad (patch) | |
tree | 31685661fd3f833961faf4c441fd03b885d9e1ee /src/gallium/drivers/nouveau/nv50/nv50_miptree.c | |
parent | caa34a7a640b150c15deafc41e7712417abcb270 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_miptree.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c index 513d8f96aac..4c5517978c0 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c @@ -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; } |