Skip to contentSkip to conversation

gallium/nouveau: remove unused nouveau_screen_bo_user

PATCH In review Marcin Slusarz 2 participants 4 messages May 8, 2011 – Jun 20, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(-)
src/gallium/drivers/nouveau/nouveau_screen.c +0 -14
index 401155b..223e768 100644
@@ -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,
src/gallium/drivers/nouveau/nouveau_screen.h +0 -2
index 186ada3..d910809 100644
@@ -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,
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 5 lines · Marcin Slusarz
---
 src/gallium/drivers/nouveau/nouveau_screen.c |   14 --------------
 src/gallium/drivers/nouveau/nouveau_screen.h |    2 --
 2 files changed, 0 insertions(+), 16 deletions(-)

ping

#2 lore raw
In reply to Marcin Slusarz
Quoted 37 lines · Marcin Slusarz
---
 src/gallium/drivers/nouveau/nouveau_screen.c |   14 --------------
 src/gallium/drivers/nouveau/nouveau_screen.h |    2 --
 2 files changed, 0 insertions(+), 16 deletions(-)
src/gallium/drivers/nouveau/nouveau_screen.c +0 -14
index 401155b..223e768 100644
@@ -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,
src/gallium/drivers/nouveau/nouveau_screen.h +0 -0
index 186ada3..d910809 100644

src/gallium/drivers/nouveau/nouveau_screen.h nouveau_screen(struct pipe_screen *pscreen) · line 52

Quoted 8 lines
src/gallium/drivers/nouveau/nouveau_screen.h +0 -2
@@ -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

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

#4 lore raw

Pushed, thanks.

Marek

Quoted 50 lines · Marcin Slusarz
Quoted 41 lines · Marcin Slusarz

---
 src/gallium/drivers/nouveau/nouveau_screen.c |   14 -------------- src/gallium/drivers/nouveau/nouveau_screen.h |    2 --

 2 files changed, 0 insertions(+), 16 deletions(-)
src/gallium/drivers/nouveau/nouveau_screen.c +0 -14
index 401155b..223e768 100644
@@ -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,

src/gallium/drivers/nouveau/nouveau_screen.h +0 -0
index 186ada3..d910809 100644
@@ -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);

src/gallium/drivers/nouveau/nouveau_screen.h +0 -2
-struct nouveau_bo *
-nouveau_screen_bo_user(struct pipe_screen *pscreen, void *ptr, unsigned bytes);
Quoted 4 lines

 void *
 nouveau_screen_bo_map(struct pipe_screen *pscreen, struct nouveau_bo *pb, --

Can someone commit this patch?
Or reject it. Whatever.

Quoted 6 lines

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

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