projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a1ec5
)
cell: Correctly load stencil for PIPE_FORMAT_S8Z24_UNORM
author
Ian Romanick
<idr@us.ibm.com>
Tue, 18 Mar 2008 22:59:06 +0000
(15:59 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Tue, 18 Mar 2008 23:00:49 +0000
(16:00 -0700)
src/gallium/drivers/cell/spu/spu_per_fragment_op.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/cell/spu/spu_per_fragment_op.c
b/src/gallium/drivers/cell/spu/spu_per_fragment_op.c
index
06d68f5
..
b4cffee
100644
(file)
--- a/
src/gallium/drivers/cell/spu/spu_per_fragment_op.c
+++ b/
src/gallium/drivers/cell/spu/spu_per_fragment_op.c
@@
-87,10
+87,9
@@
read_ds_quad(tile_t *buffer, unsigned x, unsigned y,
case PIPE_FORMAT_S8Z24_UNORM: {
qword *ptr = (qword *) &buffer->ui4[iy][ix];
- qword mask = si_fsmbi(0x7777);
- *depth = si_and(*ptr,
mask
);
- *stencil = si_
rotmai(si_andc(*ptr, mask), -24
);
+ *depth = si_and(*ptr,
si_fsmbi(0x7777)
);
+ *stencil = si_
andi(si_roti(*ptr, 8), 0x0ff
);
break;
}