summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_meta.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-04 13:48:31 -0800
committerChad Versace <[email protected]>2015-11-04 15:15:19 -0800
commit7f82cc718f0faffc23a790914710f0b97db377d1 (patch)
tree59f4d97238cd04c64a45c23762f67279a643e261 /src/vulkan/anv_meta.h
parent2bdb9e2ed9eab016220f1e365dd135f023f1920f (diff)
anv/meta: Use consistent naming for dynamic state mask
Consistently rename bitmasks of Vulkan dynamic state to 'dynamic_mask'. anv_meta_saved_state::dynamic_flags -> dynamic_mask anv_meta_save(dynamic_state) -> dynamic_mask
Diffstat (limited to 'src/vulkan/anv_meta.h')
-rw-r--r--src/vulkan/anv_meta.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vulkan/anv_meta.h b/src/vulkan/anv_meta.h
index 2f26d944516..d798c6e909f 100644
--- a/src/vulkan/anv_meta.h
+++ b/src/vulkan/anv_meta.h
@@ -35,14 +35,19 @@ struct anv_meta_saved_state {
struct anv_vertex_binding old_vertex_bindings[ANV_META_VERTEX_BINDING_COUNT];
struct anv_descriptor_set *old_descriptor_set0;
struct anv_pipeline *old_pipeline;
- uint32_t dynamic_flags;
+
+ /**
+ * Bitmask of (1 << VK_DYNAMIC_STATE_*). Defines the set of saved dynamic
+ * state.
+ */
+ uint32_t dynamic_mask;
struct anv_dynamic_state dynamic;
};
void
anv_meta_save(struct anv_meta_saved_state *state,
const struct anv_cmd_buffer *cmd_buffer,
- uint32_t dynamic_state);
+ uint32_t dynamic_mask);
void
anv_meta_restore(const struct anv_meta_saved_state *state,