From cf13cf245e91669eb916a6d51676b0d66ff62ead Mon Sep 17 00:00:00 2001
From: Ben Skeggs <skeggsb@gmail.com>
Date: Fri, 30 May 2008 14:32:59 +1000
Subject: nouveau: fix warning

---
 src/gallium/winsys/dri/nouveau/nouveau_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/winsys/dri/nouveau/nouveau_context.c b/src/gallium/winsys/dri/nouveau/nouveau_context.c
index d9fc3f6ce1..ef5fb7ec0d 100644
--- a/src/gallium/winsys/dri/nouveau/nouveau_context.c
+++ b/src/gallium/winsys/dri/nouveau/nouveau_context.c
@@ -99,7 +99,7 @@ nouveau_context_create(const __GLcontextModes *glVis,
 	struct st_context *st_share = NULL;
 	struct nouveau_channel_context *nvc = NULL;
 	struct nouveau_device *dev = nv_screen->device;
-	int i, ret;
+	int i;
 
 	if (sharedContextPrivate) {
 		st_share = ((struct nouveau_context *)sharedContextPrivate)->st;
-- 
cgit v1.2.3


From edea59e8e5a3ef4c6afdcb4f1d32961466be508b Mon Sep 17 00:00:00 2001
From: Ben Skeggs <skeggsb@gmail.com>
Date: Sun, 8 Jun 2008 12:50:47 +1000
Subject: nouveau: kill off surface_alloc_storage()

---
 .../winsys/dri/nouveau/nouveau_winsys_pipe.c       | 23 ----------------------
 1 file changed, 23 deletions(-)

diff --git a/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c b/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c
index 2fab1eab65..ba5dd2eea4 100644
--- a/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c
+++ b/src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c
@@ -39,28 +39,6 @@ nouveau_surface_alloc(struct pipe_winsys *ws)
 	return surf;
 }
 
-static int
-nouveau_surface_alloc_storage(struct pipe_winsys *ws, struct pipe_surface *surf,
-			      unsigned width, unsigned height,
-			      enum pipe_format format, unsigned flags,
-			      unsigned tex_usage)
-{
-	unsigned pitch = ((width * pf_get_size(format)) + 63) & ~63;
-
-	surf->format = format;
-	surf->width = width;
-	surf->height = height;
-	surf->cpp = pf_get_size(format);
-	surf->pitch = pitch / surf->cpp;
-
-	surf->buffer = ws->buffer_create(ws, 256, PIPE_BUFFER_USAGE_PIXEL,
-					 pitch * height);
-	if (!surf->buffer)
-		return 1;
-
-	return 0;
-}
-
 static void
 nouveau_surface_release(struct pipe_winsys *ws, struct pipe_surface **s)
 {
@@ -226,7 +204,6 @@ nouveau_create_pipe_winsys(struct nouveau_context *nv)
 	pws->flush_frontbuffer = nouveau_flush_frontbuffer;
 
 	pws->surface_alloc = nouveau_surface_alloc;
-	pws->surface_alloc_storage = nouveau_surface_alloc_storage;
 	pws->surface_release = nouveau_surface_release;
 
 	pws->buffer_create = nouveau_pipe_bo_create;
-- 
cgit v1.2.3