summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_tex_layout.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-13 16:07:11 +0100
committerKeith Whitwell <[email protected]>2007-08-13 16:23:44 +0100
commit40a86b20478024ca7c55400019c536cb5ff631d1 (patch)
tree624d3f33b07dfba4328b0c7746af5f58fd496292 /src/mesa/pipe/softpipe/sp_tex_layout.c
parentd46779103b38aeab61701759ed7a0b30cc71c0ef (diff)
Start breaking the #include dependencies between pipe drivers and mesa.
Pipe drivers shouldn't really know much about mesa and certainly shouldn't be #including files from src/mesa/main and the like. I've also (in i915simple especially) moved over from GL types to more conventional int/unsigned usage. This probably isn't really the ultimate desired set of types to use - possibly C99 would be better. It may even be that a subset of the GL types is preferable.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_tex_layout.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_layout.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tex_layout.c b/src/mesa/pipe/softpipe/sp_tex_layout.c
index bd5f5e930da..fda1b46ab43 100644
--- a/src/mesa/pipe/softpipe/sp_tex_layout.c
+++ b/src/mesa/pipe/softpipe/sp_tex_layout.c
@@ -33,6 +33,7 @@
#include "macros.h"
#include "pipe/p_state.h"
#include "pipe/p_context.h"
+#include "pipe/p_defines.h"
#include "sp_tex_layout.h"
@@ -250,18 +251,18 @@ softpipe_mipmap_tree_layout(struct pipe_context *pipe, struct pipe_mipmap_tree *
switch (d) {
case 4:
switch (face) {
- case FACE_POS_X:
- case FACE_NEG_X:
+ case PIPE_TEX_FACE_POS_X:
+ case PIPE_TEX_FACE_NEG_X:
x += step_offsets[face][0] * d;
y += step_offsets[face][1] * d;
break;
- case FACE_POS_Y:
- case FACE_NEG_Y:
+ case PIPE_TEX_FACE_POS_Y:
+ case PIPE_TEX_FACE_NEG_Y:
y += 12;
x -= 8;
break;
- case FACE_POS_Z:
- case FACE_NEG_Z:
+ case PIPE_TEX_FACE_POS_Z:
+ case PIPE_TEX_FACE_NEG_Z:
y = mt->total_height - 4;
x = (face - 4) * 8;
break;