nv40: fix fp depth write
authorBen Skeggs <skeggsb@gmail.com>
Sun, 23 Mar 2008 07:20:04 +0000 (18:20 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 23 Mar 2008 07:20:04 +0000 (18:20 +1100)
src/gallium/drivers/nv40/nv40_fragprog.c

index 6d8a29ed9c0aa95ebe580506d5f62d1f61a70717..87bca41cf64a9a4d7abaa73a75d6ded7bd7952ea 100644 (file)
@@ -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;