Marcin Slusarz
2011-May-08 22:35 UTC
[Nouveau] [PATCH] gallium/nouveau: remove unused nouveau_screen_bo_user
---
src/gallium/drivers/nouveau/nouveau_screen.c | 14 --------------
src/gallium/drivers/nouveau/nouveau_screen.h | 2 --
2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c
b/src/gallium/drivers/nouveau/nouveau_screen.c
index 401155b..223e768 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
@@ -81,20 +81,6 @@ nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned
alignment,
return bo;
}
-struct nouveau_bo *
-nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes)
-{
- struct nouveau_device *dev = nouveau_screen(pscreen)->device;
- struct nouveau_bo *bo = NULL;
- int ret;
-
- ret = nouveau_bo_user(dev, ptr, bytes, &bo);
- if (ret)
- return NULL;
-
- return bo;
-}
-
void *
nouveau_screen_bo_map(struct pipe_screen *pscreen,
struct nouveau_bo *bo,
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.h
b/src/gallium/drivers/nouveau/nouveau_screen.h
index 186ada3..d910809 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.h
+++ b/src/gallium/drivers/nouveau/nouveau_screen.h
@@ -47,8 +47,6 @@ nouveau_screen(struct pipe_screen *pscreen)
struct nouveau_bo *
nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned alignment,
unsigned usage, unsigned bind, unsigned size);
-struct nouveau_bo *
-nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes);
void *
nouveau_screen_bo_map(struct pipe_screen *pscreen,
struct nouveau_bo *pb,
--
1.7.4.1
Marcin Slusarz
2011-Jun-06 06:03 UTC
[Nouveau] [PATCH] gallium/nouveau: remove unused nouveau_screen_bo_user
On Mon, May 09, 2011 at 12:35:10AM +0200, Marcin Slusarz wrote:> > --- > src/gallium/drivers/nouveau/nouveau_screen.c | 14 -------------- > src/gallium/drivers/nouveau/nouveau_screen.h | 2 -- > 2 files changed, 0 insertions(+), 16 deletions(-)ping
Marcin Slusarz
2011-Jun-19 22:06 UTC
[Nouveau] [PATCH] gallium/nouveau: remove unused nouveau_screen_bo_user
On Mon, May 09, 2011 at 12:35:10AM +0200, Marcin Slusarz wrote:> > --- > src/gallium/drivers/nouveau/nouveau_screen.c | 14 -------------- > src/gallium/drivers/nouveau/nouveau_screen.h | 2 -- > 2 files changed, 0 insertions(+), 16 deletions(-) > > diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c > index 401155b..223e768 100644 > --- a/src/gallium/drivers/nouveau/nouveau_screen.c > +++ b/src/gallium/drivers/nouveau/nouveau_screen.c > @@ -81,20 +81,6 @@ nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned alignment, > return bo; > } > > -struct nouveau_bo * > -nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes) > -{ > - struct nouveau_device *dev = nouveau_screen(pscreen)->device; > - struct nouveau_bo *bo = NULL; > - int ret; > - > - ret = nouveau_bo_user(dev, ptr, bytes, &bo); > - if (ret) > - return NULL; > - > - return bo; > -} > - > void * > nouveau_screen_bo_map(struct pipe_screen *pscreen, > struct nouveau_bo *bo, > diff --git a/src/gallium/drivers/nouveau/nouveau_screen.h b/src/gallium/drivers/nouveau/nouveau_screen.h > index 186ada3..d910809 100644 > --- a/src/gallium/drivers/nouveau/nouveau_screen.h > +++ b/src/gallium/drivers/nouveau/nouveau_screen.h > @@ -47,8 +47,6 @@ nouveau_screen(struct pipe_screen *pscreen) > struct nouveau_bo * > nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned alignment, > unsigned usage, unsigned bind, unsigned size); > -struct nouveau_bo * > -nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes); > void * > nouveau_screen_bo_map(struct pipe_screen *pscreen, > struct nouveau_bo *pb, > --Can someone commit this patch? Or reject it. Whatever. Marcin
Marek Olšák
2011-Jun-20 00:23 UTC
[Nouveau] [Mesa-dev] [PATCH] gallium/nouveau: remove unused nouveau_screen_bo_user
Pushed, thanks. Marek On Mon, Jun 20, 2011 at 12:06 AM, Marcin Slusarz <marcin.slusarz at gmail.com> wrote:> On Mon, May 09, 2011 at 12:35:10AM +0200, Marcin Slusarz wrote: >> >> --- >> ?src/gallium/drivers/nouveau/nouveau_screen.c | ? 14 -------------- >> ?src/gallium/drivers/nouveau/nouveau_screen.h | ? ?2 -- >> ?2 files changed, 0 insertions(+), 16 deletions(-) >> >> diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c >> index 401155b..223e768 100644 >> --- a/src/gallium/drivers/nouveau/nouveau_screen.c >> +++ b/src/gallium/drivers/nouveau/nouveau_screen.c >> @@ -81,20 +81,6 @@ nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned alignment, >> ? ? ? return bo; >> ?} >> >> -struct nouveau_bo * >> -nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes) >> -{ >> - ? ? struct nouveau_device *dev = nouveau_screen(pscreen)->device; >> - ? ? struct nouveau_bo *bo = NULL; >> - ? ? int ret; >> - >> - ? ? ret = nouveau_bo_user(dev, ptr, bytes, &bo); >> - ? ? if (ret) >> - ? ? ? ? ? ? return NULL; >> - >> - ? ? return bo; >> -} >> - >> ?void * >> ?nouveau_screen_bo_map(struct pipe_screen *pscreen, >> ? ? ? ? ? ? ? ? ? ? struct nouveau_bo *bo, >> diff --git a/src/gallium/drivers/nouveau/nouveau_screen.h b/src/gallium/drivers/nouveau/nouveau_screen.h >> index 186ada3..d910809 100644 >> --- a/src/gallium/drivers/nouveau/nouveau_screen.h >> +++ b/src/gallium/drivers/nouveau/nouveau_screen.h >> @@ -47,8 +47,6 @@ nouveau_screen(struct pipe_screen *pscreen) >> ?struct nouveau_bo * >> ?nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned alignment, >> ? ? ? ? ? ? ? ? ? ? unsigned usage, unsigned bind, unsigned size); >> -struct nouveau_bo * >> -nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes); >> ?void * >> ?nouveau_screen_bo_map(struct pipe_screen *pscreen, >> ? ? ? ? ? ? ? ? ? ? struct nouveau_bo *pb, >> -- > > Can someone commit this patch? > Or reject it. Whatever. > > Marcin > _______________________________________________ > mesa-dev mailing list > mesa-dev at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev >