projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0efd564
)
r600g: fixup the usage flag for the flushed depth texture
author
Marek Olšák
<maraeo@gmail.com>
Sun, 12 Aug 2012 16:22:42 +0000
(18:22 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 16 Aug 2012 18:44:53 +0000
(20:44 +0200)
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index f4c30de1dd1e08f02fed23d389c1a1e235c41134..d957b26f3dd350b609d55c54235887567eb4785b 100644
(file)
--- 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;