From: Ian Romanick Date: Tue, 18 Mar 2008 22:59:06 +0000 (-0700) Subject: cell: Correctly load stencil for PIPE_FORMAT_S8Z24_UNORM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa69a6e1bb7a1fe96848456255e5370f1904706d;p=mesa.git cell: Correctly load stencil for PIPE_FORMAT_S8Z24_UNORM --- 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 06d68f5604b..b4cffeeb32a 100644 --- 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; }