diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-08 12:52:31 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-13 11:04:22 +0100 |
commit | be01197d8d1ab674de81bbf0b203521ad87fb107 (patch) | |
tree | 5d17ff6aab3cbd331135349b38829c3b405b96ae /src/amd | |
parent | f87c58dde38902d9bfb5a046b4bf1b5e56c55fcf (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |