Lines Matching refs:result

714    VkResult result =
718 if (result != VK_SUCCESS)
719 return result;
735 return result;
960 * Update the swapchain status with the result of an operation, and return
969 _x11_swapchain_result(struct x11_swapchain *chain, VkResult result,
977 if (result < 0) {
980 file, line, vk_Result_to_str(result));
982 chain->status = result;
983 return result;
987 if (result == VK_TIMEOUT || result == VK_NOT_READY)
988 return result;
993 if (result == VK_SUBOPTIMAL_KHR) {
997 file, line, vk_Result_to_str(result));
1000 chain->status = result;
1001 return result;
1007 #define x11_swapchain_result(chain, result) \
1008 _x11_swapchain_result(chain, result, __FILE__, __LINE__)
1064 VkResult result = VK_SUCCESS;
1068 result = VK_SUBOPTIMAL_KHR;
1082 result = VK_SUBOPTIMAL_KHR;
1089 return result;
1169 VkResult result = x11_handle_dri3_present_event(chain, (void *)event);
1171 result = x11_swapchain_result(chain, result);
1173 if (result < 0)
1174 return result;
1189 VkResult result = wsi_queue_pull(&chain->acquire_queue,
1191 if (result < 0 || result == VK_TIMEOUT) {
1196 return x11_swapchain_result(chain, result);
1247 VkResult result = x11_handle_dri3_present_event(chain, (void *)event);
1249 result = x11_swapchain_result(chain, result);
1251 if (result < 0)
1252 return result;
1379 VkResult result = VK_SUCCESS;
1383 result = VK_SUBOPTIMAL_KHR;
1385 result = VK_ERROR_SURFACE_LOST_KHR;
1389 return result;
1512 VkResult result = VK_SUCCESS;
1524 result = wsi_queue_pull(&chain->present_queue, &image_index, INT64_MAX);
1525 assert(result != VK_TIMEOUT);
1527 if (result < 0) {
1541 result = chain->base.wsi->WaitForFences(chain->base.device, 1,
1544 if (result != VK_SUCCESS) {
1545 result = VK_ERROR_OUT_OF_DATE_KHR;
1554 result = x11_present_to_x11(chain, image_index, target_msc);
1555 if (result < 0)
1593 result = VK_ERROR_SURFACE_LOST_KHR;
1597 result = x11_handle_dri3_present_event(chain, (void *)event);
1599 result = x11_swapchain_result(chain, result);
1601 if (result < 0)
1608 x11_swapchain_result(chain, result);
1645 VkResult result;
1649 result = wsi_create_image(&chain->base, &chain->base.image_info,
1651 if (result != VK_SUCCESS)
1652 return result;
1954 VkResult result;
2011 result = wsi_swapchain_init(wsi_device, &chain->base, device,
2013 if (result != VK_SUCCESS)
2085 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2106 result = wsi_configure_cpu_image(&chain->base, pCreateInfo,
2111 result = wsi_configure_prime_image(&chain->base, pCreateInfo,
2115 result = wsi_configure_native_image(&chain->base, pCreateInfo,
2120 if (result != VK_SUCCESS)
2125 result = x11_image_init(device, chain, pCreateInfo, pAllocator,
2127 if (result != VK_SUCCESS)
2217 return result;
2226 VkResult result;
2231 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2238 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2241 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2250 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2295 return result;