Lines Matching refs:pCreateInfo

66                    const VkImageCreateInfo *pCreateInfo,
75 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO);
77 assert(pCreateInfo->mipLevels > 0);
78 assert(pCreateInfo->arrayLayers > 0);
79 assert(pCreateInfo->samples > 0);
80 assert(pCreateInfo->extent.width > 0);
81 assert(pCreateInfo->extent.height > 0);
82 assert(pCreateInfo->extent.depth > 0);
89 image->type = pCreateInfo->imageType;
91 image->vk_format = pCreateInfo->format;
92 image->tiling = pCreateInfo->tiling;
93 image->usage = pCreateInfo->usage;
94 image->flags = pCreateInfo->flags;
95 image->extent = pCreateInfo->extent;
97 vk_format_to_pipe_format(pCreateInfo->format),
98 panvk_image_type_to_mali_tex_dim(pCreateInfo->imageType),
99 pCreateInfo->extent.width, pCreateInfo->extent.height,
100 pCreateInfo->extent.depth, pCreateInfo->arrayLayers,
101 pCreateInfo->samples, pCreateInfo->mipLevels,
104 image->exclusive = pCreateInfo->sharingMode == VK_SHARING_MODE_EXCLUSIVE;
105 if (pCreateInfo->sharingMode == VK_SHARING_MODE_CONCURRENT) {
106 for (uint32_t i = 0; i < pCreateInfo->queueFamilyIndexCount; ++i) {
107 if (pCreateInfo->pQueueFamilyIndices[i] == VK_QUEUE_FAMILY_EXTERNAL)
110 image->queue_family_mask |= 1u << pCreateInfo->pQueueFamilyIndices[i];
114 if (vk_find_struct_const(pCreateInfo->pNext, EXTERNAL_MEMORY_IMAGE_CREATE_INFO))
123 const VkImageCreateInfo *pCreateInfo,
128 enum pipe_format fmt = vk_format_to_pipe_format(pCreateInfo->format);
134 if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR)
137 if (pCreateInfo->tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT) {
139 vk_find_struct_const(pCreateInfo->pNext,
142 vk_find_struct_const(pCreateInfo->pNext,
169 vk_find_struct_const(pCreateInfo->pNext, WSI_IMAGE_CREATE_INFO_MESA);
173 assert(pCreateInfo->tiling == VK_IMAGE_TILING_OPTIMAL);
179 if (pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT)
183 if (pCreateInfo->samples > 1)
196 if (pCreateInfo->imageType == VK_IMAGE_TYPE_3D && pdev->arch < 7)
200 if (pCreateInfo->extent.width <= 16 && pCreateInfo->extent.height <= 16)
217 const VkImageCreateInfo *pCreateInfo,
222 uint64_t modifier = panvk_image_select_mod(device, pCreateInfo, &plane_layouts);
224 return panvk_image_create(device, pCreateInfo, pAllocator, pImage, modifier, plane_layouts);
296 const VkBufferViewCreateInfo *pCreateInfo,