summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-06 15:38:59 +0200
committerSamuel Pitoiset <[email protected]>2017-09-07 10:01:21 +0200
commit2408f616e80f4b5dc022a1ed650778c312f15997 (patch)
tree5a58400fc8868f00349eb0b2726f0fef725f22fb /src/amd/vulkan/radv_meta.c
parent77713a0acb09f475d29f90375777e34dbd1bb02a (diff)
radv: remove unused radv_meta_saved_state::vertex_saved field
It's always false. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta.c')
-rw-r--r--src/amd/vulkan/radv_meta.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c
index af56f493b42..b17076703ae 100644
--- a/src/amd/vulkan/radv_meta.c
+++ b/src/amd/vulkan/radv_meta.c
@@ -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;