diff options
Diffstat (limited to 'src/amd/vulkan/radv_meta.c')
-rw-r--r-- | src/amd/vulkan/radv_meta.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 3bfe49b4dab..5e619c2f181 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -73,6 +73,11 @@ radv_meta_save(struct radv_meta_saved_state *state, 1 << VK_DYNAMIC_STATE_SCISSOR; } + if (state->flags & RADV_META_SAVE_SAMPLE_LOCATIONS) { + typed_memcpy(&state->sample_location, + &cmd_buffer->state.dynamic.sample_location, 1); + } + if (state->flags & RADV_META_SAVE_COMPUTE_PIPELINE) { assert(!(state->flags & RADV_META_SAVE_GRAPHICS_PIPELINE)); @@ -131,6 +136,13 @@ radv_meta_restore(const struct radv_meta_saved_state *state, RADV_CMD_DIRTY_DYNAMIC_SCISSOR; } + if (state->flags & RADV_META_SAVE_SAMPLE_LOCATIONS) { + typed_memcpy(&cmd_buffer->state.dynamic.sample_location.locations, + &state->sample_location.locations, 1); + + cmd_buffer->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS; + } + if (state->flags & RADV_META_SAVE_COMPUTE_PIPELINE) { radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer), VK_PIPELINE_BIND_POINT_COMPUTE, |