anv: Remove the anv_format member from anv_image
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 May 2016 23:52:15 +0000 (16:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 May 2016 19:17:22 +0000 (12:17 -0700)
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_meta_resolve.c
src/intel/vulkan/anv_private.h

index 2f045f210d015272a5c3af45d429952f6f8ae779..704ca9f7caf5299d0453ff07f546ee73f5da8fa5 100644 (file)
@@ -227,7 +227,6 @@ anv_image_create(VkDevice _device,
    image->type = pCreateInfo->imageType;
    image->extent = pCreateInfo->extent;
    image->vk_format = pCreateInfo->format;
-   image->format = format;
    image->aspects = vk_format_aspects(image->vk_format);
    image->levels = pCreateInfo->mipLevels;
    image->array_size = pCreateInfo->arrayLayers;
index 7d2a75bb7529476be72129b1542d1c7a0fecc03d..dd2f768577dd27761b25deabfc7ca41c5955a0c7 100644 (file)
@@ -717,7 +717,7 @@ void anv_CmdResolveImage(
                .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
                .image = src_image_h,
                .viewType = anv_meta_get_view_type(src_image),
-               .format = src_image->format->vk_format,
+               .format = src_image->vk_format,
                .subresourceRange = {
                   .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
                   .baseMipLevel = region->srcSubresource.mipLevel,
@@ -734,7 +734,7 @@ void anv_CmdResolveImage(
                .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
                .image = dest_image_h,
                .viewType = anv_meta_get_view_type(dest_image),
-               .format = dest_image->format->vk_format,
+               .format = dest_image->vk_format,
                .subresourceRange = {
                   .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
                   .baseMipLevel = region->dstSubresource.mipLevel,
index 6284be92f6dff1003d5c4ae49ed9de0f5f5c8453..a00f7d1f541daf5978fae8556a4fec1cb9c792ad 100644 (file)
@@ -1560,7 +1560,6 @@ struct anv_image {
     * of the actual surface formats.
     */
    VkFormat vk_format;
-   const struct anv_format *format;
    VkImageAspectFlags aspects;
    VkExtent3D extent;
    uint32_t levels;