summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell/spu/spu_tile.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2008-03-18 10:26:45 -0700
committerIan Romanick <idr@us.ibm.com>2008-03-18 10:28:39 -0700
commit5fdaebc51c5433ebc73f89690fd435dae2fcef60 (patch)
tree9f979c084d4ff1ca993a25f498dd6303c584c8b5 /src/gallium/drivers/cell/spu/spu_tile.h
parentf432ac5a1126997f10072760fe5afbf1b96f44f7 (diff)
cell: Minor changes to make stencil not crash
I'm not sure these are quite correct. The reflect demo doesn't assert anymore, but it doesn't produce correct results either. SPE-based vertex shader code needs to be disabled for relfect to run.
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_tile.h')
-rw-r--r--src/gallium/drivers/cell/spu/spu_tile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_tile.h b/src/gallium/drivers/cell/spu/spu_tile.h
index 3105b848fd..1b5491112d 100644
--- a/src/gallium/drivers/cell/spu/spu_tile.h
+++ b/src/gallium/drivers/cell/spu/spu_tile.h
@@ -56,13 +56,13 @@ clear_c_tile(tile_t *ctile)
static INLINE void
clear_z_tile(tile_t *ztile)
{
- if (spu.fb.depth_format == PIPE_FORMAT_Z16_UNORM) {
+ if (spu.fb.zsize == 2) {
memset16((ushort*) ztile->us,
spu.fb.depth_clear_value,
TILE_SIZE * TILE_SIZE);
}
else {
- ASSERT(spu.fb.depth_format == PIPE_FORMAT_Z32_UNORM);
+ ASSERT(spu.fb.zsize != 0);
memset32((uint*) ztile->ui,
spu.fb.depth_clear_value,
TILE_SIZE * TILE_SIZE);