Mesa (master): r600g: fixup the usage flag for the flushed depth texture

Marek Olšák mareko at kemper.freedesktop.org
Thu Aug 16 19:00:28 UTC 2012


Module: Mesa
Branch: master
Commit: c4993d15eb07d95ac465b5f25ea96072e4b008bf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4993d15eb07d95ac465b5f25ea96072e4b008bf

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Aug 12 18:22:42 2012 +0200

r600g: fixup the usage flag for the flushed depth texture

---

 src/gallium/drivers/r600/r600_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index f4c30de..d957b26 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -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;
 




More information about the mesa-commit mailing list