anv: add create_flags as part of anv_image
authorTapani Pälli <tapani.palli@intel.com>
Tue, 21 Aug 2018 08:12:37 +0000 (11:12 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 19 Dec 2018 07:38:41 +0000 (09:38 +0200)
This will make it possible for next patch to rip
anv_image_create_info out from make_surface function.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h

index 1748e9230d726c21471509442d0d3cdb7547bf69..6aaeca9c83ffda026abf5cb8f6fcb38ccead63d1 100644 (file)
@@ -590,6 +590,7 @@ anv_image_create(VkDevice _device,
    image->array_size = pCreateInfo->arrayLayers;
    image->samples = pCreateInfo->samples;
    image->usage = pCreateInfo->usage;
+   image->create_flags = pCreateInfo->flags;
    image->tiling = pCreateInfo->tiling;
    image->disjoint = pCreateInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT;
    image->needs_set_tiling = wsi_info && wsi_info->scanout;
index b3e9ace7ad896675a01f8a5523718b36a431e260..efc30c4ab680302664d49f6137a817308e44c991 100644 (file)
@@ -2663,6 +2663,7 @@ struct anv_image {
    uint32_t samples; /**< VkImageCreateInfo::samples */
    uint32_t n_planes;
    VkImageUsageFlags usage; /**< Superset of VkImageCreateInfo::usage. */
+   VkImageCreateFlags create_flags; /* Flags used when creating image. */
    VkImageTiling tiling; /** VkImageCreateInfo::tiling */
 
    /** True if this is needs to be bound to an appropriately tiled BO.