cell: Fix bus error when there is no depth buffer

This commit is contained in:
Ian Romanick 2008-03-20 17:36:05 -07:00
parent 2b21bde3b1
commit df1d6e2410
1 changed files with 3 additions and 0 deletions

View File

@ -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,