Searched refs:sorted_formats (Results 1 – 4 of 4) sorted by relevance
96 sorted_formats = dict() # {condition : formats}101 if format_condition not in sorted_formats:102 sorted_formats[format_condition] = []103 sorted_formats[format_condition].append(format)105 for condition, condition_formats in sorted_formats.items():
301 get_sorted_vk_formats(struct wsi_device *wsi_device, VkFormat *sorted_formats) in get_sorted_vk_formats() argument304 sorted_formats[i] = available_surface_formats[i].format; in get_sorted_vk_formats()308 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()309 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()310 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats()325 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_win32_surface_get_formats() local326 get_sorted_vk_formats(wsi_device, sorted_formats); in wsi_win32_surface_get_formats()328 for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) { in wsi_win32_surface_get_formats()330 f->format = sorted_formats[i]; in wsi_win32_surface_get_formats()347 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_win32_surface_get_formats2() local[all …]
832 VkFormat *sorted_formats, unsigned *count) in get_sorted_vk_formats() argument846 sorted_formats[(*count)++] = formats[i]; in get_sorted_vk_formats()851 if (formats[i] == sorted_formats[j]) in get_sorted_vk_formats()854 sorted_formats[(*count)++] = formats[i]; in get_sorted_vk_formats()860 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()861 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()862 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats()881 VkFormat sorted_formats[ARRAY_SIZE(formats)]; in x11_surface_get_formats() local882 if (!get_sorted_vk_formats(surface, wsi_device, sorted_formats, &count)) in x11_surface_get_formats()887 f->format = sorted_formats[i]; in x11_surface_get_formats()[all …]
1021 get_sorted_vk_formats(struct wsi_device *wsi_device, VkSurfaceFormatKHR *sorted_formats) in get_sorted_vk_formats() argument1024 sorted_formats[i] = available_surface_formats[i].surface_format; in get_sorted_vk_formats()1028 if (sorted_formats[i].format == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()1029 VkSurfaceFormatKHR tmp = sorted_formats[i]; in get_sorted_vk_formats()1030 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()1031 sorted_formats[0] = tmp; in get_sorted_vk_formats()1047 VkSurfaceFormatKHR sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_display_surface_get_formats() local1048 get_sorted_vk_formats(wsi_device, sorted_formats); in wsi_display_surface_get_formats()1050 for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) { in wsi_display_surface_get_formats()1052 *f = sorted_formats[i]; in wsi_display_surface_get_formats()[all …]