瀏覽代碼

Shader Cahe: Fix Phi Nodes on GLASM.

Fernando Sahmkow 4 年之前
父節點
當前提交
2d4bbd83e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp

+ 1 - 1
src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp

@@ -18,7 +18,7 @@ namespace Shader::Backend::GLASM {
 #define NotImplemented() throw NotImplementedException("GLASM instruction {}", __LINE__)
 
 static void DefinePhi(EmitContext& ctx, IR::Inst& phi) {
-    switch (phi.Arg(0).Type()) {
+    switch (phi.Type()) {
     case IR::Type::U1:
     case IR::Type::U32:
     case IR::Type::F32: