mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 15:10:31 +01:00
anv: add create_flags as part of anv_image
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>
This commit is contained in:
parent
96c4b135e3
commit
2a98e5bbb9
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue