diff options
| author | 2021-05-22 15:06:14 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | 3064bde4155b865d61258e8fa87df9e6377578b6 (patch) | |
| tree | a615735520ff688e6ba64775856c76d84e2d2416 /src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp | |
| parent | glsl: More FP instructions/fixes (diff) | |
| download | yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.gz yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.xz yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.zip | |
glsl: FP function fixes
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp index 7ddc24c71..0f95d4465 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp | |||
| @@ -47,7 +47,7 @@ void EmitConvertS64F16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::I | |||
| 47 | 47 | ||
| 48 | void EmitConvertS64F32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 48 | void EmitConvertS64F32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 49 | [[maybe_unused]] std::string_view value) { | 49 | [[maybe_unused]] std::string_view value) { |
| 50 | ctx.AddS64("{}=int64_t({});", inst, value); | 50 | ctx.AddS64("{}=int64_t(double({}));", inst, value); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | void EmitConvertS64F64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 53 | void EmitConvertS64F64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| @@ -92,7 +92,7 @@ void EmitConvertU64F16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::I | |||
| 92 | 92 | ||
| 93 | void EmitConvertU64F32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 93 | void EmitConvertU64F32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 94 | [[maybe_unused]] std::string_view value) { | 94 | [[maybe_unused]] std::string_view value) { |
| 95 | ctx.AddU64("{}=uint64_t({});", inst, value); | 95 | ctx.AddU64("{}=uint64_t(double({}));", inst, value); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | void EmitConvertU64F64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 98 | void EmitConvertU64F64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |