Module: Mesa
Branch: master
Commit: 86e146df977d8df97026291c46aa4adfc13309e1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=86e146df977d8df97026291c46aa4adfc13309e1

Author: Keith Whitwell <[email protected]>
Date:   Thu Mar  4 13:22:37 2010 +0000

softpipe: remove dead get_texture_buffer function

---

 src/gallium/drivers/softpipe/sp_texture.c |   20 --------------------
 src/gallium/drivers/softpipe/sp_winsys.h  |    6 ------
 2 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_texture.c 
b/src/gallium/drivers/softpipe/sp_texture.c
index d399785..44710d9 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -475,24 +475,4 @@ softpipe_init_screen_texture_funcs(struct pipe_screen 
*screen)
 }
 
 
-/**
- * Return pipe_buffer handle and stride for given texture object.
- * XXX used for???
- */
-boolean
-softpipe_get_texture_buffer( struct pipe_texture *texture,
-                             struct pipe_buffer **buf,
-                             unsigned *stride )
-{
-   struct softpipe_texture *tex = (struct softpipe_texture *) texture;
-
-   if (!tex)
-      return FALSE;
 
-   pipe_buffer_reference(buf, tex->buffer);
-
-   if (stride)
-      *stride = tex->stride[0];
-
-   return TRUE;
-}
diff --git a/src/gallium/drivers/softpipe/sp_winsys.h 
b/src/gallium/drivers/softpipe/sp_winsys.h
index 6e3920c..edc49f2 100644
--- a/src/gallium/drivers/softpipe/sp_winsys.h
+++ b/src/gallium/drivers/softpipe/sp_winsys.h
@@ -60,12 +60,6 @@ struct pipe_screen *softpipe_create_screen( struct 
pipe_winsys * );
  */
 struct pipe_screen *softpipe_create_screen_malloc(void);
 
-boolean
-softpipe_get_texture_buffer( struct pipe_texture *texture,
-                             struct pipe_buffer **buf,
-                             unsigned *stride );
-
-
 #ifdef __cplusplus
 }
 #endif

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

Reply via email to