summaryrefslogtreecommitdiffstats
path: root/progs/gallium/python/samples
diff options
context:
space:
mode:
Diffstat (limited to 'progs/gallium/python/samples')
-rw-r--r--progs/gallium/python/samples/gs.py8
-rw-r--r--progs/gallium/python/samples/tri.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/progs/gallium/python/samples/gs.py b/progs/gallium/python/samples/gs.py
index 5c22269b183..936c0b3f33a 100644
--- a/progs/gallium/python/samples/gs.py
+++ b/progs/gallium/python/samples/gs.py
@@ -133,15 +133,15 @@ def test(dev):
ctx.set_clip(clip)
# framebuffer
- cbuf = dev.texture_create(
+ cbuf = dev.resource_create(
PIPE_FORMAT_B8G8R8X8_UNORM,
width, height,
- tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET,
+ bind=PIPE_BIND_RENDER_TARGET,
).get_surface()
- zbuf = dev.texture_create(
+ zbuf = dev.resource_create(
PIPE_FORMAT_Z32_UNORM,
width, height,
- tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL,
+ bind=PIPE_BIND_DEPTH_STENCIL,
).get_surface()
fb = Framebuffer()
fb.width = width
diff --git a/progs/gallium/python/samples/tri.py b/progs/gallium/python/samples/tri.py
index 8cc272db812..fed929d4200 100644
--- a/progs/gallium/python/samples/tri.py
+++ b/progs/gallium/python/samples/tri.py
@@ -134,15 +134,15 @@ def test(dev):
ctx.set_clip(clip)
# framebuffer
- cbuf = dev.texture_create(
+ cbuf = dev.resource_create(
PIPE_FORMAT_B8G8R8X8_UNORM,
width, height,
- tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET,
+ bind=PIPE_BIND_RENDER_TARGET,
).get_surface()
- zbuf = dev.texture_create(
+ zbuf = dev.resource_create(
PIPE_FORMAT_Z32_UNORM,
width, height,
- tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL,
+ bind=PIPE_BIND_DEPTH_STENCIL,
).get_surface()
fb = Framebuffer()
fb.width = width