[Mesa-dev] [PATCH 1/2] radv: do not emit the framebuffer when restoring a pass

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Nov 8 11:52:31 UTC 2017


Instead just dirty RADV_CMD_DIRTY_FRAMEBUFFER and it will be
re-emitted if necessary before the next draw.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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 2bfaeb3393..8aff0e2d88 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.15.0



More information about the mesa-dev mailing list