nv40: workaround main swtnl breakage
authorBen Skeggs <skeggsb@gmail.com>
Mon, 17 Mar 2008 02:49:03 +0000 (13:49 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Mon, 17 Mar 2008 02:53:44 +0000 (13:53 +1100)
Not sure where the real bug is here yet, but for now this gives us correct
rendering in far more cases than previously.

src/gallium/drivers/nv40/nv40_draw.c

index ce0e0bc6f2377248b29a4485fb879abd60db222b..eb4f2395c4811e9a2f0683487e14a535a5a68c03 100644 (file)
@@ -335,7 +335,7 @@ nv40_state_vtxfmt_validate(struct nv40_context *nv40)
                emit_attrib(nv40, 5, EMIT_1F, TGSI_SEMANTIC_FOG, 0);
        }
 
-       emit_attrib(nv40, 0, EMIT_4F, TGSI_SEMANTIC_POSITION, 0);
+       emit_attrib(nv40, 0, EMIT_3F, TGSI_SEMANTIC_POSITION, 0);
 
        return FALSE;
 }