summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-17 04:01:45 +0200
committerLioncash <mathew1800@gmail.com>2020-07-17 05:17:17 +0200
commitc0650cd82c64ec2137c00798b80edbdab76ce3b6 (patch)
tree906149dff45320fe1cecafd12d89dfa9b7d92345
parentmacro_hle: Remove unnecessary std::make_pair calls (diff)
downloadyuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.tar
yuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.tar.gz
yuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.tar.bz2
yuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.tar.lz
yuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.tar.xz
yuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.tar.zst
yuzu-c0650cd82c64ec2137c00798b80edbdab76ce3b6.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/macro/macro_hle.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/video_core/macro/macro_hle.cpp b/src/video_core/macro/macro_hle.cpp
index b64dc67c0..768ae9139 100644
--- a/src/video_core/macro/macro_hle.cpp
+++ b/src/video_core/macro/macro_hle.cpp
@@ -12,8 +12,7 @@ namespace Tegra {
namespace {
// HLE'd functions
-static void HLE_771BB18C62444DA0(Engines::Maxwell3D& maxwell3d,
- const std::vector<u32>& parameters) {
+void HLE_771BB18C62444DA0(Engines::Maxwell3D& maxwell3d, const std::vector<u32>& parameters) {
const u32 instance_count = parameters[2] & maxwell3d.GetRegisterValue(0xD1B);
maxwell3d.regs.draw.topology.Assign(
@@ -33,8 +32,7 @@ static void HLE_771BB18C62444DA0(Engines::Maxwell3D& maxwell3d,
maxwell3d.mme_draw.current_mode = Engines::Maxwell3D::MMEDrawMode::Undefined;
}
-static void HLE_0D61FC9FAAC9FCAD(Engines::Maxwell3D& maxwell3d,
- const std::vector<u32>& parameters) {
+void HLE_0D61FC9FAAC9FCAD(Engines::Maxwell3D& maxwell3d, const std::vector<u32>& parameters) {
const u32 count = (maxwell3d.GetRegisterValue(0xD1B) & parameters[2]);
maxwell3d.regs.vertex_buffer.first = parameters[3];
@@ -52,8 +50,7 @@ static void HLE_0D61FC9FAAC9FCAD(Engines::Maxwell3D& maxwell3d,
maxwell3d.mme_draw.current_mode = Engines::Maxwell3D::MMEDrawMode::Undefined;
}
-static void HLE_0217920100488FF7(Engines::Maxwell3D& maxwell3d,
- const std::vector<u32>& parameters) {
+void HLE_0217920100488FF7(Engines::Maxwell3D& maxwell3d, const std::vector<u32>& parameters) {
const u32 instance_count = (maxwell3d.GetRegisterValue(0xD1B) & parameters[2]);
const u32 element_base = parameters[4];
const u32 base_instance = parameters[5];
@@ -81,7 +78,7 @@ static void HLE_0217920100488FF7(Engines::Maxwell3D& maxwell3d,
maxwell3d.CallMethodFromMME(0x8e5, 0x0);
maxwell3d.mme_draw.current_mode = Engines::Maxwell3D::MMEDrawMode::Undefined;
}
-} // namespace
+} // Anonymous namespace
constexpr std::array<std::pair<u64, HLEFunction>, 3> hle_funcs{{
{0x771BB18C62444DA0, &HLE_771BB18C62444DA0},