revert 46d291418ae8953b69c9071331f60ab6fb16df09
revert [glasm] do not do the correct conversions
This commit is contained in:
parent
de9934e393
commit
b54e2eb6b6
1 changed files with 9 additions and 12 deletions
|
@ -225,31 +225,28 @@ void EmitConvertF64U64(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
Convert(ctx, inst, value, "F64", "U64", true);
|
Convert(ctx, inst, value, "F64", "U64", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: For anyone stumbling upon this, this is NOT the correct way to do conversions
|
|
||||||
// however doing it "correctly" seems to break android, Why?
|
|
||||||
|
|
||||||
void EmitConvertU16U32(EmitContext& ctx, IR::Inst& inst, Register value) {
|
void EmitConvertU16U32(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
Convert(ctx, inst, value, "U32", "U16", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void EmitConvertU32U16(EmitContext& ctx, IR::Inst& inst, Register value) {
|
|
||||||
Convert(ctx, inst, value, "U16", "U32", false);
|
Convert(ctx, inst, value, "U16", "U32", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitConvertU8U32(EmitContext& ctx, IR::Inst& inst, Register value) {
|
void EmitConvertU32U16(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
Convert(ctx, inst, value, "U32", "U8", false);
|
Convert(ctx, inst, value, "U32", "U16", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitConvertU32U8(EmitContext& ctx, IR::Inst& inst, Register value) {
|
void EmitConvertU8U32(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
Convert(ctx, inst, value, "U8", "U32", false);
|
Convert(ctx, inst, value, "U8", "U32", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EmitConvertU32U8(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
|
Convert(ctx, inst, value, "U32", "U8", false);
|
||||||
|
}
|
||||||
|
|
||||||
void EmitConvertS32S8(EmitContext& ctx, IR::Inst& inst, Register value) {
|
void EmitConvertS32S8(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
Convert(ctx, inst, value, "S8", "S32", false);
|
Convert(ctx, inst, value, "S32", "S8", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitConvertS32S16(EmitContext& ctx, IR::Inst& inst, Register value) {
|
void EmitConvertS32S16(EmitContext& ctx, IR::Inst& inst, Register value) {
|
||||||
Convert(ctx, inst, value, "S16", "S32", false);
|
Convert(ctx, inst, value, "S32", "S16", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Shader::Backend::GLASM
|
} // namespace Shader::Backend::GLASM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue