st/xorg: getting indexes right tends to be helpful
authorZack Rusin <zackr@vmware.com>
Tue, 1 Sep 2009 23:01:05 +0000 (19:01 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 1 Sep 2009 23:01:05 +0000 (19:01 -0400)
src/gallium/state_trackers/xorg/xorg_exa_tgsi.c

index 8e26b6f4a43fb3d6c45c01fb9cdc3983ee4e789b..8876482ba1c59d6b6457fdfba330fea6562e48e7 100644 (file)
@@ -119,20 +119,20 @@ create_vs(struct pipe_context *pipe,
    if (is_composite) {
       src = ureg_DECL_vs_input(ureg,
                                TGSI_SEMANTIC_GENERIC, 1);
-      dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 0);
+      dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 1);
       ureg_MOV(ureg, dst, src);
    }
    if (is_fill) {
       src = ureg_DECL_vs_input(ureg,
                                TGSI_SEMANTIC_COLOR, 1);
-      dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0);
+      dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 1);
       ureg_MOV(ureg, dst, src);
    }
 
    if (has_mask) {
       src = ureg_DECL_vs_input(ureg,
                                TGSI_SEMANTIC_GENERIC, 2);
-      dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 1);
+      dst = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 2);
       ureg_MOV(ureg, dst, src);
    }