Skip to contentSkip to conversation

nvc0: remove unused nvc0_screen::mm_VRAM_fe0

PATCH In review Alexandre Courbot 4 participants 4 messages Oct 27, 2014 – Nov 12, 2014 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 nvc0: remove unused nvc0_screen::mm_VRAM_fe0

This member is declared, allocated and destroyed, but doesn't seem to be used or referenced anywhere in the code.

---
Resending after fixing typo in email address - apologies for the inconvenience.

 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ---
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 2 --
 2 files changed, 5 deletions(-)
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +0 -3
index a7581f286cfc..61b381693224 100644
@@ -407,8 +407,6 @@ nvc0_screen_destroy(struct pipe_screen *pscreen)
 
    FREE(screen->tic.entries);
 
-   nouveau_mm_destroy(screen->mm_VRAM_fe0);
-
    nouveau_object_del(&screen->eng3d);
    nouveau_object_del(&screen->eng2d);
    nouveau_object_del(&screen->m2mf);
@@ -1027,7 +1025,6 @@ nvc0_screen_create(struct nouveau_device *dev)
 
    mm_config.nvc0.tile_mode = 0;
    mm_config.nvc0.memtype = 0xfe0;
-   screen->mm_VRAM_fe0 = nouveau_mm_create(dev, NOUVEAU_BO_VRAM, &mm_config);
 
    if (!nvc0_blitter_create(screen))
       goto fail;
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h +0 -2
index 4802057f70ee..8a1991f52eb4 100644
@@ -73,8 +73,6 @@ struct nvc0_screen {
       boolean mp_counters_enabled;
    } pm;
 
-   struct nouveau_mman *mm_VRAM_fe0;
-
    struct nouveau_object *eng3d; /* sqrt(1/2)|kepler> + sqrt(1/2)|fermi> */
    struct nouveau_object *eng2d;
    struct nouveau_object *m2mf;
Signature · 6 lines
2.1.2

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

A message that is not in the archive (sent off-list or not yet received): 1414406209-25574-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#3 lore raw

Ping, how about this guy?

Quoted 46 lines · Alexandre Courbot

This member is declared, allocated and destroyed, but doesn't seem to be used or referenced anywhere in the code.

---
Resending after fixing typo in email address - apologies for the inconvenience.

 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ---
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 2 --
 2 files changed, 5 deletions(-)
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +0 -3
index a7581f286cfc..61b381693224 100644
@@ -407,8 +407,6 @@ nvc0_screen_destroy(struct pipe_screen *pscreen)
 
    FREE(screen->tic.entries);
 
-   nouveau_mm_destroy(screen->mm_VRAM_fe0);
-
    nouveau_object_del(&screen->eng3d);
    nouveau_object_del(&screen->eng2d);
    nouveau_object_del(&screen->m2mf);
@@ -1027,7 +1025,6 @@ nvc0_screen_create(struct nouveau_device *dev)
 
    mm_config.nvc0.tile_mode = 0;
    mm_config.nvc0.memtype = 0xfe0;
-   screen->mm_VRAM_fe0 = nouveau_mm_create(dev, NOUVEAU_BO_VRAM, &mm_config);
 
    if (!nvc0_blitter_create(screen))
       goto fail;
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h +0 -3
index 4802057f70ee..8a1991f52eb4 100644
@@ -73,8 +73,6 @@ struct nvc0_screen {
       boolean mp_counters_enabled;
    } pm;
 
-   struct nouveau_mman *mm_VRAM_fe0;
-
    struct nouveau_object *eng3d; /* sqrt(1/2)|kepler> + sqrt(1/2)|fermi> */
    struct nouveau_object *eng2d;
    struct nouveau_object *m2mf;
--
Quoted 2 lines

2.1.2

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): CAAVeFuJHdUVGUScxrYsgTXNbR7hYjxvgzqi8Bk6TVF7uaOu7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#5 lore raw

LG. I had this same patch locally I think... I came up with it after I went looking at the various VRAM usage after you were asking questions about it.

Quoted 48 lines · Alexandre Courbot

Ping, how about this guy?

Quoted 6 lines · Alexandre Courbot

This member is declared, allocated and destroyed, but doesn't seem to be used or referenced anywhere in the code.

---
Resending after fixing typo in email address - apologies for the

inconvenience.

Review

Quoted 6 lines
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ---
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 2 --
 2 files changed, 5 deletions(-)
(quoted diff) +0 -0

b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

Quoted 13 lines

index a7581f286cfc..61b381693224 100644

src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +0 -2
@@ -407,8 +407,6 @@ nvc0_screen_destroy(struct pipe_screen *pscreen)
 
    FREE(screen->tic.entries);
 
-   nouveau_mm_destroy(screen->mm_VRAM_fe0);
-
    nouveau_object_del(&screen->eng3d);
    nouveau_object_del(&screen->eng2d);
    nouveau_object_del(&screen->m2mf);

src/gallium/drivers/nouveau/nvc0/nvc0_screen.c nvc0_screen_create(struct nouveau_device *dev) · line 1030

Quoted 4 lines
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +0 -1
@@ -1027,7 +1025,6 @@ nvc0_screen_create(struct nouveau_device *dev)
 
    mm_config.nvc0.tile_mode = 0;
    mm_config.nvc0.memtype = 0xfe0;
-   screen->mm_VRAM_fe0 = nouveau_mm_create(dev, NOUVEAU_BO_VRAM,

&mm_config);

Review

Quoted 4 lines
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +0 -0
    if (!nvc0_blitter_create(screen))
       goto fail;
(quoted diff) +0 -0

b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h

Quoted 7 lines

index 4802057f70ee..8a1991f52eb4 100644

src/gallium/drivers/nouveau/nvc0/nvc0_screen.h +0 -0
@@ -73,8 +73,6 @@ struct nvc0_screen {
       boolean mp_counters_enabled;
    } pm;
 
Quoted 10 lines

src/gallium/drivers/nouveau/nvc0/nvc0_screen.h struct nvc0_screen {

Quoted 3 lines
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h +0 -2
-   struct nouveau_mman *mm_VRAM_fe0;
-
    struct nouveau_object *eng3d; /* sqrt(1/2)|kepler> +

sqrt(1/2)|fermi> */

Quoted 5 lines
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h +0 -1
    struct nouveau_object *eng2d;
    struct nouveau_object *m2mf;
--

2.1.2

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): CAKb7UvipWpaYXEE22Tyt8ostiohL=xfHgcfAnv3Sgz5gE62J-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org