diff options
| author | 2016-04-25 09:08:25 -0400 | |
|---|---|---|
| committer | 2016-04-25 09:08:25 -0400 | |
| commit | 28de7f584e25269a4914a6d11b000f7e817cc1b4 (patch) | |
| tree | e691188c0807876d339546e14e41cb916ed24c0e /src | |
| parent | Merge pull request #1576 from smspillaz/fix-build-errors-03272016 (diff) | |
| parent | travis: Install cmake 3.1 (diff) | |
| download | yuzu-28de7f584e25269a4914a6d11b000f7e817cc1b4.tar.gz yuzu-28de7f584e25269a4914a6d11b000f7e817cc1b4.tar.xz yuzu-28de7f584e25269a4914a6d11b000f7e817cc1b4.zip | |
Merge pull request #1714 from smspillaz/fix-1711
Fixes for #1711 and other compilation errors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/assert.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 6 |
4 files changed, 7 insertions, 5 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index 351752c1c..43fa06b4e 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt | |||
| @@ -21,7 +21,7 @@ target_link_libraries(citra ${SDL2_LIBRARY} ${OPENGL_gl_LIBRARY} inih glad) | |||
| 21 | if (MSVC) | 21 | if (MSVC) |
| 22 | target_link_libraries(citra getopt) | 22 | target_link_libraries(citra getopt) |
| 23 | endif() | 23 | endif() |
| 24 | target_link_libraries(citra ${PLATFORM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) | 24 | target_link_libraries(citra ${PLATFORM_LIBRARIES} Threads::Threads) |
| 25 | 25 | ||
| 26 | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") | 26 | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") |
| 27 | install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 27 | install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") |
diff --git a/src/common/assert.h b/src/common/assert.h index d7f19f5eb..cd9b819a9 100644 --- a/src/common/assert.h +++ b/src/common/assert.h | |||
| @@ -39,7 +39,7 @@ static void assert_noinline_call(const Fn& fn) { | |||
| 39 | }); } while (0) | 39 | }); } while (0) |
| 40 | 40 | ||
| 41 | #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") | 41 | #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") |
| 42 | #define UNREACHABLE_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) | 42 | #define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__) |
| 43 | 43 | ||
| 44 | #ifdef _DEBUG | 44 | #ifdef _DEBUG |
| 45 | #define DEBUG_ASSERT(_a_) ASSERT(_a_) | 45 | #define DEBUG_ASSERT(_a_) ASSERT(_a_) |
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 9591522e5..3f71e7f2b 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -43,7 +43,7 @@ void FindContentInfos(Service::Interface* self) { | |||
| 43 | am_content_count[media_type] = cmd_buff[4]; | 43 | am_content_count[media_type] = cmd_buff[4]; |
| 44 | 44 | ||
| 45 | cmd_buff[1] = RESULT_SUCCESS.raw; | 45 | cmd_buff[1] = RESULT_SUCCESS.raw; |
| 46 | LOG_WARNING(Service_AM, "(STUBBED) media_type=%u, title_id=0x%016lx, content_cound=%u, content_ids_pointer=0x%08x, content_info_pointer=0x%08x", | 46 | LOG_WARNING(Service_AM, "(STUBBED) media_type=%u, title_id=0x%016llx, content_cound=%u, content_ids_pointer=0x%08x, content_info_pointer=0x%08x", |
| 47 | media_type, title_id, am_content_count[media_type], content_ids_pointer, content_info_pointer); | 47 | media_type, title_id, am_content_count[media_type], content_ids_pointer, content_info_pointer); |
| 48 | } | 48 | } |
| 49 | 49 | ||
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index b47d3beda..b7747fa42 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp | |||
| @@ -148,7 +148,7 @@ static Instruction GetVertexShaderInstruction(size_t offset) { | |||
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | static void LogCritical(const char* msg) { | 150 | static void LogCritical(const char* msg) { |
| 151 | LOG_CRITICAL(HW_GPU, msg); | 151 | LOG_CRITICAL(HW_GPU, "%s", msg); |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | void JitShader::Compile_Assert(bool condition, const char* msg) { | 154 | void JitShader::Compile_Assert(bool condition, const char* msg) { |
| @@ -795,6 +795,8 @@ void JitShader::FindReturnOffsets() { | |||
| 795 | case OpCode::Id::CALLU: | 795 | case OpCode::Id::CALLU: |
| 796 | return_offsets.push_back(instr.flow_control.dest_offset + instr.flow_control.num_instructions); | 796 | return_offsets.push_back(instr.flow_control.dest_offset + instr.flow_control.num_instructions); |
| 797 | break; | 797 | break; |
| 798 | default: | ||
| 799 | break; | ||
| 798 | } | 800 | } |
| 799 | } | 801 | } |
| 800 | 802 | ||
| @@ -854,7 +856,7 @@ void JitShader::Compile() { | |||
| 854 | uintptr_t size = reinterpret_cast<uintptr_t>(GetCodePtr()) - reinterpret_cast<uintptr_t>(program); | 856 | uintptr_t size = reinterpret_cast<uintptr_t>(GetCodePtr()) - reinterpret_cast<uintptr_t>(program); |
| 855 | ASSERT_MSG(size <= MAX_SHADER_SIZE, "Compiled a shader that exceeds the allocated size!"); | 857 | ASSERT_MSG(size <= MAX_SHADER_SIZE, "Compiled a shader that exceeds the allocated size!"); |
| 856 | 858 | ||
| 857 | LOG_DEBUG(HW_GPU, "Compiled shader size=%d", size); | 859 | LOG_DEBUG(HW_GPU, "Compiled shader size=%lu", size); |
| 858 | } | 860 | } |
| 859 | 861 | ||
| 860 | JitShader::JitShader() { | 862 | JitShader::JitShader() { |