r300-gallium: Point size is at OVM position 15, not 1.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 15 Apr 2009 20:25:20 +0000 (13:25 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 15 Apr 2009 22:10:23 +0000 (15:10 -0700)
Or so sayeth osiris, and he would know. :3

src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_state_tcl.c

index ce7ab6f16a011ad4953045c3a1d10bbb72d306e0..c4c9784a00c1302eb7b256bb176edd6f50d931e8 100644 (file)
@@ -86,7 +86,7 @@ static void r300_vs_tab_routes(struct r300_context* r300,
                     break;
                 case TGSI_SEMANTIC_PSIZE:
                     psize = TRUE;
-                    tab[i] = 1;
+                    tab[i] = 15;
                     break;
                 case TGSI_SEMANTIC_FOG:
                     fog = TRUE;
index fc865a2b6371a0ed7270d2f72b16b2906ad6373f..bb96e2ad67f58b5f351cccfc1f013f8eb6be6931 100644 (file)
@@ -40,6 +40,9 @@ static void r300_vs_declare(struct r300_vs_asm* assembler,
                     /* XXX multiple? */
                     assembler->tab[decl->DeclarationRange.First] = 6;
                     break;
+                case TGSI_SEMANTIC_PSIZE:
+                    assembler->tab[decl->DeclarationRange.First] = 15;
+                    break;
                 default:
                     debug_printf("r300: vs: Bad semantic declaration %d\n",
                         decl->Semantic.SemanticName);