st/nine: Fix tweening factor computation
authorAxel Davy <axel.davy@ens.fr>
Sat, 24 Sep 2016 21:55:57 +0000 (23:55 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:50 +0000 (23:43 +0200)
The computation was reversed.
Deduced by tests on windows.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_ff.c

index 11c1aa7220ea0b7a7d5e5b58b6b4a6c7365bc8b7..12d422b8696bdc0d1b1044f55b46cbbd5bfbb3ed 100644 (file)
@@ -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);
             }
         }