mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-25 08:45:26 +00:00
gl_shader_decompiler: Fix casts from fp32 to f16
Casts from f32 to f16 zeroes the higher half of the target register.
This commit is contained in:
parent
6d23b045a0
commit
ef4446cb11
|
@ -1469,7 +1469,8 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression HCastFloat(Operation operation) {
|
Expression HCastFloat(Operation operation) {
|
||||||
return {fmt::format("vec2({})", VisitOperand(operation, 0).AsFloat()), Type::HalfFloat};
|
return {fmt::format("vec2({}, 0.0f)", VisitOperand(operation, 0).AsFloat()),
|
||||||
|
Type::HalfFloat};
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression HUnpack(Operation operation) {
|
Expression HUnpack(Operation operation) {
|
||||||
|
|
Loading…
Reference in a new issue