VkRenderPass renderPass;
VkFramebuffer framebuffer;
VkRect2D renderArea;
- uint32_t attachmentCount;
- const VkClearValue* pAttachmentClearValues;
+ uint32_t clearValueCount;
+ const VkClearValue* pClearValues;
} VkRenderPassBeginInfo;
typedef struct {
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;
.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;
},
.renderPass = pass,
.framebuffer = fb,
- .attachmentCount = 1,
- .pAttachmentClearValues = NULL,
+ .clearValueCount = 1,
+ .pClearValues = NULL,
}, VK_RENDER_PASS_CONTENTS_INLINE);
struct clear_instance_data instance_data = {
.DrawingRectangleOriginX = 0);
anv_cmd_buffer_clear_attachments(cmd_buffer, pass,
- pRenderPassBegin->pAttachmentClearValues);
+ pRenderPassBegin->pClearValues);
}
void gen7_CmdBeginRenderPass(
.DrawingRectangleOriginX = 0);
anv_cmd_buffer_clear_attachments(cmd_buffer, pass,
- pRenderPassBegin->pAttachmentClearValues);
+ pRenderPassBegin->pClearValues);
gen8_cmd_buffer_begin_subpass(cmd_buffer, pass->subpasses);
}