[Mesa-dev] [PATCH] nv50: remove useless and incomplete use of driver statistics

Samuel Pitoiset samuel.pitoiset at gmail.com
Sun Jun 7 14:11:43 PDT 2015


Do not need to record a part of driver statistics because they
are not exposed by NV50.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c
index 744a3a5..c123458 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c
@@ -168,10 +168,6 @@ nv50_miptree_destroy(struct pipe_screen *pscreen, struct pipe_resource *pt)
    nouveau_fence_ref(NULL, &mt->base.fence);
    nouveau_fence_ref(NULL, &mt->base.fence_wr);
 
-   NOUVEAU_DRV_STAT(nouveau_screen(pscreen), tex_obj_current_count, -1);
-   NOUVEAU_DRV_STAT(nouveau_screen(pscreen), tex_obj_current_bytes,
-                    -(uint64_t)mt->total_size);
-
    FREE(mt);
 }
 
@@ -430,8 +426,6 @@ 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;
 }
-- 
2.4.2



More information about the mesa-dev mailing list