From: Samuel Pitoiset Date: Wed, 8 Nov 2017 11:52:31 +0000 (+0100) Subject: radv: do not emit the framebuffer when restoring a pass X-Git-Tag: upstream/18.1.0~4151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be01197d8d1ab674de81bbf0b203521ad87fb107;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 2bfaeb3..8aff0e2 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; } }