diff options
| author | 2020-03-30 18:48:22 +0700 | |
|---|---|---|
| committer | 2020-03-30 18:48:22 +0700 | |
| commit | c2665ec9c232f473ecb9301da7181159505a1c76 (patch) | |
| tree | 4a8cf1f42d55d65497e50c99a95b5a869459a988 | |
| parent | shader_decode: ATOM/ATOMS: add function to avoid code repetition (diff) | |
| download | yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.gz yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.xz yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.zip | |
gl_decompiler: min/max op not implement yet
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 9121a48bb..c7d24cf14 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -2114,6 +2114,10 @@ private: | |||
| 2114 | 2114 | ||
| 2115 | template <const std::string_view& opname, Type type> | 2115 | template <const std::string_view& opname, Type type> |
| 2116 | Expression Atomic(Operation operation) { | 2116 | Expression Atomic(Operation operation) { |
| 2117 | if ((opname == Func::Min || opname == Func::Max) && type == Type::Int) { | ||
| 2118 | UNIMPLEMENTED_MSG("Unimplemented Min & Max for atomic operations"); | ||
| 2119 | return {}; | ||
| 2120 | } | ||
| 2117 | return {fmt::format("atomic{}({}, {})", opname, Visit(operation[0]).GetCode(), | 2121 | return {fmt::format("atomic{}({}, {})", opname, Visit(operation[0]).GetCode(), |
| 2118 | Visit(operation[1]).As(type)), | 2122 | Visit(operation[1]).As(type)), |
| 2119 | type}; | 2123 | type}; |