summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/spu/spu_tile.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-20 15:00:18 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-20 15:00:18 -0700
commit661be1ae7b1cd5837d8e7224a5ebe1b8d428137e (patch)
tree7af1511e087e68fde9a27560f631fa7a7d310724 /src/mesa/pipe/cell/spu/spu_tile.h
parent45b5d3b1fc996e0f460ea163e4f4b3e750e8914f (diff)
Cell: use depth/stencil state to enable ztest
Move z-test code into do_depth_test(). Add ZSIZE symbol to support 2 or 4-byte Z values.
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_tile.h')
-rw-r--r--src/mesa/pipe/cell/spu/spu_tile.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_tile.h b/src/mesa/pipe/cell/spu/spu_tile.h
index 637923764b..7c288a1f91 100644
--- a/src/mesa/pipe/cell/spu/spu_tile.h
+++ b/src/mesa/pipe/cell/spu/spu_tile.h
@@ -40,7 +40,11 @@
extern uint ctile[TILE_SIZE][TILE_SIZE] ALIGN16_ATTRIB;
+#if ZSIZE == 2
extern ushort ztile[TILE_SIZE][TILE_SIZE] ALIGN16_ATTRIB;
+#else
+extern uint ztile[TILE_SIZE][TILE_SIZE] ALIGN16_ATTRIB;
+#endif
#define TILE_STATUS_CLEAR 1
@@ -61,7 +65,13 @@ void
clear_tile(uint tile[TILE_SIZE][TILE_SIZE], uint value);
void
-clear_tile_z(ushort tile[TILE_SIZE][TILE_SIZE], uint value);
+clear_tile_z(
+#if ZSIZE == 2
+ ushort tile[TILE_SIZE][TILE_SIZE],
+#else
+ uint tile[TILE_SIZE][TILE_SIZE],
+#endif
+ uint value);
#endif /* SPU_TILE_H */