summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-09 22:55:28 +0100
committerBrian <brian.paul@tungstengraphics.com>2007-08-09 22:55:28 +0100
commit2f4f703af1f1d99f84adc9d8db30f3725eacd77f (patch)
tree35579ac2a034c3db4afd405c9785db198ab1c769 /src
parentac36cdbcc1ce4d78df50150117b11861c6ea672b (diff)
export softpipe_init_surface_funcs()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_surface.c10
-rw-r--r--src/mesa/pipe/softpipe/sp_surface.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.c b/src/mesa/pipe/softpipe/sp_surface.c
index 3260bcce75..852aeeeed1 100644
--- a/src/mesa/pipe/softpipe/sp_surface.c
+++ b/src/mesa/pipe/softpipe/sp_surface.c
@@ -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;
}
diff --git a/src/mesa/pipe/softpipe/sp_surface.h b/src/mesa/pipe/softpipe/sp_surface.h
index 837e0c4ba1..00b5edcd92 100644
--- a/src/mesa/pipe/softpipe/sp_surface.h
+++ b/src/mesa/pipe/softpipe/sp_surface.h
@@ -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)