projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b21bde
)
cell: Fix bus error when there is no depth buffer
author
Ian Romanick
<idr@us.ibm.com>
Fri, 21 Mar 2008 00:36:05 +0000
(17:36 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Fri, 21 Mar 2008 00:37:26 +0000
(17:37 -0700)
src/gallium/drivers/cell/spu/spu_tri.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/cell/spu/spu_tri.c
b/src/gallium/drivers/cell/spu/spu_tri.c
index c9f8cadcda372bc80f66de62aca52bcc09705127..c4272d6e93c4891fefea7222c76b32f9a0380075 100644
(file)
--- 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,