python/tests: Fixed tri.py for API and TGSI syntax changes.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 19 Sep 2010 17:25:21 +0000 (19:25 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 20 Sep 2010 19:43:01 +0000 (21:43 +0200)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/tests/python/samples/tri.py

index fed929d4200147db0793e20cc7332f28396ecd07..6d17c88c0571b22c049f3d056b10e6f46b1336cb 100644 (file)
@@ -88,8 +88,8 @@ def test(dev):
 
     # rasterizer
     rasterizer = Rasterizer()
-    rasterizer.front_winding = PIPE_WINDING_CW
-    rasterizer.cull_mode = PIPE_WINDING_NONE
+    rasterizer.front_ccw = False
+    rasterizer.cull_face = PIPE_FACE_NONE
     rasterizer.scissor = 1
     ctx.set_rasterizer(rasterizer)
 
@@ -161,8 +161,8 @@ def test(dev):
     # vertex shader
     vs = Shader('''
         VERT
-        DCL IN[0], POSITION, CONSTANT
-        DCL IN[1], COLOR, CONSTANT
+        DCL IN[0]
+        DCL IN[1]
         DCL OUT[0], POSITION, CONSTANT
         DCL OUT[1], COLOR, CONSTANT
         0:MOV OUT[0], IN[0]