st/nine: Fix wrong mask in ff vs
authorAxel Davy <axel.davy@ens.fr>
Sun, 25 Sep 2016 14:01:57 +0000 (16:01 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:50 +0000 (23:43 +0200)
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/nine_ff.c

index 12d422b8696bdc0d1b1044f55b46cbbd5bfbb3ed..ce19b9ba3dd27c1f1b4d0a557b71729751da9dd5 100644 (file)
@@ -343,7 +343,7 @@ nine_ff_build_vs(struct NineDevice9 *device, struct vs_build_ctx *vs)
 
     /* Check which inputs we should transform. */
     for (i = 0; i < 8 * 3; i += 3) {
-        switch ((key->tc_gen >> i) & 0x3) {
+        switch ((key->tc_gen >> i) & 0x7) {
         case NINED3DTSS_TCI_CAMERASPACENORMAL:
             need_aNrm = TRUE;
             break;