summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar David Marcec2020-06-05 12:59:59 +1000
committerGravatar David Marcec2020-06-24 12:09:02 +1000
commit74b4334d510b58d96e8305bc3f5a7c8d05e842ba (patch)
tree86cd1ae5c02623529a7ef4071cd075bc4d3ca80b
parentMacro HLE support (diff)
downloadyuzu-74b4334d510b58d96e8305bc3f5a7c8d05e842ba.tar.gz
yuzu-74b4334d510b58d96e8305bc3f5a7c8d05e842ba.tar.xz
yuzu-74b4334d510b58d96e8305bc3f5a7c8d05e842ba.zip
Fix constbuffer for 0217920100488FF7
-rw-r--r--src/video_core/macro/macro_hle.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/macro/macro_hle.cpp b/src/video_core/macro/macro_hle.cpp
index 51827c822..887f40310 100644
--- a/src/video_core/macro/macro_hle.cpp
+++ b/src/video_core/macro/macro_hle.cpp
@@ -59,10 +59,10 @@ static void HLE_0217920100488FF7(Engines::Maxwell3D& maxwell3d,
59 maxwell3d.regs.index_array.count = parameters[1]; 59 maxwell3d.regs.index_array.count = parameters[1];
60 maxwell3d.regs.vb_element_base = element_base; 60 maxwell3d.regs.vb_element_base = element_base;
61 maxwell3d.regs.vb_base_instance = base_instance; 61 maxwell3d.regs.vb_base_instance = base_instance;
62 maxwell3d.regs.const_buffer.cb_pos = 0x640;
63 maxwell3d.mme_draw.instance_count = instance_count; 62 maxwell3d.mme_draw.instance_count = instance_count;
64 maxwell3d.regs.const_buffer.cb_data[0] = element_base; 63 maxwell3d.CallMethodFromMME(0x8e3, 0x640);
65 maxwell3d.regs.const_buffer.cb_data[1] = base_instance; 64 maxwell3d.CallMethodFromMME(0x8e4, element_base);
65 maxwell3d.CallMethodFromMME(0x8e5, base_instance);
66 maxwell3d.regs.draw.topology.Assign( 66 maxwell3d.regs.draw.topology.Assign(
67 static_cast<Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology>(parameters[0])); 67 static_cast<Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology>(parameters[0]));
68 if (maxwell3d.ShouldExecute()) { 68 if (maxwell3d.ShouldExecute()) {
@@ -72,10 +72,10 @@ static void HLE_0217920100488FF7(Engines::Maxwell3D& maxwell3d,
72 maxwell3d.regs.index_array.count = 0; 72 maxwell3d.regs.index_array.count = 0;
73 maxwell3d.regs.vb_element_base = 0x0; 73 maxwell3d.regs.vb_element_base = 0x0;
74 maxwell3d.regs.vb_base_instance = 0x0; 74 maxwell3d.regs.vb_base_instance = 0x0;
75 maxwell3d.regs.const_buffer.cb_pos = 0x640;
76 maxwell3d.regs.const_buffer.cb_data[0] = 0;
77 maxwell3d.regs.const_buffer.cb_data[1] = 0;
78 maxwell3d.mme_draw.instance_count = 0; 75 maxwell3d.mme_draw.instance_count = 0;
76 maxwell3d.CallMethodFromMME(0x8e3, 0x640);
77 maxwell3d.CallMethodFromMME(0x8e4, 0x0);
78 maxwell3d.CallMethodFromMME(0x8e5, 0x0);
79} 79}
80 80
81static const std::unordered_map<u64, HLEFunction> hle_funcs{ 81static const std::unordered_map<u64, HLEFunction> hle_funcs{