diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-27 06:26:16 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | ed14d31f663e126a8f9fe0ea8abff8e27c46248b (patch) | |
tree | 6bfe4bec1eda9960aef7c80dfa5926ab97984bd3 /src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp | |
parent | glsl: textures wip (diff) | |
download | yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.tar yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.tar.gz yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.tar.bz2 yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.tar.lz yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.tar.xz yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.tar.zst yuzu-ed14d31f663e126a8f9fe0ea8abff8e27c46248b.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp index 42b1e8764..761145a5d 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp @@ -50,15 +50,7 @@ void EmitPhiMove(EmitContext& ctx, const IR::Value& phi_value, const IR::Value& if (phi_reg == val_reg) { return; } - if (phi_type == value.Type()) { - ctx.Add("{}={}; // PHI MOVE", phi_reg, val_reg); - } else if (phi_type == IR::Type::U32 && value.Type() == IR::Type::F32) { - ctx.Add("{}=floatBitsToUint({}); // CAST PHI MOVE", phi_reg, val_reg); - } else { - throw NotImplementedException("{} to {} move", phi_type, value.Type()); - const auto cast{ctx.reg_alloc.GetGlslType(phi_type)}; - ctx.Add("{}={}({}); // CAST PHI MOVE", phi_reg, cast, val_reg); - } + ctx.Add("{}={};", phi_reg, val_reg); } void EmitBranch(EmitContext& ctx, std::string_view label) { @@ -245,7 +237,7 @@ void EmitWriteLocal(EmitContext& ctx, std::string_view word_offset, std::string_ } void EmitUndefU1(EmitContext& ctx, IR::Inst& inst) { - NotImplemented(); + ctx.AddU1("{}=false;", inst); } void EmitUndefU8(EmitContext& ctx, IR::Inst& inst) { |