diff options
author | Samuel Pitoiset <[email protected]> | 2019-01-29 22:18:51 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-02-04 13:17:54 +0100 |
commit | a20c2e38d840c0e46a0eec590dd7b17b3e511664 (patch) | |
tree | 098ee9e2770d074437b511779302645a680849f2 /src/amd/vulkan/radv_private.h | |
parent | a7c7d811f1916d6489467f0ed18ebd936fba26c6 (diff) |
radv: store the list of attachments for every subpass
This reworks how the depth stencil attachment is used for
simplicity. This also introduces radv_render_pass_compile()
helper that will be used for further optimizations.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index e2849b3a901..4863841a0ac 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1815,12 +1815,15 @@ struct radv_subpass_attachment { }; struct radv_subpass { + uint32_t attachment_count; + struct radv_subpass_attachment * attachments; + uint32_t input_count; uint32_t color_count; struct radv_subpass_attachment * input_attachments; struct radv_subpass_attachment * color_attachments; struct radv_subpass_attachment * resolve_attachments; - struct radv_subpass_attachment depth_stencil_attachment; + struct radv_subpass_attachment * depth_stencil_attachment; /** Subpass has at least one resolve attachment */ bool has_resolve; |