anv: Add anv_render_pass_attachment::store_op
authorChad Versace <chad.versace@intel.com>
Wed, 22 Jun 2016 16:17:41 +0000 (09:17 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 23 Jun 2016 23:10:25 +0000 (16:10 -0700)
Will be needed for resolving auxiliary surfaces.

I didn't add anv_render_pass_attachment::stencil_store_op, as the driver
would likely never use it, as stencil surfaces never have auxiliary
surfaces.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_pass.c
src/intel/vulkan/anv_private.h

index b7407548779f64d3831fd655ff547c451bfd3a83..69c3c7e96b745b2d15ee1a9c7f12a468189fcb7f 100644 (file)
@@ -60,9 +60,8 @@ VkResult anv_CreateRenderPass(
       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;
index 50b860ca581e8a41626edf425e07c195cb3e7523..8c2ffd8a8e9f2f05f01697387e255b59277a41cf 100644 (file)
@@ -1812,6 +1812,7 @@ struct anv_render_pass_attachment {
    VkFormat                                     format;
    uint32_t                                     samples;
    VkAttachmentLoadOp                           load_op;
+   VkAttachmentStoreOp                          store_op;
    VkAttachmentLoadOp                           stencil_load_op;
 };