summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/anv_pass.c')
-rw-r--r--src/vulkan/anv_pass.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vulkan/anv_pass.c b/src/vulkan/anv_pass.c
index c3060239906..bf0f830f3c1 100644
--- a/src/vulkan/anv_pass.c
+++ b/src/vulkan/anv_pass.c
@@ -62,22 +62,6 @@ VkResult anv_CreateRenderPass(
att->stencil_load_op = pCreateInfo->pAttachments[i].stencilLoadOp;
// att->store_op = pCreateInfo->pAttachments[i].storeOp;
// att->stencil_store_op = pCreateInfo->pAttachments[i].stencilStoreOp;
-
- if (anv_format_is_color(att->format)) {
- if (att->load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
- ++pass->num_color_clear_attachments;
- }
- } else {
- if (att->format->depth_format &&
- att->load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
- pass->has_depth_clear_attachment = true;
- }
-
- if (att->format->has_stencil &&
- att->stencil_load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
- pass->has_stencil_clear_attachment = true;
- }
- }
}
for (uint32_t i = 0; i < pCreateInfo->subpassCount; i++) {