mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
r600g: fixup the usage flag for the flushed depth texture
This commit is contained in:
parent
0efd564a09
commit
c4993d15eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue