소스 검색

gl_decompiler: min/max op not implement yet

namkazy 6 년 전
부모
커밋
c2665ec9c2
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 4 - 0
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -2114,6 +2114,10 @@ private:
 
     template <const std::string_view& opname, Type type>
     Expression Atomic(Operation operation) {
+        if ((opname == Func::Min || opname == Func::Max) && type == Type::Int) {
+            UNIMPLEMENTED_MSG("Unimplemented Min & Max for atomic operations");
+            return {};
+        }
         return {fmt::format("atomic{}({}, {})", opname, Visit(operation[0]).GetCode(),
                             Visit(operation[1]).As(type)),
                 type};