From: Chad Versace Date: Thu, 21 Jan 2016 00:34:23 +0000 (-0800) Subject: anv: Add anv_image::samples X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfcb4ee6df5d069ab409ae532a6ad5c5eeda91db;p=mesa.git anv: Add anv_image::samples It's set but not yet used. --- 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 */