mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-24 14:25:42 +00:00
I swear I checked formatting...
This commit is contained in:
@@ -546,7 +546,8 @@ inline static VkResult hkvkEnumerateDeviceExtensionProperties(VkPhysicalDevice p
|
||||
// Count query, modify and add 5 to final count
|
||||
if (pProperties == nullptr && pPropertyCount != nullptr && count == 0)
|
||||
{
|
||||
if (State::Instance().activeFgInput == FGInput::DLSSG || State::Instance().activeFgInput == FGInput::NvngxFG)
|
||||
if (State::Instance().activeFgInput == FGInput::DLSSG ||
|
||||
State::Instance().activeFgInput == FGInput::NvngxFG)
|
||||
*pPropertyCount += 7;
|
||||
else
|
||||
*pPropertyCount += 5;
|
||||
@@ -582,7 +583,8 @@ inline static VkResult hkvkEnumerateDeviceExtensionProperties(VkPhysicalDevice p
|
||||
VK_EXT_BUFFER_DEVICE_ADDRESS_SPEC_VERSION };
|
||||
memcpy(&pProperties[*pPropertyCount - 5], &bda, sizeof(VkExtensionProperties));
|
||||
|
||||
if (State::Instance().activeFgInput == FGInput::DLSSG || State::Instance().activeFgInput == FGInput::NvngxFG)
|
||||
if (State::Instance().activeFgInput == FGInput::DLSSG ||
|
||||
State::Instance().activeFgInput == FGInput::NvngxFG)
|
||||
{
|
||||
VkExtensionProperties of { VK_NV_OPTICAL_FLOW_EXTENSION_NAME, VK_NV_OPTICAL_FLOW_SPEC_VERSION };
|
||||
memcpy(&pProperties[*pPropertyCount - 6], &of, sizeof(VkExtensionProperties));
|
||||
|
||||
@@ -558,9 +558,8 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers(UINT BufferCount
|
||||
#ifdef USE_LOCAL_MUTEX
|
||||
// dlssg calls this from present it seems
|
||||
// don't try to get a mutex when present owns it while dlssg mod is enabled
|
||||
if (!(_localMutex.getOwner() == 4 &&
|
||||
(Config::Instance()->FGInput.value_or_default() == FGInput::NvngxFG ||
|
||||
Config::Instance()->FGOutput.value_or_default() == FGOutput::DLSSGWithNvngx)))
|
||||
if (!(_localMutex.getOwner() == 4 && (Config::Instance()->FGInput.value_or_default() == FGInput::NvngxFG ||
|
||||
Config::Instance()->FGOutput.value_or_default() == FGOutput::DLSSGWithNvngx)))
|
||||
{
|
||||
OwnedLockGuard lock(_localMutex, 1);
|
||||
}
|
||||
@@ -871,9 +870,8 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::ResizeBuffers1(UINT BufferCoun
|
||||
#ifdef USE_LOCAL_MUTEX
|
||||
// dlssg calls this from present it seems
|
||||
// don't try to get a mutex when present owns it while dlssg mod is enabled
|
||||
if (!(_localMutex.getOwner() == 4 &&
|
||||
(Config::Instance()->FGInput.value_or_default() == FGInput::NvngxFG ||
|
||||
Config::Instance()->FGOutput.value_or_default() == FGOutput::DLSSGWithNvngx)))
|
||||
if (!(_localMutex.getOwner() == 4 && (Config::Instance()->FGInput.value_or_default() == FGInput::NvngxFG ||
|
||||
Config::Instance()->FGOutput.value_or_default() == FGOutput::DLSSGWithNvngx)))
|
||||
{
|
||||
OwnedLockGuard lock(_localMutex, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user