python/regress: Do not create zbuf for vertex shader test.
authorMichal Krol <michal@vmware.com>
Thu, 2 Apr 2009 07:59:04 +0000 (09:59 +0200)
committerMichal Krol <michal@vmware.com>
Thu, 2 Apr 2009 08:00:11 +0000 (10:00 +0200)
src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py

index 196fcc2..362dec3 100644 (file)
@@ -59,7 +59,7 @@ def test(dev, name):
 
     # depth/stencil/alpha
     depth_stencil_alpha = DepthStencilAlpha()
-    depth_stencil_alpha.depth.enabled = 1
+    depth_stencil_alpha.depth.enabled = 0
     depth_stencil_alpha.depth.writemask = 1
     depth_stencil_alpha.depth.func = PIPE_FUNC_LESS
     ctx.set_depth_stencil_alpha(depth_stencil_alpha)
@@ -116,20 +116,13 @@ def test(dev, name):
         width, height,
         tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
     ).get_surface()
-    zbuf = dev.texture_create(
-        PIPE_FORMAT_Z32_UNORM, 
-        width, height,
-        tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL,
-    ).get_surface()
     fb = Framebuffer()
     fb.width = width
     fb.height = height
     fb.nr_cbufs = 1
     fb.set_cbuf(0, cbuf)
-    fb.set_zsbuf(zbuf)
     ctx.set_framebuffer(fb)
     ctx.surface_clear(cbuf, 0x80808080)
-    ctx.surface_clear(zbuf, 0xffffffff)
 
     # vertex shader
     vs = Shader(file('vert-' + name + '.sh', 'rt').read())