anv: Add anv_image::samples
authorChad Versace <chad.versace@intel.com>
Thu, 21 Jan 2016 00:34:23 +0000 (16:34 -0800)
committerChad Versace <chad.versace@intel.com>
Sat, 23 Jan 2016 01:19:57 +0000 (17:19 -0800)
It's set but not yet used.

src/vulkan/anv_image.c
src/vulkan/anv_private.h

index b51938740bd59252d9085af5f17c1777339f2d6c..6fcf9885a1e1bdc16b2f3bc0e812ba7d618478e5 100644 (file)
@@ -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;
 
index 6d5551a5b69662fd633f06f4eb55c8b9240d217b..d121857352d057455f4108feb512170dc5cd862b 100644 (file)
@@ -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 */