mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Vulkan: Replace explicit command buffer submits with wrapper function
Should we ever introduce anything else that has to be done when a command buffer is executed (e.g. invalidating constants from previous commit), we don't have to update all the callers.
This commit is contained in:
parent
3adeacb78d
commit
6a4eba1153
5 changed files with 11 additions and 25 deletions
|
@ -738,9 +738,7 @@ bool FramebufferManager::PopulateColorReadbackTexture()
|
|||
}
|
||||
|
||||
// Wait until the copy is complete.
|
||||
g_command_buffer_mgr->ExecuteCommandBuffer(false, true);
|
||||
StateTracker::GetInstance()->InvalidateDescriptorSets();
|
||||
StateTracker::GetInstance()->SetPendingRebind();
|
||||
Util::ExecuteCurrentCommandsAndRestoreState(false, true);
|
||||
|
||||
// Map to host memory.
|
||||
if (!m_color_readback_texture->IsMapped() && !m_color_readback_texture->Map())
|
||||
|
@ -822,9 +820,7 @@ bool FramebufferManager::PopulateDepthReadbackTexture()
|
|||
}
|
||||
|
||||
// Wait until the copy is complete.
|
||||
g_command_buffer_mgr->ExecuteCommandBuffer(false, true);
|
||||
StateTracker::GetInstance()->InvalidateDescriptorSets();
|
||||
StateTracker::GetInstance()->SetPendingRebind();
|
||||
Util::ExecuteCurrentCommandsAndRestoreState(false, true);
|
||||
|
||||
// Map to host memory.
|
||||
if (!m_depth_readback_texture->IsMapped() && !m_depth_readback_texture->Map())
|
||||
|
@ -1212,7 +1208,7 @@ void FramebufferManager::DrawPokeVertices(const EFBPokeVertex* vertices, size_t
|
|||
{
|
||||
// Kick a command buffer first.
|
||||
WARN_LOG(VIDEO, "Kicking command buffer due to no EFB poke space.");
|
||||
Util::ExecuteCurrentCommandsAndRestoreState(true);
|
||||
Util::ExecuteCurrentCommandsAndRestoreState(false);
|
||||
command_buffer = g_command_buffer_mgr->GetCurrentCommandBuffer();
|
||||
|
||||
if (!m_poke_vertex_stream_buffer->ReserveMemory(vertices_size, sizeof(EfbPokeData), true, true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue