Module: Mesa Branch: master Commit: 21d8fa275966ed56be48648d1847c8ded92534bc URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=21d8fa275966ed56be48648d1847c8ded92534bc
Author: Roland Scheidegger <[email protected]> Date: Wed Aug 21 16:54:58 2013 +0200 gallivm: fix rho calculation for 1d case Was using wrong (undefined) vector element (the elements are at 0/2 position, not 0/1). Reviewed-by: Jose Fonseca <[email protected]> --- src/gallium/auxiliary/gallivm/lp_bld_sample.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index 8c5189d..d339aba 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c @@ -395,7 +395,7 @@ lp_build_rho(struct lp_build_sample_context *bld, if (dims < 2) { rho_xvec = lp_build_swizzle_aos(coord_bld, ddx_ddy[0], swizzle0); - rho_yvec = lp_build_swizzle_aos(coord_bld, ddx_ddy[0], swizzle1); + rho_yvec = lp_build_swizzle_aos(coord_bld, ddx_ddy[0], swizzle2); } else if (dims == 2) { static const unsigned char swizzle02[] = { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
