From 028dab95f6805dee5b7bce51ece3c55a59c70c9f Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 24 Sep 2016 23:55:57 +0200 Subject: st/nine: Fix tweening factor computation The computation was reversed. Deduced by tests on windows. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- cgit v1.2.3