r600g: fixup the usage flag for the flushed depth texture
authorMarek Olšák <maraeo@gmail.com>
Sun, 12 Aug 2012 16:22:42 +0000 (18:22 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 16 Aug 2012 18:44:53 +0000 (20:44 +0200)
src/gallium/drivers/r600/r600_texture.c

index f4c30de1dd1e08f02fed23d389c1a1e235c41134..d957b26f3dd350b609d55c54235887567eb4785b 100644 (file)
@@ -429,7 +429,7 @@ bool r600_init_flushed_depth_texture(struct pipe_context *ctx,
        resource.array_size = texture->array_size;
        resource.last_level = texture->last_level;
        resource.nr_samples = texture->nr_samples;
-       resource.usage = staging ? PIPE_USAGE_DYNAMIC : PIPE_USAGE_DEFAULT;
+       resource.usage = staging ? PIPE_USAGE_STAGING : PIPE_USAGE_STATIC;
        resource.bind = texture->bind & ~PIPE_BIND_DEPTH_STENCIL;
        resource.flags = texture->flags | R600_RESOURCE_FLAG_FLUSHED_DEPTH;