radv: remove unused radv_meta_saved_state::vertex_saved field
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 6 Sep 2017 13:38:59 +0000 (15:38 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 Sep 2017 08:01:21 +0000 (10:01 +0200)
It's always false.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta.c
src/amd/vulkan/radv_meta.h

index af56f493b422b5613512f66a9b32da1d7ab7a729..b17076703aef59fd78081eedf98f7effa000a26b 100644 (file)
@@ -43,7 +43,6 @@ radv_meta_save_novertex(struct radv_meta_saved_state *state,
                                dynamic_mask);
 
        memcpy(state->push_constants, cmd_buffer->push_constants, MAX_PUSH_CONSTANTS_SIZE);
-       state->vertex_saved = false;
 }
 
 void
@@ -53,11 +52,6 @@ radv_meta_restore(const struct radv_meta_saved_state *state,
        radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer), VK_PIPELINE_BIND_POINT_GRAPHICS,
                             radv_pipeline_to_handle(state->old_pipeline));
        cmd_buffer->state.descriptors[0] = state->old_descriptor_set0;
-       if (state->vertex_saved) {
-               memcpy(cmd_buffer->state.vertex_bindings, state->old_vertex_bindings,
-                      sizeof(state->old_vertex_bindings));
-               cmd_buffer->state.vb_dirty |= (1 << RADV_META_VERTEX_BINDING_COUNT) - 1;
-       }
 
        cmd_buffer->state.dirty |= RADV_CMD_DIRTY_PIPELINE;
 
index 45a91f76a72bc5b33dd1ea1eaba440a27a53b047..12b873ff7cadf540cc4d4dd7853d8cb4fad972a2 100644 (file)
@@ -35,14 +35,12 @@ extern "C" {
 #define RADV_META_VERTEX_BINDING_COUNT 2
 
 struct radv_meta_saved_state {
-       bool vertex_saved;
        /**
         * Bitmask of (1 << VK_DYNAMIC_STATE_*). Defines the set of saved dynamic
         * state.
         */
        uint32_t dynamic_mask;
        struct radv_dynamic_state dynamic;
-       struct radv_vertex_binding old_vertex_bindings[RADV_META_VERTEX_BINDING_COUNT];
        struct radv_descriptor_set *old_descriptor_set0;
        struct radv_pipeline *old_pipeline;