Skip to content
Permalink
Browse files

Vulkan: Prevent submission of command buffer with open queries

  • Loading branch information...
stenzek committed Apr 1, 2019
1 parent f2d8c8d commit 474500f07e450eaf9287b6ee7f70389e8f119656
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/Core/VideoBackends/Vulkan/PerfQuery.cpp
@@ -45,6 +45,10 @@ void PerfQuery::EnableQuery(PerfQueryGroup type)
if (m_query_count > m_query_buffer.size() / 2)
PartialFlush(m_query_count == PERF_QUERY_BUFFER_SIZE);

// Ensure command buffer is ready to go before beginning the query, that way we don't submit
// a buffer with open queries.
StateTracker::GetInstance()->Bind();

if (type == PQG_ZCOMP_ZCOMPLOC || type == PQG_ZCOMP)
{
ActiveQuery& entry = m_query_buffer[m_query_next_pos];

0 comments on commit 474500f

Please sign in to comment.
You can’t perform that action at this time.