[Mesa-dev] [PATCH 13/23] anv: Remove the anv_format member from anv_image

Jason Ekstrand jason at jlekstrand.net
Mon May 16 19:08:18 UTC 2016


---
 src/intel/vulkan/anv_image.c        | 1 -
 src/intel/vulkan/anv_meta_resolve.c | 4 ++--
 src/intel/vulkan/anv_private.h      | 1 -
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 2f045f2..704ca9f 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -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;
diff --git a/src/intel/vulkan/anv_meta_resolve.c b/src/intel/vulkan/anv_meta_resolve.c
index 7d2a75b..dd2f768 100644
--- a/src/intel/vulkan/anv_meta_resolve.c
+++ b/src/intel/vulkan/anv_meta_resolve.c
@@ -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,
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 6284be9..a00f7d1 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -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;
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list