From: Ben Skeggs Date: Sun, 23 Mar 2008 07:20:04 +0000 (+1100) Subject: nv40: fix fp depth write X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1ad8c232ba31985a6f9e5b76279f2f131312d1d;p=mesa.git nv40: fix fp depth write --- diff --git a/src/gallium/drivers/nv40/nv40_fragprog.c b/src/gallium/drivers/nv40/nv40_fragprog.c index 6d8a29ed9c0..87bca41cf64 100644 --- a/src/gallium/drivers/nv40/nv40_fragprog.c +++ b/src/gallium/drivers/nv40/nv40_fragprog.c @@ -724,7 +724,7 @@ nv40_fragprog_parse_decl_output(struct nv40_fpc *fpc, hw = 1; break; case TGSI_SEMANTIC_COLOR: - switch (idx) { + switch (fdec->Semantic.SemanticIndex) { case 0: hw = 0; break; case 1: hw = 2; break; case 2: hw = 3; break;