1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-23 19:54:16 +01:00

[dxvk] Add perf hint to avoid secondary command buffers

This commit is contained in:
Philip Rebohle 2025-02-10 21:06:37 +01:00
parent 94254f556e
commit cf9ccf711b
2 changed files with 6 additions and 0 deletions

View File

@ -446,6 +446,11 @@ namespace dxvk {
applyTristate(tilerMode, m_options.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;
}

View File

@ -39,6 +39,7 @@ namespace dxvk {
VkBool32 preferFbResolve : 1;
VkBool32 renderPassClearFormatBug : 1;
VkBool32 preferRenderPassOps : 1;
VkBool32 preferPrimaryCmdBufs : 1;
};
/**