softpipe: remove dead get_texture_buffer function
authorKeith Whitwell <keithw@vmware.com>
Thu, 4 Mar 2010 13:22:37 +0000 (13:22 +0000)
committerKeith Whitwell <keithw@vmware.com>
Thu, 4 Mar 2010 13:22:37 +0000 (13:22 +0000)
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_winsys.h

index d3997854b2ffcd572431fe44d5d5ad979c8b9af3..44710d9992a10940eaf4a854b61203112926c222 100644 (file)
@@ -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;
-}
index 6e3920c49b2647536d463a2be29135bf2c120841..edc49f256d2a6ba57d54d3fb87c213c8d061f49d 100644 (file)
@@ -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