diff options
| author | Stenzek <stenzek@gmail.com> | 2015-12-20 00:34:56 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2015-12-20 14:42:14 +1000 |
| commit | a61fc372bbb538cba7bf43a6402f3036fb468810 (patch) | |
| tree | 02d3994714326189f0f57c7fc21efb970aedb567 /Source/Core/VideoBackends/D3D/Render.cpp | |
| parent | 7b628c99ec4731ab606b8dd50ce3c3223d81b4eb (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/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 434742c5c1..e7a04ea6ba 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -474,21 +474,11 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) else if (alpha_read_mode.ReadMode == 1) return (ret | 0xFF000000); // GX_READ_FF else /*if(alpha_read_mode.ReadMode == 0)*/ return (ret & 0x00FFFFFF); // GX_READ_00 } - else // if (type == POKE_COLOR || type == POKE_Z) - { - std::vector<EfbPokeData> vector; - EfbPokeData d; - d.x = x; - d.y = y; - d.data = poke_data; - vector.push_back(d); - PokeEFB(type, vector); - } return 0; } -void Renderer::PokeEFB(EFBAccessType type, const std::vector<EfbPokeData>& data) +void Renderer::PokeEFB(EFBAccessType type, const EfbPokeData* points, size_t num_points) { ResetAPIState(); @@ -513,7 +503,7 @@ void Renderer::PokeEFB(EFBAccessType type, const std::vector<EfbPokeData>& data) FramebufferManager::GetEFBDepthTexture()->GetDSV()); } - D3D::DrawEFBPokeQuads(type, data.data(), data.size()); + D3D::DrawEFBPokeQuads(type, points, num_points); if (type == POKE_Z) { |
