mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Implement d3d9.allowDoNotWait
This commit is contained in:
parent
764cb5634f
commit
f804c6364d
@ -3781,6 +3781,9 @@ namespace dxvk {
|
||||
if (unlikely(!m_d3d9Options.allowLockFlagReadonly))
|
||||
Flags &= ~D3DLOCK_READONLY;
|
||||
|
||||
if (unlikely(!m_d3d9Options.allowDoNotWait))
|
||||
Flags &= ~D3DLOCK_DONOTWAIT;
|
||||
|
||||
if (unlikely((Flags & (D3DLOCK_DISCARD | D3DLOCK_NOOVERWRITE)) == (D3DLOCK_DISCARD | D3DLOCK_NOOVERWRITE)))
|
||||
Flags &= ~D3DLOCK_DISCARD;
|
||||
|
||||
|
@ -65,6 +65,7 @@ namespace dxvk {
|
||||
this->forceSwapchainMSAA = config.getOption<int32_t> ("d3d9.forceSwapchainMSAA", -1);
|
||||
|
||||
this->forceAspectRatio = config.getOption<std::string>("d3d9.forceAspectRatio", "");
|
||||
this->allowDoNotWait = config.getOption<bool> ("d3d9.allowDoNotWait", true);
|
||||
|
||||
// If we are not Nvidia, enable general hazards.
|
||||
this->generalHazards = adapter == nullptr || !adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0);
|
||||
|
@ -119,6 +119,9 @@ namespace dxvk {
|
||||
|
||||
/// Forces an MSAA level on the swapchain
|
||||
int32_t forceSwapchainMSAA;
|
||||
|
||||
/// Allow D3DLOCK_DONOTWAIT
|
||||
bool allowDoNotWait;
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user