diff options
author | Ian Romanick <[email protected]> | 2008-03-20 17:36:05 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2008-03-20 17:37:26 -0700 |
commit | df1d6e2410dbc6af66ca416124587918b9764ee8 (patch) | |
tree | ff95a8ee9ed10039fcfd81bfcff81a4e61514bae /src/gallium/drivers/cell/spu | |
parent | 2b21bde3b1fa6fe357a3a5adc6249e89d6915524 (diff) |
cell: Fix bus error when there is no depth buffer
Diffstat (limited to 'src/gallium/drivers/cell/spu')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_tri.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_tri.c b/src/gallium/drivers/cell/spu/spu_tri.c index c9f8cadcda3..c4272d6e93c 100644 --- a/src/gallium/drivers/cell/spu/spu_tri.c +++ b/src/gallium/drivers/cell/spu/spu_tri.c @@ -261,6 +261,9 @@ do_depth_test(int x, int y, mask_t quadmask) float4 zvals; mask_t mask; + if (spu.fb.depth_format == PIPE_FORMAT_NONE) + return quadmask; + zvals.v = eval_z((float) x, (float) y); mask = (mask_t) spu_do_depth_stencil(x - setup.cliprect_minx, |