progs/gallium/raw: Update symbols.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 12 Apr 2010 06:09:18 +0000 (15:09 +0900)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 12 Apr 2010 06:32:23 +0000 (15:32 +0900)
Untested -- just the same changes done to progs/gallium/python.

progs/gallium/raw/clear.c
progs/gallium/trivial/quad-tex.c
progs/gallium/trivial/tri.c

index 5ef5254edc982dbbb2516520ecb68a8d6eb76e66..706e3be372833d5eb042abc787ef7979c86a264c 100644 (file)
@@ -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);
 
index 553f5582e7e49790f30e531b9a4db1e5e6356f51..7ad157c5ac79ac0006e0276b6ecad49fd60b103f 100644 (file)
@@ -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 */
index cae1bdb1b1c4b17e5d4cc9c04895c87aaf6bb562..6286aefe319c45b42ff4b947b5d0d442770d35bd 100644 (file)
@@ -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 */