summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/PerfQuery.cpp
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-02-16 22:08:28 +0100
committerTony Wasserka <neobrainx@gmail.com>2014-02-16 22:08:28 +0100
commitde5bfd0bced8b12811d461b8e6683effa6b672fb (patch)
treedc1209fbb812f995c831583c314a01506a099a89 /Source/Core/VideoBackends/D3D/PerfQuery.cpp
parent2a7a94387ca0e096f698c0468307bfe6b1d365d7 (diff)
parent647aad0a19acc2a7bcb637160bb43d794771ed41 (diff)
Merge pull request #37 from degasus/VideoCommonApiFixes
VideoCommon API cleanups
Diffstat (limited to 'Source/Core/VideoBackends/D3D/PerfQuery.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/PerfQuery.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/Source/Core/VideoBackends/D3D/PerfQuery.cpp b/Source/Core/VideoBackends/D3D/PerfQuery.cpp
index 869b7428d6..c7eb97ee0b 100644
--- a/Source/Core/VideoBackends/D3D/PerfQuery.cpp
+++ b/Source/Core/VideoBackends/D3D/PerfQuery.cpp
@@ -29,9 +29,6 @@ PerfQuery::~PerfQuery()
void PerfQuery::EnableQuery(PerfQueryGroup type)
{
- if (!ShouldEmulate())
- return;
-
// Is this sane?
if (m_query_count > m_query_buffer.size() / 2)
WeakFlush();
@@ -57,9 +54,6 @@ void PerfQuery::EnableQuery(PerfQueryGroup type)
void PerfQuery::DisableQuery(PerfQueryGroup type)
{
- if (!ShouldEmulate())
- return;
-
// stop query
if (type == PQG_ZCOMP_ZCOMPLOC || type == PQG_ZCOMP)
{
@@ -76,9 +70,6 @@ void PerfQuery::ResetQuery()
u32 PerfQuery::GetQueryResult(PerfQueryType type)
{
- if (!ShouldEmulate())
- return 0;
-
u32 result = 0;
if (type == PQ_ZCOMP_INPUT_ZCOMPLOC || type == PQ_ZCOMP_OUTPUT_ZCOMPLOC)
@@ -103,9 +94,6 @@ u32 PerfQuery::GetQueryResult(PerfQueryType type)
void PerfQuery::FlushOne()
{
- if (!ShouldEmulate())
- return;
-
auto& entry = m_query_buffer[m_query_read_pos];
UINT64 result = 0;
@@ -126,18 +114,12 @@ void PerfQuery::FlushOne()
// TODO: could selectively flush things, but I don't think that will do much
void PerfQuery::FlushResults()
{
- if (!ShouldEmulate())
- return;
-
while (!IsFlushed())
FlushOne();
}
void PerfQuery::WeakFlush()
{
- if (!ShouldEmulate())
- return;
-
while (!IsFlushed())
{
auto& entry = m_query_buffer[m_query_read_pos];
@@ -162,9 +144,6 @@ void PerfQuery::WeakFlush()
bool PerfQuery::IsFlushed() const
{
- if (!ShouldEmulate())
- return true;
-
return 0 == m_query_count;
}