llvmpipe: fix transposed stencil ref / values comparison
authorBrian Paul <brianp@vmware.com>
Fri, 9 Apr 2010 16:52:48 +0000 (10:52 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 9 Apr 2010 16:52:51 +0000 (10:52 -0600)
src/gallium/auxiliary/gallivm/lp_bld_depth.c

index c6d0e4bc04e1b42191ae6514d96c864c892fcb7b..564ea2e3189e68dad9fa2b9e5a1497617fb15b81 100644 (file)
@@ -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;
 }