diff options
Diffstat (limited to 'progs/gallium/python/tests/texture_transfer.py')
-rwxr-xr-x | progs/gallium/python/tests/texture_transfer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/gallium/python/tests/texture_transfer.py b/progs/gallium/python/tests/texture_transfer.py index 639d3d362c1..4aa3d6c709b 100755 --- a/progs/gallium/python/tests/texture_transfer.py +++ b/progs/gallium/python/tests/texture_transfer.py @@ -72,20 +72,20 @@ class TextureTest(TestCase): level = self.level zslice = self.zslice - tex_usage = PIPE_TEXTURE_USAGE_SAMPLER + bind = PIPE_BIND_SAMPLER_VIEW geom_flags = 0 - if not dev.is_format_supported(format, target, tex_usage, geom_flags): + if not dev.is_format_supported(format, target, bind, geom_flags): raise TestSkip # textures - texture = dev.texture_create( + texture = dev.resource_create( target = target, format = format, width = width, height = height, depth = depth, last_level = last_level, - tex_usage = tex_usage, + bind = bind, ) surface = texture.get_surface(face, level, zslice) |