summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorJannik Vogel <email@jannikvogel.de>2016-05-11 13:39:28 +0200
committerJannik Vogel <email@jannikvogel.de>2016-06-07 00:06:28 +0200
commit57855a1701474c65b8dd95d0c312d02fae8fe1a6 (patch)
treeb56fa3b4381e767aec2cba572e656e51110cd92e /src/video_core/command_processor.cpp
parentOpenGL: Avoid undefined behaviour for UNIFORM_BLOCK_DATA_SIZE (diff)
downloadyuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.tar
yuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.tar.gz
yuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.tar.bz2
yuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.tar.lz
yuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.tar.xz
yuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.tar.zst
yuzu-57855a1701474c65b8dd95d0c312d02fae8fe1a6.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 19e03adf4..689859049 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -423,6 +423,20 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
break;
}
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[0], 0xe8):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[1], 0xe9):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[2], 0xea):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[3], 0xeb):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[4], 0xec):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[5], 0xed):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[6], 0xee):
+ case PICA_REG_INDEX_WORKAROUND(fog_lut_data[7], 0xef):
+ {
+ g_state.fog.lut[regs.fog_lut_offset % 128].raw = value;
+ regs.fog_lut_offset.Assign(regs.fog_lut_offset + 1);
+ break;
+ }
+
default:
break;
}