export softpipe_init_surface_funcs()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 9 Aug 2007 21:55:28 +0000 (22:55 +0100)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 9 Aug 2007 21:55:28 +0000 (22:55 +0100)
src/mesa/pipe/softpipe/sp_surface.c
src/mesa/pipe/softpipe/sp_surface.h

index 3260bcce75c69ebccb36af8f67ea7f079ce13d2d..852aeeeed1a7b09f8403e6647c9cfcfb8a38b06e 100644 (file)
@@ -368,10 +368,8 @@ a1r5g5b5_get_tile(struct pipe_surface *ps,
 }
 
 
-
-
-static void
-init_quad_funcs(struct softpipe_surface *sps)
+void
+softpipe_init_surface_funcs(struct softpipe_surface *sps)
 {
    switch (sps->surface.format) {
    case PIPE_FORMAT_U_Z16:
@@ -399,9 +397,7 @@ init_quad_funcs(struct softpipe_surface *sps)
       sps->surface.get_tile = a1r5g5b5_get_tile;
       break;
    default:
-      /*
       assert(0);
-      */
       ;
    }
 }
@@ -416,7 +412,7 @@ sp_surface_alloc(struct pipe_context *pipe, GLenum format)
 
    sps->surface.format = format;
    sps->surface.refcount = 1;
-   init_quad_funcs(sps);
+   softpipe_init_surface_funcs(sps);
 
    return &sps->surface;
 }
index 837e0c4ba1aa12721c47b7813da2dfc95c10c54a..00b5edcd9280af06984fda17e9af4c27c613f673 100644 (file)
@@ -93,6 +93,10 @@ softpipe_get_tex_surface(struct pipe_context *pipe,
                          GLuint face, GLuint level, GLuint zslice);
 
 
+extern void
+softpipe_init_surface_funcs(struct softpipe_surface *sps);
+
+
 /** Cast wrapper */
 static INLINE struct softpipe_surface *
 softpipe_surface(struct pipe_surface *ps)