From dfcb4ee6df5d069ab409ae532a6ad5c5eeda91db Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 20 Jan 2016 16:34:23 -0800 Subject: [PATCH] anv: Add anv_image::samples It's set but not yet used. --- src/vulkan/anv_image.c | 1 + src/vulkan/anv_private.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c index b51938740bd..6fcf9885a1e 100644 --- a/src/vulkan/anv_image.c +++ b/src/vulkan/anv_image.c @@ -204,6 +204,7 @@ anv_image_create(VkDevice _device, image->format = anv_format_for_vk_format(pCreateInfo->format); image->levels = pCreateInfo->mipLevels; image->array_size = pCreateInfo->arrayLayers; + image->samples = pCreateInfo->samples; image->usage = anv_image_get_full_usage(pCreateInfo); image->tiling = pCreateInfo->tiling; diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 6d5551a5b69..d121857352d 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -1522,6 +1522,7 @@ struct anv_image { VkExtent3D extent; uint32_t levels; uint32_t array_size; + uint32_t samples; /**< VkImageCreateInfo::samples */ VkImageUsageFlags usage; /**< Superset of VkImageCreateInfo::usage. */ VkImageTiling tiling; /** VkImageCreateInfo::tiling */ -- 2.30.2