mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-16 15:29:19 +00:00
Vulkan: Fix incorrect logic in readback preemption
This could have been causing a large number of command buffer submissions per frame, depending on when the readbacks occured.
This commit is contained in:
parent
58978c1440
commit
a475792163
2 changed files with 10 additions and 0 deletions
|
@ -113,6 +113,9 @@ constexpr size_t TEXTURE_CONVERSION_TEXEL_BUFFER_SIZE = 8 * 1024 * 1024;
|
|||
// Push constant buffer size for utility shaders
|
||||
constexpr u32 PUSH_CONSTANT_BUFFER_SIZE = 128;
|
||||
|
||||
// Minimum number of draw calls per command buffer when attempting to preempt a readback operation.
|
||||
constexpr u32 MINIMUM_DRAW_CALLS_PER_COMMAND_BUFFER_FOR_READBACK = 10;
|
||||
|
||||
// Rasterization state info
|
||||
union RasterizationState {
|
||||
BitField<0, 2, VkCullModeFlags> cull_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue