summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncRequests.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2015-12-20 00:34:56 +1000
committerStenzek <stenzek@gmail.com>2015-12-20 14:42:14 +1000
commita61fc372bbb538cba7bf43a6402f3036fb468810 (patch)
tree02d3994714326189f0f57c7fc21efb970aedb567 /Source/Core/VideoCommon/AsyncRequests.cpp
parent7b628c99ec4731ab606b8dd50ce3c3223d81b4eb (diff)
VideoCommon: Change PokeEFB to take a pointer rather than a vector
This saves allocating a vector for the pass-through path.
Diffstat (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index 993b6bce2c..1ce7c8fdb7 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -44,7 +44,7 @@ void AsyncRequests::PullEventsInternal()
} while(!m_queue.empty() && m_queue.front().type == first_event.type);
lock.unlock();
- g_renderer->PokeEFB(t, m_merged_efb_pokes);
+ g_renderer->PokeEFB(t, m_merged_efb_pokes.data(), m_merged_efb_pokes.size());
lock.lock();
continue;
}
@@ -109,11 +109,17 @@ void AsyncRequests::HandleEvent(const AsyncRequests::Event& e)
switch (e.type)
{
case Event::EFB_POKE_COLOR:
- g_renderer->AccessEFB(POKE_COLOR, e.efb_poke.x, e.efb_poke.y, e.efb_poke.data);
+ {
+ EfbPokeData poke = { e.efb_poke.x, e.efb_poke.y, e.efb_poke.data };
+ g_renderer->PokeEFB(POKE_COLOR, &poke, 1);
+ }
break;
case Event::EFB_POKE_Z:
- g_renderer->AccessEFB(POKE_Z, e.efb_poke.x, e.efb_poke.y, e.efb_poke.data);
+ {
+ EfbPokeData poke = { e.efb_poke.x, e.efb_poke.y, e.efb_poke.data };
+ g_renderer->PokeEFB(POKE_Z, &poke, 1);
+ }
break;
case Event::EFB_PEEK_COLOR: