summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-14 05:13:47 +0200
committerbunnei <bunneidev@gmail.com>2018-04-18 00:11:48 +0200
commit174cba5c586e14445d28a1fc36148178540ff57b (patch)
tree4e53136b745e4e31ee8ce17de70e408357816730 /src/video_core/engines/maxwell_3d.cpp
parentMerge pull request #341 from shinyquagsire23/pfs-hfs-impl (diff)
downloadyuzu-174cba5c586e14445d28a1fc36148178540ff57b.tar
yuzu-174cba5c586e14445d28a1fc36148178540ff57b.tar.gz
yuzu-174cba5c586e14445d28a1fc36148178540ff57b.tar.bz2
yuzu-174cba5c586e14445d28a1fc36148178540ff57b.tar.lz
yuzu-174cba5c586e14445d28a1fc36148178540ff57b.tar.xz
yuzu-174cba5c586e14445d28a1fc36148178540ff57b.tar.zst
yuzu-174cba5c586e14445d28a1fc36148178540ff57b.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 0e1d6d785..41f0e5c9b 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -74,8 +74,6 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
regs.reg_array[method] = value;
-#define MAXWELL3D_REG_INDEX(field_name) (offsetof(Regs, field_name) / sizeof(u32))
-
switch (method) {
case MAXWELL3D_REG_INDEX(code_address.code_address_high):
case MAXWELL3D_REG_INDEX(code_address.code_address_low): {
@@ -136,7 +134,7 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
break;
}
-#undef MAXWELL3D_REG_INDEX
+ VideoCore::g_renderer->Rasterizer()->NotifyMaxwellRegisterChanged(method);
if (debug_context) {
debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandProcessed, nullptr);