intel: Add support for depth/stencil clears via render pass load op
I want to get the demos to stop issuing explicit image clears entirely
before I change their semantics to require being outside the renderpass.
Color clears were already supported -- this just adds plumbing for
depth/stencil.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
diff --git a/icd/intel/cmd_priv.h b/icd/intel/cmd_priv.h
index 6ca9e2c..23220e8 100644
--- a/icd/intel/cmd_priv.h
+++ b/icd/intel/cmd_priv.h
@@ -534,4 +534,13 @@
uint32_t rangeCount,
const VkImageSubresourceRange *pRanges);
+void cmd_meta_clear_depth_stencil_image(
+ VkCmdBuffer cmdBuffer,
+ VkImage image,
+ VkImageLayout imageLayout,
+ float depth,
+ uint32_t stencil,
+ uint32_t rangeCount,
+ const VkImageSubresourceRange* pRanges);
+
#endif /* CMD_PRIV_H */