summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-04-18 15:28:04 +1000
committerDave Airlie <[email protected]>2017-04-19 10:02:23 +1000
commit0e6d532d327a70b0ec6522754b3d8bee6312335f (patch)
treec9d0ef0d31ef8aebb25725ae9292fcf9dab79567 /src/amd/vulkan/radv_meta.h
parent60a93e11ba225a249952560499f921dffc7ff82c (diff)
radv/meta: add support for save/restore meta without vertex data.
Some of the shaders could just generate the vertex data in the shader, so add helpers to allow us to move to doing that. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta.h')
-rw-r--r--src/amd/vulkan/radv_meta.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta.h b/src/amd/vulkan/radv_meta.h
index 6cfc6134c53..8702ca4dbbd 100644
--- a/src/amd/vulkan/radv_meta.h
+++ b/src/amd/vulkan/radv_meta.h
@@ -35,6 +35,7 @@ extern "C" {
#define RADV_META_VERTEX_BINDING_COUNT 2
struct radv_meta_saved_state {
+ bool vertex_saved;
struct radv_vertex_binding old_vertex_bindings[RADV_META_VERTEX_BINDING_COUNT];
struct radv_descriptor_set *old_descriptor_set0;
struct radv_pipeline *old_pipeline;
@@ -94,6 +95,10 @@ void radv_meta_save(struct radv_meta_saved_state *state,
const struct radv_cmd_buffer *cmd_buffer,
uint32_t dynamic_mask);
+void radv_meta_save_novertex(struct radv_meta_saved_state *state,
+ const struct radv_cmd_buffer *cmd_buffer,
+ uint32_t dynamic_mask);
+
void radv_meta_restore(const struct radv_meta_saved_state *state,
struct radv_cmd_buffer *cmd_buffer);
@@ -202,6 +207,8 @@ void radv_fast_clear_flush_image_inplace(struct radv_cmd_buffer *cmd_buffer,
void radv_meta_save_graphics_reset_vport_scissor(struct radv_meta_saved_state *saved_state,
struct radv_cmd_buffer *cmd_buffer);
+void radv_meta_save_graphics_reset_vport_scissor_novertex(struct radv_meta_saved_state *saved_state,
+ struct radv_cmd_buffer *cmd_buffer);
void radv_meta_resolve_compute_image(struct radv_cmd_buffer *cmd_buffer,
struct radv_image *src_image,