From: Axel Davy Date: Sun, 25 Sep 2016 14:01:57 +0000 (+0200) Subject: st/nine: Fix wrong mask in ff vs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b5bed774b420c29c45e16a0d962e29a4d0ffb4e;p=mesa.git st/nine: Fix wrong mask in ff vs Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 12d422b8696..ce19b9ba3dd 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -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;