summaryrefslogtreecommitdiff
path: root/progs/gallium/trivial
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-12 15:09:18 +0900
committerJosé Fonseca <jfonseca@vmware.com>2010-04-12 15:32:23 +0900
commitcd70b6bd9ea8bfc4342f45340a1fedfaed81257f (patch)
treebf984bb2193fc189a167197891535b438669756d /progs/gallium/trivial
parent19211bb5b8fa406fde294ec84f814e3b7881c474 (diff)
progs/gallium/raw: Update symbols.
Untested -- just the same changes done to progs/gallium/python.
Diffstat (limited to 'progs/gallium/trivial')
-rw-r--r--progs/gallium/trivial/quad-tex.c8
-rw-r--r--progs/gallium/trivial/tri.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/progs/gallium/trivial/quad-tex.c b/progs/gallium/trivial/quad-tex.c
index 553f5582e7..7ad157c5ac 100644
--- a/progs/gallium/trivial/quad-tex.c
+++ b/progs/gallium/trivial/quad-tex.c
@@ -146,9 +146,9 @@ static void init_prog(struct program *p)
tmplt.height0 = HEIGHT;
tmplt.depth0 = 1;
tmplt.last_level = 0;
- tmplt.tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET;
+ tmplt.bind = PIPE_BIND_RENDER_TARGET;
- p->target = p->screen->texture_create(p->screen, &tmplt);
+ p->target = p->screen->resource_create(p->screen, &tmplt);
}
/* sampler texture */
@@ -165,9 +165,9 @@ static void init_prog(struct program *p)
t_tmplt.height0 = 2;
t_tmplt.depth0 = 1;
t_tmplt.last_level = 0;
- t_tmplt.tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET;
+ t_tmplt.bind = PIPE_BIND_RENDER_TARGET;
- p->tex = p->screen->texture_create(p->screen, &t_tmplt);
+ p->tex = p->screen->resource_create(p->screen, &t_tmplt);
t = p->pipe->get_tex_transfer(p->pipe, p->tex,
0, 0, 0, /* face, level, zslice */
diff --git a/progs/gallium/trivial/tri.c b/progs/gallium/trivial/tri.c
index cae1bdb1b1..6286aefe31 100644
--- a/progs/gallium/trivial/tri.c
+++ b/progs/gallium/trivial/tri.c
@@ -137,9 +137,9 @@ static void init_prog(struct program *p)
tmplt.height0 = HEIGHT;
tmplt.depth0 = 1;
tmplt.last_level = 0;
- tmplt.tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET;
+ tmplt.bind = PIPE_BIND_RENDER_TARGET;
- p->target = p->screen->texture_create(p->screen, &tmplt);
+ p->target = p->screen->resource_create(p->screen, &tmplt);
}
/* disabled blending/masking */