From be01197d8d1ab674de81bbf0b203521ad87fb107 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 8 Nov 2017 12:52:31 +0100 Subject: [PATCH] radv: do not emit the framebuffer when restoring a pass Instead just dirty RADV_CMD_DIRTY_FRAMEBUFFER and it will be re-emitted if necessary before the next draw. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 2bfaeb33930..8aff0e2d88f 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -147,7 +147,7 @@ radv_meta_restore(const struct radv_meta_saved_state *state, cmd_buffer->state.attachments = state->attachments; cmd_buffer->state.render_area = state->render_area; if (state->subpass) - radv_emit_framebuffer_state(cmd_buffer); + cmd_buffer->state.dirty |= RADV_CMD_DIRTY_FRAMEBUFFER; } } -- 2.30.2