anv: Add anv_render_pass_attachment::store_op
[mesa.git] / src / intel / vulkan / anv_pass.c
index d07e9fec6cccf881b22a0d7a2cd85b36d5c14009..69c3c7e96b745b2d15ee1a9c7f12a468189fcb7f 100644 (file)
@@ -57,12 +57,11 @@ VkResult anv_CreateRenderPass(
    for (uint32_t i = 0; i < pCreateInfo->attachmentCount; i++) {
       struct anv_render_pass_attachment *att = &pass->attachments[i];
 
-      att->format = anv_format_for_vk_format(pCreateInfo->pAttachments[i].format);
+      att->format = pCreateInfo->pAttachments[i].format;
       att->samples = pCreateInfo->pAttachments[i].samples;
       att->load_op = pCreateInfo->pAttachments[i].loadOp;
+      att->store_op = pCreateInfo->pAttachments[i].storeOp;
       att->stencil_load_op = pCreateInfo->pAttachments[i].stencilLoadOp;
-      // att->store_op = pCreateInfo->pAttachments[i].storeOp;
-      // att->stencil_store_op = pCreateInfo->pAttachments[i].stencilStoreOp;
    }
 
    uint32_t subpass_attachment_count = 0, *p;