From: Ian Romanick Date: Fri, 21 Mar 2008 00:36:05 +0000 (-0700) Subject: cell: Fix bus error when there is no depth buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df1d6e2410dbc6af66ca416124587918b9764ee8;p=mesa.git cell: Fix bus error when there is no depth buffer --- 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,