mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
Merge pull request #10841 from tellowkrinkle/FBFetchLogicOpMasking
VideoCommon: Properly mask fbfetch logic op emulation
This commit is contained in:
commit
cb350aed53
@ -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("\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,
|
static void WriteColor(ShaderCode& out, APIType api_type, const pixel_shader_uid_data* uid_data,
|
||||||
|
@ -1086,6 +1086,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
|
|||||||
}
|
}
|
||||||
|
|
||||||
out.Write(" }}\n"
|
out.Write(" }}\n"
|
||||||
|
" TevResult &= 0xff;\n"
|
||||||
" }}\n");
|
" }}\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user