1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d11] Don't use presentation fence

This commit is contained in:
Philip Rebohle 2019-04-23 16:53:22 +02:00
parent 81f6ccb1be
commit 981ea547f9
2 changed files with 2 additions and 12 deletions

View File

@ -34,10 +34,6 @@ namespace dxvk {
InitRenderState();
InitSamplers();
InitShaders();
// The present fence seems to introduce stutter on ANV
if (m_device->adapter()->matchesDriver(DxvkGpuVendor::Intel, VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA_KHR, 0, 0))
m_usePresentFence = false;
}
@ -238,7 +234,7 @@ namespace dxvk {
uint32_t imageIndex = 0;
VkResult status = m_presenter->acquireNextImage(
sync.acquire, sync.fence, imageIndex);
sync.acquire, VK_NULL_HANDLE, imageIndex);
while (status != VK_SUCCESS && status != VK_SUBOPTIMAL_KHR) {
RecreateSwapChain(m_vsync);
@ -247,13 +243,9 @@ namespace dxvk {
sync = m_presenter->getSyncSemaphores();
status = m_presenter->acquireNextImage(
sync.acquire, sync.fence, imageIndex);
sync.acquire, VK_NULL_HANDLE, imageIndex);
}
// Wait for image to become actually available
if (m_usePresentFence)
m_presenter->waitForFence(sync.fence);
// Use an appropriate texture filter depending on whether
// the back buffer size matches the swap image size
bool fitSize = m_swapImage->info().extent.width == info.imageExtent.width

View File

@ -118,8 +118,6 @@ namespace dxvk {
bool m_dirty = true;
bool m_vsync = true;
bool m_usePresentFence = true;
void PresentImage(UINT SyncInterval);
void FlushImmediateContext();