anv: Add anv_image::samples
It's set but not yet used.
This commit is contained in:
@@ -204,6 +204,7 @@ anv_image_create(VkDevice _device,
|
|||||||
image->format = anv_format_for_vk_format(pCreateInfo->format);
|
image->format = anv_format_for_vk_format(pCreateInfo->format);
|
||||||
image->levels = pCreateInfo->mipLevels;
|
image->levels = pCreateInfo->mipLevels;
|
||||||
image->array_size = pCreateInfo->arrayLayers;
|
image->array_size = pCreateInfo->arrayLayers;
|
||||||
|
image->samples = pCreateInfo->samples;
|
||||||
image->usage = anv_image_get_full_usage(pCreateInfo);
|
image->usage = anv_image_get_full_usage(pCreateInfo);
|
||||||
image->tiling = pCreateInfo->tiling;
|
image->tiling = pCreateInfo->tiling;
|
||||||
|
|
||||||
|
@@ -1522,6 +1522,7 @@ struct anv_image {
|
|||||||
VkExtent3D extent;
|
VkExtent3D extent;
|
||||||
uint32_t levels;
|
uint32_t levels;
|
||||||
uint32_t array_size;
|
uint32_t array_size;
|
||||||
|
uint32_t samples; /**< VkImageCreateInfo::samples */
|
||||||
VkImageUsageFlags usage; /**< Superset of VkImageCreateInfo::usage. */
|
VkImageUsageFlags usage; /**< Superset of VkImageCreateInfo::usage. */
|
||||||
VkImageTiling tiling; /** VkImageCreateInfo::tiling */
|
VkImageTiling tiling; /** VkImageCreateInfo::tiling */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user