mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Implement d3d9.allowDiscard
This commit is contained in:
parent
6b85e6d3f1
commit
8fabc25a38
@ -4163,6 +4163,9 @@ namespace dxvk {
|
|||||||
if (!m_d3d9Options.allowLockFlagReadonly)
|
if (!m_d3d9Options.allowLockFlagReadonly)
|
||||||
Flags &= ~D3DLOCK_READONLY;
|
Flags &= ~D3DLOCK_READONLY;
|
||||||
|
|
||||||
|
if (!m_d3d9Options.allowDiscard)
|
||||||
|
Flags &= ~D3DLOCK_DISCARD;
|
||||||
|
|
||||||
auto& desc = *pResource->Desc();
|
auto& desc = *pResource->Desc();
|
||||||
|
|
||||||
// Ignore DISCARD if NOOVERWRITE is set
|
// Ignore DISCARD if NOOVERWRITE is set
|
||||||
|
@ -66,6 +66,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
this->forceAspectRatio = config.getOption<std::string>("d3d9.forceAspectRatio", "");
|
this->forceAspectRatio = config.getOption<std::string>("d3d9.forceAspectRatio", "");
|
||||||
this->allowDoNotWait = config.getOption<bool> ("d3d9.allowDoNotWait", true);
|
this->allowDoNotWait = config.getOption<bool> ("d3d9.allowDoNotWait", true);
|
||||||
|
this->allowDiscard = config.getOption<bool> ("d3d9.allowDiscard", true);
|
||||||
|
|
||||||
// If we are not Nvidia, enable general hazards.
|
// If we are not Nvidia, enable general hazards.
|
||||||
this->generalHazards = adapter == nullptr || !adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0);
|
this->generalHazards = adapter == nullptr || !adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0);
|
||||||
|
@ -122,6 +122,9 @@ namespace dxvk {
|
|||||||
|
|
||||||
/// Allow D3DLOCK_DONOTWAIT
|
/// Allow D3DLOCK_DONOTWAIT
|
||||||
bool allowDoNotWait;
|
bool allowDoNotWait;
|
||||||
|
|
||||||
|
/// Allow D3DLOCK_DISCARD
|
||||||
|
bool allowDiscard;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user