From: Joonbum Ko Date: Mon, 7 Jun 2021 06:20:37 +0000 (+0900) Subject: Delete deprecated codes related to vkFormat X-Git-Tag: accepted/tizen/6.5/unified/20211028.123241~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=955a60d3fced74275d4d996bce77d40b3aa6091c;p=platform%2Fcore%2Fuifw%2Fvulkan-wsi-tizen.git Delete deprecated codes related to vkFormat Change-Id: Ifcb6957e6931b0ebf4283d4dff5e7d8c99b6ca2c Signed-off-by: Joonbum Ko --- diff --git a/src/wsi/surface.c b/src/wsi/surface.c index e8d35ae..53402f9 100644 --- a/src/wsi/surface.c +++ b/src/wsi/surface.c @@ -204,21 +204,16 @@ tpl_get_surface_formats(VkIcdSurfaceBase *sfc, uint32_t surface_format_count = 0; VkSurfaceFormatKHR surface_formats[ARRAY_LENGTH(supported_formats)]; uint32_t i, j; - uint8_t vk_format_map[VK_FORMAT_RANGE_SIZE]; - VkFormat vk_format; if (tbm_surface_query_formats(&tbm_formats, &tbm_format_count) != TBM_SURFACE_ERROR_NONE) return VK_ERROR_DEVICE_LOST; - memset(vk_format_map, 0, sizeof(vk_format_map)); for (i = 0; i < ARRAY_LENGTH(supported_formats); i++) { - vk_format = supported_formats[i].surface_format.format; for (j = 0; j < tbm_format_count; j++) { /* FIXME Currently, hotfix is applied to avoid duplication of supported VkFormat */ - if (tbm_formats[j] == supported_formats[i].tbm_format && vk_format_map[vk_format] == 0) { + if (tbm_formats[j] == supported_formats[i].tbm_format) { /* TODO Check if ICD support the format. */ surface_formats[surface_format_count++] = supported_formats[i].surface_format; - vk_format_map[vk_format] = 1; break; } }