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:
parent
94254f556e
commit
cf9ccf711b
@ -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…
x
Reference in New Issue
Block a user