From 393fee10a2fe8c5195ed56ab6489fd78bac9e67e Mon Sep 17 00:00:00 2001 From: wwylele Date: Wed, 17 May 2017 22:14:09 +0300 Subject: [PATCH] pica: use correct register value for shader bool_uniforms variable value is not masked. the masked and combined register value should be used instead --- src/video_core/command_processor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 9a09f81dc5..8d3f76bdee 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -423,7 +423,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { } case PICA_REG_INDEX(gs.bool_uniforms): - WriteUniformBoolReg(g_state.gs, value); + WriteUniformBoolReg(g_state.gs, g_state.regs.gs.bool_uniforms.Value()); break; case PICA_REG_INDEX_WORKAROUND(gs.int_uniforms[0], 0x281): @@ -475,7 +475,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { } case PICA_REG_INDEX(vs.bool_uniforms): - WriteUniformBoolReg(g_state.vs, value); + WriteUniformBoolReg(g_state.vs, g_state.regs.vs.bool_uniforms.Value()); break; case PICA_REG_INDEX_WORKAROUND(vs.int_uniforms[0], 0x2b1):