mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +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)
|
||||
Flags &= ~D3DLOCK_READONLY;
|
||||
|
||||
if (!m_d3d9Options.allowDiscard)
|
||||
Flags &= ~D3DLOCK_DISCARD;
|
||||
|
||||
auto& desc = *pResource->Desc();
|
||||
|
||||
// Ignore DISCARD if NOOVERWRITE is set
|
||||
|
@ -66,6 +66,7 @@ namespace dxvk {
|
||||
|
||||
this->forceAspectRatio = config.getOption<std::string>("d3d9.forceAspectRatio", "");
|
||||
this->allowDoNotWait = config.getOption<bool> ("d3d9.allowDoNotWait", true);
|
||||
this->allowDiscard = config.getOption<bool> ("d3d9.allowDiscard", 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);
|
||||
|
@ -122,6 +122,9 @@ namespace dxvk {
|
||||
|
||||
/// Allow D3DLOCK_DONOTWAIT
|
||||
bool allowDoNotWait;
|
||||
|
||||
/// Allow D3DLOCK_DISCARD
|
||||
bool allowDiscard;
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user