All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0
       [not found] <1414405588-17705-1-git-send-email-acourbot@nvidia.com>
@ 2014-10-27 10:36 ` Alexandre Courbot
       [not found]   ` <1414406209-25574-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Courbot @ 2014-10-27 10:36 UTC (permalink / raw)
  To: Ilia Mirkin; +Cc: nouveau, gnurou, mesa-dev

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

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
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(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index a7581f286cfc..61b381693224 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -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;
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
index 4802057f70ee..8a1991f52eb4 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
@@ -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;
-- 
2.1.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0
       [not found]   ` <1414406209-25574-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2014-11-12  4:59     ` Alexandre Courbot
       [not found]       ` <CAAVeFuJHdUVGUScxrYsgTXNbR7hYjxvgzqi8Bk6TVF7uaOu7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Courbot @ 2014-11-12  4:59 UTC (permalink / raw)
  To: Alexandre Courbot
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Ping, how about this guy?

On Mon, Oct 27, 2014 at 7:36 PM, Alexandre Courbot <acourbot@nvidia.com> wrote:
> This member is declared, allocated and destroyed, but doesn't seem to be
> used or referenced anywhere in the code.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> ---
> 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(-)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> index a7581f286cfc..61b381693224 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> @@ -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;
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> index 4802057f70ee..8a1991f52eb4 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> @@ -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;
> --
> 2.1.2
>
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0
       [not found]       ` <CAAVeFuJHdUVGUScxrYsgTXNbR7hYjxvgzqi8Bk6TVF7uaOu7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-12  6:07         ` Ilia Mirkin
       [not found]           ` <CAKb7UvipWpaYXEE22Tyt8ostiohL=xfHgcfAnv3Sgz5gE62J-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ilia Mirkin @ 2014-11-12  6:07 UTC (permalink / raw)
  To: Alexandre Courbot
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org


[-- Attachment #1.1: Type: text/plain, Size: 2363 bytes --]

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.

On Tue, Nov 11, 2014 at 11:59 PM, Alexandre Courbot <gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:

> Ping, how about this guy?
>
> On Mon, Oct 27, 2014 at 7:36 PM, Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> wrote:
> > This member is declared, allocated and destroyed, but doesn't seem to be
> > used or referenced anywhere in the code.
> >
> > Signed-off-by: Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > ---
> > 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(-)
> >
> > diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> > index a7581f286cfc..61b381693224 100644
> > --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> > +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> > @@ -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;
> > diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> > index 4802057f70ee..8a1991f52eb4 100644
> > --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> > +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
> > @@ -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;
> > --
> > 2.1.2
> >
>

[-- Attachment #1.2: Type: text/html, Size: 3223 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0
       [not found]           ` <CAKb7UvipWpaYXEE22Tyt8ostiohL=xfHgcfAnv3Sgz5gE62J-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-12  6:16             ` Alexandre Courbot
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Courbot @ 2014-11-12  6:16 UTC (permalink / raw)
  To: Ilia Mirkin, Alexandre Courbot
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org

On 11/12/2014 03:07 PM, Ilia Mirkin wrote:
> 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.

Good, I'm dropping this version then, and assume yours will get merged soon.

Thanks!
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-12  6:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1414405588-17705-1-git-send-email-acourbot@nvidia.com>
2014-10-27 10:36 ` [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0 Alexandre Courbot
     [not found]   ` <1414406209-25574-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-11-12  4:59     ` Alexandre Courbot
     [not found]       ` <CAAVeFuJHdUVGUScxrYsgTXNbR7hYjxvgzqi8Bk6TVF7uaOu7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-12  6:07         ` Ilia Mirkin
     [not found]           ` <CAKb7UvipWpaYXEE22Tyt8ostiohL=xfHgcfAnv3Sgz5gE62J-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-12  6:16             ` Alexandre Courbot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.