summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-04-02 09:59:04 +0200
committerMichal Krol <michal@vmware.com>2009-04-02 10:00:11 +0200
commitfbabeb9b56d2e4691ae39339a805d24e860603bb (patch)
treef483df3eb2aaebec44fe6a1e43eb6c070fe8ab97 /src/gallium/state_trackers/python
parent336a4f84e87908692a8c9424f6f5d27dca30ea95 (diff)
python/regress: Do not create zbuf for vertex shader test.
Diffstat (limited to 'src/gallium/state_trackers/python')
-rw-r--r--src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py
index 196fcc2d98..362dec3b9c 100644
--- a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py
+++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py
@@ -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())