From 1f19aba1ea461db7bbd10d05244eb12dfc31a046 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Fri, 26 Mar 2010 11:13:01 +0100 Subject: [PATCH] nv50: fix FACE semantic check in FP input slot assignments Fixes for instance noise with material shaders in FlightGear. --- src/gallium/drivers/nv50/nv50_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index c857816b31a..d7e06c93272 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -3762,7 +3762,7 @@ nv50_program_tx_prep(struct nv50_pc *pc) p->cfg.in[n].hw = rid = aid; i = p->cfg.in[n].id; - if (p->info.input_semantic_name[n] == + if (p->info.input_semantic_name[i] == TGSI_SEMANTIC_FACE) { load_frontfacing(pc, &pc->attr[i * 4]); continue; -- 2.30.2