g3dvl: Flag textures holding incoming data as dynamic.
authorYounes Manton <younes.m@gmail.com>
Fri, 5 Dec 2008 07:26:47 +0000 (02:26 -0500)
committerYounes Manton <younes.m@gmail.com>
Sat, 10 Jan 2009 18:52:05 +0000 (13:52 -0500)
src/gallium/state_trackers/g3dvl/vl_r16snorm_mc_buf.c

index 650528e..1583673 100644 (file)
@@ -1069,7 +1069,7 @@ static int vlInit
        template.depth[0] = 1;
        template.compressed = 0;
        pf_get_block(template.format, &template.block);
-       template.tex_usage = PIPE_TEXTURE_USAGE_SAMPLER;
+       template.tex_usage = PIPE_TEXTURE_USAGE_SAMPLER | PIPE_TEXTURE_USAGE_DYNAMIC;
 
        for (i = 0; i < NUM_BUF_SETS; ++i)
                mc->textures[i][0] = pipe->screen->texture_create(pipe->screen, &template);