diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2007-08-13 17:02:27 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2007-08-14 15:57:30 +0100 |
commit | 70af238b494ed1b6da4841c2065c33ee0f0f37c9 (patch) | |
tree | eef1943724488fb620802718c21cfc6ae7c48d13 /src/mesa/pipe/softpipe/sp_quad_output.c | |
parent | d16b4bc32a731cb6ae320e8c187af3bc751d4138 (diff) |
Continue reducing dependencies on core mesa include files.
Mainly down to the support for legacy TNL processing now.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_output.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_output.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_output.c b/src/mesa/pipe/softpipe/sp_quad_output.c index 62f466be5d..49420c4fe7 100644 --- a/src/mesa/pipe/softpipe/sp_quad_output.c +++ b/src/mesa/pipe/softpipe/sp_quad_output.c @@ -31,20 +31,18 @@ * Attributes are assumed to be 4 floats wide but are packed so that * all the enabled attributes run contiguously. */ - -#include "glheader.h" -#include "imports.h" +#include "pipe/p_util.h" #include "sp_context.h" #include "sp_headers.h" #include "sp_surface.h" #include "sp_quad.h" -static void mask_copy( GLfloat (*dest)[4], - GLfloat (*src)[4], - GLuint mask ) +static void mask_copy( float (*dest)[4], + float (*src)[4], + unsigned mask ) { - GLuint i, j; + unsigned i, j; for (i = 0; i < 4; i++) { if (mask & (1<<i)) { @@ -68,7 +66,7 @@ output_quad(struct quad_stage *qs, struct quad_header *quad) struct softpipe_surface *sps = softpipe_surface(softpipe->cbuf); if (quad->mask != MASK_ALL) { - GLfloat tmp[4][QUAD_SIZE]; + float tmp[4][QUAD_SIZE]; /* XXX probably add a masked-write function someday */ |