anv: Drop const on anv_framebuffer::attachments
authorChad Versace <chad.versace@intel.com>
Thu, 28 Jan 2016 04:42:45 +0000 (20:42 -0800)
committerChad Versace <chad.versace@intel.com>
Thu, 28 Jan 2016 18:03:00 +0000 (10:03 -0800)
The attachments should be const, but the driver's function signatures
are generally not const-friendly.

Drop the const because it conflicts with upcoming
anv_cmd_buffer_resolve_subpass().

src/vulkan/anv_private.h

index cad1e1fd5ff5e64f862c08dd19c7b38309dd27cd..835a5e81e1eb66a98590bec66b6f9e18a122dc2e 100644 (file)
@@ -1702,7 +1702,7 @@ struct anv_framebuffer {
    uint32_t                                     layers;
 
    uint32_t                                     attachment_count;
-   const struct anv_image_view *           attachments[0];
+   struct anv_image_view *                      attachments[0];
 };
 
 struct anv_subpass {