summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/tests
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-03-30 15:09:18 +0100
committerJosé Fonseca <[email protected]>2009-03-30 17:19:10 +0100
commit68342f9036d3c94ee50c4cbe5c7b36439eeb6825 (patch)
tree3c37e0d5df4c806127d4dac19baace349eefec8a /src/gallium/state_trackers/python/tests
parente08a0f479055be08a08594d723aa8837778c79f8 (diff)
python: Hide away the surface usage flags.
Surfaces are now by definition GPU views. So CPU access flags don't make any sense when creating a surface. For now we are forcing surfaces to be GPU read/write, but that will go away soon.
Diffstat (limited to 'src/gallium/state_trackers/python/tests')
-rw-r--r--src/gallium/state_trackers/python/tests/texture.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/python/tests/texture.py b/src/gallium/state_trackers/python/tests/texture.py
index ce1c66720b4..bd95f734fe7 100644
--- a/src/gallium/state_trackers/python/tests/texture.py
+++ b/src/gallium/state_trackers/python/tests/texture.py
@@ -197,7 +197,6 @@ class TextureTest(TestCase):
expected_rgba = FloatArray(height*width*4)
texture.get_surface(
- usage = PIPE_BUFFER_USAGE_CPU_READ|PIPE_BUFFER_USAGE_CPU_WRITE,
face = face,
level = level,
zslice = zslice,
@@ -213,7 +212,7 @@ class TextureTest(TestCase):
tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET,
)
- cbuf = cbuf_tex.get_surface(usage = PIPE_BUFFER_USAGE_GPU_WRITE|PIPE_BUFFER_USAGE_GPU_READ)
+ cbuf = cbuf_tex.get_surface()
fb = Framebuffer()
fb.width = width
fb.height = height
@@ -290,7 +289,7 @@ class TextureTest(TestCase):
ctx.flush()
- cbuf = cbuf_tex.get_surface(usage = PIPE_BUFFER_USAGE_CPU_READ)
+ cbuf = cbuf_tex.get_surface()
total = h*w
different = cbuf.compare_tile_rgba(x, y, w, h, expected_rgba, tol=4.0/256)