Searched refs:sorted_formats (Results 1 – 4 of 4) sorted by relevance
/aosp_15_r20/external/mesa3d/src/vulkan/wsi/ |
H A D | wsi_common_metal.c | 157 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 …]
|
H A D | wsi_common_win32.cpp | 297 get_sorted_vk_formats(struct wsi_device *wsi_device, VkFormat *sorted_formats) in get_sorted_vk_formats() argument 300 sorted_formats[i] = available_surface_formats[i].format; in get_sorted_vk_formats() 304 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats() 305 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats() 306 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats() 321 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_win32_surface_get_formats() local 322 get_sorted_vk_formats(wsi_device, sorted_formats); in wsi_win32_surface_get_formats() 324 for (unsigned i = 0; i < ARRAY_SIZE(sorted_formats); i++) { in wsi_win32_surface_get_formats() 326 f->format = sorted_formats[i]; in wsi_win32_surface_get_formats() 343 VkFormat sorted_formats[ARRAY_SIZE(available_surface_formats)]; in wsi_win32_surface_get_formats2() local [all …]
|
H A D | wsi_common_display.c | 1016 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 …]
|
H A D | wsi_common_x11.c | 851 VkFormat *sorted_formats, unsigned *count) in get_sorted_vk_formats() argument 865 sorted_formats[(*count)++] = formats[i]; in get_sorted_vk_formats() 870 if (formats[i] == sorted_formats[j]) in get_sorted_vk_formats() 873 sorted_formats[(*count)++] = formats[i]; in get_sorted_vk_formats() 879 if (sorted_formats[i] == VK_FORMAT_B8G8R8A8_UNORM) { in get_sorted_vk_formats() 880 sorted_formats[i] = sorted_formats[0]; in get_sorted_vk_formats() 881 sorted_formats[0] = VK_FORMAT_B8G8R8A8_UNORM; in get_sorted_vk_formats() 900 VkFormat sorted_formats[ARRAY_SIZE(formats)]; in x11_surface_get_formats() local 901 if (!get_sorted_vk_formats(surface, wsi_device, sorted_formats, &count)) in x11_surface_get_formats() 906 f->format = sorted_formats[i]; in x11_surface_get_formats() [all …]
|