mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 10:47:58 -05:00
glasm: Use CMP.S for Select32
also fixes ADD and SUB to use U modifier
This commit is contained in:
@ -12,7 +12,7 @@ namespace Shader::Backend::GLASM {
|
||||
|
||||
void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
||||
[[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) {
|
||||
ctx.Add("ADD {},{},{};", inst, a, b);
|
||||
ctx.Add("ADD.U {},{},{};", inst, a, b);
|
||||
}
|
||||
|
||||
void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
||||
@ -22,7 +22,7 @@ void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& in
|
||||
|
||||
void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
||||
[[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) {
|
||||
ctx.Add("SUB {},{},{};", inst, a, b);
|
||||
ctx.Add("SUB.U {},{},{};", inst, a, b);
|
||||
}
|
||||
|
||||
void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
||||
|
Reference in New Issue
Block a user