Home
last modified time | relevance | path

Searched refs:sorted_formats (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/vulkan/wsi/
Dwsi_common_metal.c157 get_sorted_vk_formats(bool force_bgra8_unorm_first, VkFormat *sorted_formats) in get_sorted_vk_formats() argument
160 sorted_formats[i] = available_surface_formats[i]; in get_sorted_vk_formats()
164 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()
165 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()
166 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats()
181 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_metal_surface_get_formats() local
182 get_sorted_vk_formats(wsi_device->force_bgra8_unorm_first, sorted_formats); in wsi_metal_surface_get_formats()
184 for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) { in wsi_metal_surface_get_formats()
186 f->format = sorted_formats[i]; in wsi_metal_surface_get_formats()
203 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_metal_surface_get_formats2() local
[all …]
Dwsi_common_win32.cpp298 get_sorted_vk_formats(struct wsi_device *wsi_device, VkFormat *sorted_formats) in get_sorted_vk_formats() argument
301 sorted_formats[i] = available_surface_formats[i].format; in get_sorted_vk_formats()
305 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()
306 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()
307 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats()
322 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_win32_surface_get_formats() local
323 get_sorted_vk_formats(wsi_device, sorted_formats); in wsi_win32_surface_get_formats()
325 for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) { in wsi_win32_surface_get_formats()
327 f->format = sorted_formats[i]; in wsi_win32_surface_get_formats()
344 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_win32_surface_get_formats2() local
[all …]
Dwsi_common_display.c1016 get_sorted_vk_formats(struct wsi_device *wsi_device, VkSurfaceFormatKHR *sorted_formats) in get_sorted_vk_formats() argument
1019 sorted_formats[i] = available_surface_formats[i].surface_format; in get_sorted_vk_formats()
1023 if (sorted_formats[i].format == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()
1024 VkSurfaceFormatKHR tmp = sorted_formats[i]; in get_sorted_vk_formats()
1025 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()
1026 sorted_formats[0] = tmp; in get_sorted_vk_formats()
1042 VkSurfaceFormatKHR sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_display_surface_get_formats() local
1043 get_sorted_vk_formats(wsi_device, sorted_formats); in wsi_display_surface_get_formats()
1045 for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) { in wsi_display_surface_get_formats()
1047 *f = sorted_formats[i]; in wsi_display_surface_get_formats()
[all …]
Dwsi_common_x11.c855 VkFormat *sorted_formats, unsigned *count) in get_sorted_vk_formats() argument
869 sorted_formats[(*count)++] = formats[i]; in get_sorted_vk_formats()
874 if (formats[i] == sorted_formats[j]) in get_sorted_vk_formats()
877 sorted_formats[(*count)++] = formats[i]; in get_sorted_vk_formats()
883 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats()
884 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats()
885 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats()
904 VkFormat sorted_formats[ARRAY_SIZE(formats)]; in x11_surface_get_formats() local
905 if (!get_sorted_vk_formats(surface, wsi_device, sorted_formats, &count)) in x11_surface_get_formats()
910 f->format = sorted_formats[i]; in x11_surface_get_formats()
[all …]