Mesa (master): gallivm: fix rho calculation for 1d case
Roland Scheidegger
sroland at kemper.freedesktop.org
Wed Aug 21 20:06:39 UTC 2013
Module: Mesa
Branch: master
Commit: 21d8fa275966ed56be48648d1847c8ded92534bc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=21d8fa275966ed56be48648d1847c8ded92534bc
Author: Roland Scheidegger <sroland at vmware.com>
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 <jfonseca at vmware.com>
---
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[] = {
More information about the mesa-commit
mailing list