Mesa (master): llvmpipe: fix transposed stencil ref / values comparison

Brian Paul brianp at kemper.freedesktop.org
Fri Apr 9 16:54:41 UTC 2010


Module: Mesa
Branch: master
Commit: 7a01b13324f9d25a67f81ac370eb50e36c032ad4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a01b13324f9d25a67f81ac370eb50e36c032ad4

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Apr  9 10:52:48 2010 -0600

llvmpipe: fix transposed stencil ref / values comparison

---

 src/gallium/auxiliary/gallivm/lp_bld_depth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_depth.c b/src/gallium/auxiliary/gallivm/lp_bld_depth.c
index c6d0e4b..564ea2e 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_depth.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_depth.c
@@ -116,7 +116,7 @@ lp_build_stencil_test_single(struct lp_build_context *bld,
       stencilVals = LLVMBuildAnd(bld->builder, stencilVals, valuemask, "");
    }
 
-   res = lp_build_cmp(bld, stencil->func, stencilVals, stencilRef);
+   res = lp_build_cmp(bld, stencil->func, stencilRef, stencilVals);
 
    return res;
 }




More information about the mesa-commit mailing list