mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Add perf hint to avoid secondary command buffers
This commit is contained in:
parent
ac17d5f9b1
commit
d6f4e83777
2 changed files with 6 additions and 0 deletions
|
@ -446,6 +446,11 @@ namespace dxvk {
|
||||||
|
|
||||||
applyTristate(tilerMode, m_options.tilerMode);
|
applyTristate(tilerMode, m_options.tilerMode);
|
||||||
hints.preferRenderPassOps = tilerMode;
|
hints.preferRenderPassOps = tilerMode;
|
||||||
|
|
||||||
|
// Be less aggressive on secondary command buffer usage on
|
||||||
|
// drivers that do not natively support them
|
||||||
|
hints.preferPrimaryCmdBufs = !hints.preferRenderPassOps
|
||||||
|
|| m_adapter->matchesDriver(VK_DRIVER_ID_MESA_HONEYKRISP);
|
||||||
return hints;
|
return hints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ namespace dxvk {
|
||||||
VkBool32 preferFbResolve : 1;
|
VkBool32 preferFbResolve : 1;
|
||||||
VkBool32 renderPassClearFormatBug : 1;
|
VkBool32 renderPassClearFormatBug : 1;
|
||||||
VkBool32 preferRenderPassOps : 1;
|
VkBool32 preferRenderPassOps : 1;
|
||||||
|
VkBool32 preferPrimaryCmdBufs : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue