diff options
author | Chad Versace <[email protected]> | 2015-10-04 09:26:25 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-04 09:26:25 -0700 |
commit | 8cb2e27c62ab958f028eb2887b84a17e95ffe8ec (patch) | |
tree | f2ccb040a2f31cfbc38986f9e124ff4305d4873b /src/vulkan/anv_meta.c | |
parent | 3694518be5817b411263c049befb85f0e882911d (diff) |
vk/0.170.2: Update VkRenderPassBeginInfo
Rename members:
attachmentCount -> clearValueCount
pAttachmentClearValues -> pClearValues
Diffstat (limited to 'src/vulkan/anv_meta.c')
-rw-r--r-- | src/vulkan/anv_meta.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index d7efdf69b62..11b8557805c 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -428,6 +428,9 @@ anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer, if (pass->has_stencil_clear_attachment) anv_finishme("stencil clear"); + /* FINISHME: Rethink how we count clear attachments in light of + * 0.138.2 -> 0.170.2 diff. + */ if (pass->num_color_clear_attachments == 0 && !pass->has_depth_clear_attachment) return; @@ -889,8 +892,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, .offset = { dest_offset.x, dest_offset.y }, .extent = { dest_extent.width, dest_extent.height }, }, - .attachmentCount = 1, - .pAttachmentClearValues = NULL, + .clearValueCount = 0, + .pClearValues = NULL, }, VK_RENDER_PASS_CONTENTS_INLINE); VkPipeline pipeline; @@ -1621,8 +1624,8 @@ void anv_CmdClearColorImage( }, .renderPass = pass, .framebuffer = fb, - .attachmentCount = 1, - .pAttachmentClearValues = NULL, + .clearValueCount = 1, + .pClearValues = NULL, }, VK_RENDER_PASS_CONTENTS_INLINE); struct clear_instance_data instance_data = { |