VkResult radv_device_init_meta_bufimage_state(struct radv_device *device);
void radv_device_finish_meta_bufimage_state(struct radv_device *device);
-void radv_meta_begin_bufimage(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save);
-void radv_meta_end_bufimage(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save);
-void radv_meta_begin_itoi(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save);
-void radv_meta_end_itoi(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save);
-void radv_meta_begin_cleari(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save);
-void radv_meta_end_cleari(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save);
void radv_meta_image_to_buffer(struct radv_cmd_buffer *cmd_buffer,
struct radv_meta_blit2d_surf *src,
struct radv_meta_blit2d_buffer *dst,
return result;
}
-void
-radv_meta_begin_itoi(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save)
-{
- radv_meta_save_compute(save, cmd_buffer, 16);
-}
-
-void
-radv_meta_end_itoi(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save)
-{
- radv_meta_restore_compute(save, cmd_buffer, 16);
-}
-
-void
-radv_meta_begin_bufimage(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save)
-{
- radv_meta_save_compute(save, cmd_buffer, 12);
-}
-
-void
-radv_meta_end_bufimage(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save)
-{
- radv_meta_restore_compute(save, cmd_buffer, 12);
-}
-
-void
-radv_meta_begin_cleari(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save)
-{
- radv_meta_save_compute(save, cmd_buffer, 16);
-}
-
-void
-radv_meta_end_cleari(struct radv_cmd_buffer *cmd_buffer,
- struct radv_meta_saved_compute_state *save)
-{
- radv_meta_restore_compute(save, cmd_buffer, 16);
-}
-
static void
create_iview(struct radv_cmd_buffer *cmd_buffer,
struct radv_meta_blit2d_surf *surf,
bool cs = cmd_buffer->queue_family_index == RADV_QUEUE_COMPUTE;
if (cs)
- radv_meta_begin_cleari(cmd_buffer, &saved_state.compute);
+ radv_meta_save_compute(&saved_state.compute, cmd_buffer, 16);
else
radv_meta_save_graphics_reset_vport_scissor_novertex(&saved_state.gfx, cmd_buffer);
rangeCount, pRanges, cs);
if (cs)
- radv_meta_end_cleari(cmd_buffer, &saved_state.compute);
+ radv_meta_restore_compute(&saved_state.compute, cmd_buffer, 16);
else
radv_meta_restore(&saved_state.gfx, cmd_buffer);
}
assert(image->info.samples == 1);
if (cs)
- radv_meta_begin_bufimage(cmd_buffer, &saved_state.compute);
+ radv_meta_save_compute(&saved_state.compute, cmd_buffer, 12);
else
radv_meta_save_graphics_reset_vport_scissor_novertex(&saved_state.gfx, cmd_buffer);
}
}
if (cs)
- radv_meta_end_bufimage(cmd_buffer, &saved_state.compute);
+ radv_meta_restore_compute(&saved_state.compute, cmd_buffer, 12);
else
radv_meta_restore(&saved_state.gfx, cmd_buffer);
}
{
struct radv_meta_saved_compute_state saved_state;
- radv_meta_begin_bufimage(cmd_buffer, &saved_state);
+ radv_meta_save_compute(&saved_state, cmd_buffer, 12);
+
for (unsigned r = 0; r < regionCount; r++) {
/**
slice_array++;
}
}
- radv_meta_end_bufimage(cmd_buffer, &saved_state);
+ radv_meta_restore_compute(&saved_state, cmd_buffer, 12);
}
void radv_CmdCopyImageToBuffer(
*/
assert(src_image->info.samples == dest_image->info.samples);
if (cs)
- radv_meta_begin_itoi(cmd_buffer, &saved_state.compute);
+ radv_meta_save_compute(&saved_state.compute, cmd_buffer, 16);
else
radv_meta_save_graphics_reset_vport_scissor_novertex(&saved_state.gfx, cmd_buffer);
}
if (cs)
- radv_meta_end_itoi(cmd_buffer, &saved_state.compute);
+ radv_meta_restore_compute(&saved_state.compute, cmd_buffer, 16);
else
radv_meta_restore(&saved_state.gfx, cmd_buffer);
}