diff options
author | Jason Ekstrand <[email protected]> | 2016-11-15 15:25:55 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-22 13:44:55 -0800 |
commit | 1d5ac0a462ac8c7f41e1e1adb1fc5a7db6038d17 (patch) | |
tree | 80fbf2f8417adc459cff6faf413ec96be0d45fe0 /src/intel/vulkan/anv_private.h | |
parent | 140d041fac24b6140f8df8f02418b8bc1503d4a8 (diff) |
anv: Set up binding tables and surface states for input attachments
This commit adds the last remaining bits to support input attachments in
the Intel Vulkan driver. For color and depth attachments, we allocate an
input attachment surface state during vkCmdBeginRenderPass like we do for
the render target surface states. This is so that we can incorporate the
clear color and aux information as used in rendering. For stencil, we just
treat it like a regular texture because we don't there is no aux. Also,
only having to worry about at most one input attachment surface for each
attachment makes some of the vkCmdBeginRenderPass code simpler.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 4fa4f32bcbe..7b521b1268d 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1088,6 +1088,7 @@ void anv_dynamic_state_copy(struct anv_dynamic_state *dest, struct anv_attachment_state { enum isl_aux_usage aux_usage; struct anv_state color_rt_state; + struct anv_state input_att_state; VkImageAspectFlags pending_clear_aspects; VkClearValue clear_value; |