~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/vulkan/wsi/wsi_common_win32.cpp

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
wsi_GetPhysicalDeviceWin32PresentationSupportKHR(VkPhysicalDevice physicalDevice,
113
113
                                                 uint32_t queueFamilyIndex)
114
114
{
115
 
   return TRUE;
 
115
   return true;
116
116
}
117
117
 
118
118
VKAPI_ATTR VkResult VKAPI_CALL
648
648
 
649
649
   assert(chain->dxgi);
650
650
   uint32_t index = chain->dxgi->GetCurrentBackBufferIndex();
 
651
   if (chain->images[index].state == WSI_IMAGE_DRAWING) {
 
652
      index = (index + 1) % chain->base.image_count;
 
653
      assert(chain->images[index].state == WSI_IMAGE_QUEUED);
 
654
   }
651
655
   if (chain->wsi->wsi->WaitForFences(chain->base.device, 1,
652
656
                                      &chain->base.fences[index],
653
657
                                      false, info->timeout) != VK_SUCCESS)