Lines Matching refs:pCreateInfo
42 const VkImageCreateInfo *pCreateInfo, in radv_choose_tiling() argument
45 if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR) { in radv_choose_tiling()
46 assert(pCreateInfo->samples <= 1); in radv_choose_tiling()
55 if (pCreateInfo->imageType == VK_IMAGE_TYPE_1D || in radv_choose_tiling()
58 (pCreateInfo->extent.width > 8 && pCreateInfo->extent.height <= 2)) in radv_choose_tiling()
63 if (pCreateInfo->samples > 1) in radv_choose_tiling()
71 const VkImageCreateInfo *pCreateInfo, in radv_use_tc_compat_htile_for_image() argument
78 if ((pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT)) in radv_use_tc_compat_htile_for_image()
81 if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR) in radv_use_tc_compat_htile_for_image()
84 if (pCreateInfo->mipLevels > 1) in radv_use_tc_compat_htile_for_image()
90 if (!(pCreateInfo->usage & (VK_IMAGE_USAGE_SAMPLED_BIT | in radv_use_tc_compat_htile_for_image()
98 if (pCreateInfo->samples >= 2 && in radv_use_tc_compat_htile_for_image()
113 if (pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { in radv_use_tc_compat_htile_for_image()
116 vk_find_struct_const(pCreateInfo->pNext, in radv_use_tc_compat_htile_for_image()
176 const VkImageCreateInfo *pCreateInfo, in radv_use_dcc_for_image() argument
193 if ((pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT)) in radv_use_dcc_for_image()
196 if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR) in radv_use_dcc_for_image()
207 if ((pCreateInfo->arrayLayers > 1 || pCreateInfo->mipLevels > 1) && in radv_use_dcc_for_image()
212 if (pCreateInfo->arrayLayers > 1 && pCreateInfo->mipLevels > 1) in radv_use_dcc_for_image()
218 if (pCreateInfo->samples > 2 || in radv_use_dcc_for_image()
219 (pCreateInfo->samples == 2 && in radv_use_dcc_for_image()
228 if (pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { in radv_use_dcc_for_image()
231 vk_find_struct_const(pCreateInfo->pNext, in radv_use_dcc_for_image()
443 const VkImageCreateInfo *pCreateInfo, in radv_get_surface_flags() argument
447 unsigned array_mode = radv_choose_tiling(device, pCreateInfo, image_format); in radv_get_surface_flags()
458 switch (pCreateInfo->imageType){ in radv_get_surface_flags()
460 if (pCreateInfo->arrayLayers > 1) in radv_get_surface_flags()
466 if (pCreateInfo->arrayLayers > 1) in radv_get_surface_flags()
486 if (radv_use_tc_compat_htile_for_image(device, pCreateInfo, image_format)) in radv_get_surface_flags()
494 pCreateInfo->imageType == VK_IMAGE_TYPE_3D && in radv_get_surface_flags()
499 if (!radv_use_dcc_for_image(device, image, pCreateInfo, image_format)) in radv_get_surface_flags()
1416 const VkImageCreateInfo *pCreateInfo = create_info->vk_info; in radv_image_create() local
1418 VkFormat format = radv_select_android_external_format(pCreateInfo->pNext, in radv_image_create()
1419 pCreateInfo->format); in radv_image_create()
1420 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO); in radv_image_create()
1425 radv_assert(pCreateInfo->mipLevels > 0); in radv_image_create()
1426 radv_assert(pCreateInfo->arrayLayers > 0); in radv_image_create()
1427 radv_assert(pCreateInfo->samples > 0); in radv_image_create()
1428 radv_assert(pCreateInfo->extent.width > 0); in radv_image_create()
1429 radv_assert(pCreateInfo->extent.height > 0); in radv_image_create()
1430 radv_assert(pCreateInfo->extent.depth > 0); in radv_image_create()
1439 image->type = pCreateInfo->imageType; in radv_image_create()
1440 image->info.width = pCreateInfo->extent.width; in radv_image_create()
1441 image->info.height = pCreateInfo->extent.height; in radv_image_create()
1442 image->info.depth = pCreateInfo->extent.depth; in radv_image_create()
1443 image->info.samples = pCreateInfo->samples; in radv_image_create()
1444 image->info.storage_samples = pCreateInfo->samples; in radv_image_create()
1445 image->info.array_size = pCreateInfo->arrayLayers; in radv_image_create()
1446 image->info.levels = pCreateInfo->mipLevels; in radv_image_create()
1450 image->tiling = pCreateInfo->tiling; in radv_image_create()
1451 image->usage = pCreateInfo->usage; in radv_image_create()
1452 image->flags = pCreateInfo->flags; in radv_image_create()
1455 image->exclusive = pCreateInfo->sharingMode == VK_SHARING_MODE_EXCLUSIVE; in radv_image_create()
1456 if (pCreateInfo->sharingMode == VK_SHARING_MODE_CONCURRENT) { in radv_image_create()
1457 for (uint32_t i = 0; i < pCreateInfo->queueFamilyIndexCount; ++i) in radv_image_create()
1458 if (pCreateInfo->pQueueFamilyIndices[i] == VK_QUEUE_FAMILY_EXTERNAL || in radv_image_create()
1459 pCreateInfo->pQueueFamilyIndices[i] == VK_QUEUE_FAMILY_FOREIGN_EXT) in radv_image_create()
1462 image->queue_family_mask |= 1u << pCreateInfo->pQueueFamilyIndices[i]; in radv_image_create()
1466 vk_find_struct_const(pCreateInfo->pNext, in radv_image_create()
1476 radv_get_surface_flags(device, image, plane, pCreateInfo, format); in radv_image_create()
1604 const VkImageViewCreateInfo* pCreateInfo, in radv_image_view_init() argument
1607 RADV_FROM_HANDLE(radv_image, image, pCreateInfo->image); in radv_image_view_init()
1608 const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange; in radv_image_view_init()
1624 iview->type = pCreateInfo->viewType; in radv_image_view_init()
1625 iview->plane_id = radv_plane_from_aspect(pCreateInfo->subresourceRange.aspectMask); in radv_image_view_init()
1626 iview->aspect_mask = pCreateInfo->subresourceRange.aspectMask; in radv_image_view_init()
1634 iview->vk_format = pCreateInfo->format; in radv_image_view_init()
1731 &pCreateInfo->components, in radv_image_view_init()
1735 format, &pCreateInfo->components, in radv_image_view_init()
1812 const VkImageCreateInfo *pCreateInfo, in radv_CreateImage() argument
1818 vk_find_struct_const(pCreateInfo->pNext, NATIVE_BUFFER_ANDROID); in radv_CreateImage()
1821 return radv_image_from_gralloc(device, pCreateInfo, gralloc_info, in radv_CreateImage()
1826 vk_find_struct_const(pCreateInfo->pNext, WSI_IMAGE_CREATE_INFO_MESA); in radv_CreateImage()
1831 .vk_info = pCreateInfo, in radv_CreateImage()
1905 const VkImageViewCreateInfo *pCreateInfo, in radv_CreateImageView() argument
1920 radv_image_view_init(view, device, pCreateInfo, NULL); in radv_CreateImageView()
1943 const VkBufferViewCreateInfo* pCreateInfo) in radv_buffer_view_init() argument
1945 RADV_FROM_HANDLE(radv_buffer, buffer, pCreateInfo->buffer); in radv_buffer_view_init()
1948 view->range = pCreateInfo->range == VK_WHOLE_SIZE ? in radv_buffer_view_init()
1949 buffer->size - pCreateInfo->offset : pCreateInfo->range; in radv_buffer_view_init()
1950 view->vk_format = pCreateInfo->format; in radv_buffer_view_init()
1953 pCreateInfo->offset, view->range, view->state); in radv_buffer_view_init()
1958 const VkBufferViewCreateInfo *pCreateInfo, in radv_CreateBufferView() argument
1973 radv_buffer_view_init(view, device, pCreateInfo); in radv_CreateBufferView()