Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10841 from tellowkrinkle/FBFetchLogicOpMasking
VideoCommon: Properly mask fbfetch logic op emulation
  • Loading branch information
JMC47 committed Jul 13, 2022
2 parents aa29433 + 6bd0fc8 commit cb350ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/PixelShaderGen.cpp
Expand Up @@ -1843,7 +1843,7 @@ static void WriteLogicOp(ShaderCode& out, const pixel_shader_uid_data* uid_data)
};

out.Write("\tint4 fb_value = iround(initial_ocol0 * 255.0);\n");
out.Write("\tprev = {};\n", logic_op_mode[uid_data->logic_op_mode]);
out.Write("\tprev = ({}) & 0xff;\n", logic_op_mode[uid_data->logic_op_mode]);
}

static void WriteColor(ShaderCode& out, APIType api_type, const pixel_shader_uid_data* uid_data,
Expand Down
1 change: 1 addition & 0 deletions Source/Core/VideoCommon/UberShaderPixel.cpp
Expand Up @@ -1086,6 +1086,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
}

out.Write(" }}\n"
" TevResult &= 0xff;\n"
" }}\n");
}

Expand Down

0 comments on commit cb350ae

Please sign in to comment.