diff options
author | bunnei <bunneidev@gmail.com> | 2015-09-13 00:56:12 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:17:27 +0100 |
commit | 281bc90ad2afe16853178a56e0127cff8b53eb14 (patch) | |
tree | a0367dba3f07648a0fd8ba1ff809aebfe7677c30 /src/video_core/command_processor.cpp | |
parent | pica: Add decodings for distance attenuation and LUT registers. (diff) | |
download | yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.tar yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.tar.gz yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.tar.bz2 yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.tar.lz yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.tar.xz yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.tar.zst yuzu-281bc90ad2afe16853178a56e0127cff8b53eb14.zip |
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 59c75042c..7409534b6 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -464,6 +464,21 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { break; } + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[0], 0x1c8): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[1], 0x1c9): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[2], 0x1ca): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[3], 0x1cb): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[4], 0x1cc): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[5], 0x1cd): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[6], 0x1ce): + case PICA_REG_INDEX_WORKAROUND(lighting.lut_data[7], 0x1cf): + { + auto& lut_config = regs.lighting.lut_config; + g_state.lighting.luts[lut_config.type][lut_config.index].raw = value; + lut_config.index = lut_config.index + 1; + break; + } + default: break; } |