From: Axel Davy Date: Sat, 24 Sep 2016 21:55:57 +0000 (+0200) Subject: st/nine: Fix tweening factor computation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=028dab95f6805dee5b7bce51ece3c55a59c70c9f;p=mesa.git st/nine: Fix tweening factor computation The computation was reversed. Deduced by tests on windows. Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 11c1aa7220e..12d422b8696 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -538,11 +538,11 @@ nine_ff_build_vs(struct NineDevice9 *device, struct vs_build_ctx *vs) if (key->vertextween) { struct ureg_dst aVtx_dst = ureg_DECL_temporary(ureg); - ureg_LRP(ureg, aVtx_dst, _XXXX(_CONST(30)), vs->aVtx, vs->aVtx1); + ureg_LRP(ureg, aVtx_dst, _XXXX(_CONST(30)), vs->aVtx1, vs->aVtx); vs->aVtx = ureg_src(aVtx_dst); if (need_aNrm) { struct ureg_dst aNrm_dst = ureg_DECL_temporary(ureg); - ureg_LRP(ureg, aNrm_dst, _XXXX(_CONST(30)), vs->aNrm, vs->aNrm1); + ureg_LRP(ureg, aNrm_dst, _XXXX(_CONST(30)), vs->aNrm1, vs->aNrm); vs->aNrm = ureg_src(aNrm_dst); } }