mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 16:24:29 +01:00
[dxvk] Disable pipeline lifetime tracking for RADV
Seems like this is not needed on this driver, so let's just use the fast path by default. Makes the current implementation work with 32-bit games as well since caching does not work yet.
This commit is contained in:
parent
421d7d9077
commit
f7aa310fdd
@ -68,9 +68,25 @@ namespace dxvk {
|
||||
|
||||
|
||||
bool DxvkDevice::mustTrackPipelineLifetime() const {
|
||||
bool result = env::is32BitHostPlatform();
|
||||
applyTristate(result, m_options.trackPipelineLifetime);
|
||||
return result && canUseGraphicsPipelineLibrary();
|
||||
switch (m_options.trackPipelineLifetime) {
|
||||
case Tristate::True:
|
||||
return canUseGraphicsPipelineLibrary();
|
||||
|
||||
case Tristate::False:
|
||||
return false;
|
||||
|
||||
default:
|
||||
case Tristate::Auto:
|
||||
if (!env::is32BitHostPlatform() || !canUseGraphicsPipelineLibrary())
|
||||
return false;
|
||||
|
||||
// Disable lifetime tracking for drivers that do not have any
|
||||
// significant issues with 32-bit address space to begin with
|
||||
if (m_adapter->matchesDriver(VK_DRIVER_ID_MESA_RADV_KHR, 0, 0))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user