summaryrefslogtreecommitdiff
path: root/progs/gallium/raw/clear.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/gallium/raw/clear.c')
-rw-r--r--progs/gallium/raw/clear.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/progs/gallium/raw/clear.c b/progs/gallium/raw/clear.c
index 5ef5254edc..706e3be372 100644
--- a/progs/gallium/raw/clear.c
+++ b/progs/gallium/raw/clear.c
@@ -56,17 +56,17 @@ int main( int argc, char *argv[] )
templat.depth0 = 1;
templat.last_level = 0;
templat.nr_samples = 1;
- templat.tex_usage = (PIPE_TEXTURE_USAGE_RENDER_TARGET |
- PIPE_TEXTURE_USAGE_DISPLAY_TARGET);
+ templat.bind = (PIPE_BIND_RENDER_TARGET |
+ PIPE_BIND_DISPLAY_TARGET);
- tex = screen->texture_create(screen,
+ tex = screen->resource_create(screen,
&templat);
if (tex == NULL)
exit(4);
surf = screen->get_tex_surface(screen, tex, 0, 0, 0,
- PIPE_TEXTURE_USAGE_RENDER_TARGET |
- PIPE_TEXTURE_USAGE_DISPLAY_TARGET);
+ PIPE_BIND_RENDER_TARGET |
+ PIPE_BIND_DISPLAY_TARGET);
if (surf == NULL)
exit(5);