From: Brian Paul Date: Fri, 3 Dec 2010 16:42:37 +0000 (-0700) Subject: llvmpipe: fix broken stencil writemask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbf996f30856c000e18e3700f741d4e92561b4ec;p=mesa.git llvmpipe: fix broken stencil writemask Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32070 --- diff --git a/src/gallium/drivers/llvmpipe/lp_bld_depth.c b/src/gallium/drivers/llvmpipe/lp_bld_depth.c index e88a21726eb..1bf741194c5 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_depth.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_depth.c @@ -269,7 +269,7 @@ lp_build_stencil_op(struct lp_build_context *bld, stencil->writemask); mask = LLVMBuildAnd(builder, mask, writemask, ""); /* res = (res & mask) | (stencilVals & ~mask) */ - res = lp_build_select_bitwise(bld, writemask, res, stencilVals); + res = lp_build_select_bitwise(bld, mask, res, stencilVals); } else { /* res = mask ? res : stencilVals */