diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-03-14 20:34:35 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-03-14 22:03:12 -0400 |
| commit | 50a476c3714b3c423609ec04ce424c244bd2a1c1 (patch) | |
| tree | 68a1dadba4b9d61223401993865d0efa314e6a26 /Source/Core/VideoBackends/Vulkan/PerfQuery.cpp | |
| parent | 19d97f3fd972f1577ec821306bd438d2cf0232a8 (diff) | |
Assert: Uppercase assertion macros
Macros should be all upper-cased. This is also kind of a wart that's
been sticking out for quite a while now (we avoid prefixing
underscores).
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/PerfQuery.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/PerfQuery.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/PerfQuery.cpp b/Source/Core/VideoBackends/Vulkan/PerfQuery.cpp index 11ba898bf6..ef47cb9ba2 100644 --- a/Source/Core/VideoBackends/Vulkan/PerfQuery.cpp +++ b/Source/Core/VideoBackends/Vulkan/PerfQuery.cpp @@ -76,7 +76,7 @@ void PerfQuery::EnableQuery(PerfQueryGroup type) { u32 index = (m_query_read_pos + m_query_count) % PERF_QUERY_BUFFER_SIZE; ActiveQuery& entry = m_query_buffer[index]; - _assert_(!entry.active && !entry.available); + ASSERT(!entry.active && !entry.available); entry.active = true; m_query_count++; @@ -245,12 +245,12 @@ void PerfQuery::OnCommandBufferQueued(VkCommandBuffer command_buffer, VkFence fe if (entry.available) { // These should be grouped together, and at the start. - _assert_(copy_count == 0); + ASSERT(copy_count == 0); continue; } // If this wrapped around, we need to flush the entries before the end of the buffer. - _assert_(entry.active); + ASSERT(entry.active); if (index < copy_start_index) { QueueCopyQueryResults(command_buffer, fence, copy_start_index, copy_count); @@ -311,7 +311,7 @@ void PerfQuery::ProcessResults(u32 start_index, u32 query_count) query_count * sizeof(PerfQueryDataType)); // Should be at maximum query_count queries pending. - _assert_(query_count <= m_query_count); + ASSERT(query_count <= m_query_count); DEBUG_LOG(VIDEO, "process queries %u-%u", start_index, start_index + query_count - 1); // Remove pending queries. @@ -321,7 +321,7 @@ void PerfQuery::ProcessResults(u32 start_index, u32 query_count) ActiveQuery& entry = m_query_buffer[index]; // Should have a fence associated with it (waiting for a result). - _assert_(entry.pending_fence != VK_NULL_HANDLE); + ASSERT(entry.pending_fence != VK_NULL_HANDLE); entry.pending_fence = VK_NULL_HANDLE; entry.available = false; entry.active = false; |
