diff options
author | Brian Paul <[email protected]> | 2010-12-03 09:42:37 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-12-03 09:44:30 -0700 |
commit | dbf996f30856c000e18e3700f741d4e92561b4ec (patch) | |
tree | 1f73c08cc9556ea022a607c710e599c52167b016 /src | |
parent | cd431a12bf1f0c47dac6bf10c2d9edb5726fe6fe (diff) |
llvmpipe: fix broken stencil writemask
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32070
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_depth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |