aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-05 23:15:52 +0000
committerDave Airlie <[email protected]>2017-11-06 01:11:00 +0000
commit3a0d0982522a995f15553d88cfef1c11de63a16c (patch)
tree2b398f1efcdc2f9b3ba7b8d316a9748ab005d38f /src/amd/vulkan/radv_meta.c
parentb48063a2f2682f62c096e1ea49b2b015eea8cfcc (diff)
radv: add helper for setting a descriptor.
This is just a simple refactor. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta.c')
-rw-r--r--src/amd/vulkan/radv_meta.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c
index 3f57618ad28..80c5eb28cbe 100644
--- a/src/amd/vulkan/radv_meta.c
+++ b/src/amd/vulkan/radv_meta.c
@@ -124,8 +124,7 @@ radv_meta_restore(const struct radv_meta_saved_state *state,
}
if (state->flags & RADV_META_SAVE_DESCRIPTORS) {
- cmd_buffer->state.descriptors[0] = state->old_descriptor_set0;
- cmd_buffer->state.descriptors_dirty |= (1 << 0);
+ radv_set_descriptor_set(cmd_buffer, state->old_descriptor_set0, 0);
}
if (state->flags & RADV_META_SAVE_CONSTANTS) {