rpcs3/rpcs3
Jan Beich dd5791a2cc Fixes from FreeBSD package (#3765)
* Thread: unbreak on BSDs after dbc9bdfe02

Utilities/Thread.cpp:1920:2: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
        cpu_set_t cs;
        ^~~~~~~~~
        cpusetid_t
/usr/include/sys/types.h:84:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t    cpusetid_t;
                        ^
Utilities/Thread.cpp:1921:2: error: use of undeclared identifier 'CPU_ZERO'
        CPU_ZERO(&cs);
        ^
Utilities/Thread.cpp:1922:2: error: use of undeclared identifier 'CPU_SET'
        CPU_SET(core, &cs);
        ^
Utilities/Thread.cpp:1923:48: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
        pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cs);
                                                      ^~~~~~~~~
                                                      cpusetid_t

* JIT: use MAP_32BIT on Linux and FreeBSD

Unless RLIMIT_DATA is low enough FreeBSD by default reserves lower 2Gb
for brk(2) style heap, ignoring mmap(2) address hint requested by RPCS3.
Passing MAP_32BIT fixes the following crash

Assertion failed: ((Type == ELF::R_X86_64_32 && (Value <= UINT32_MAX)) || (Type == ELF::R_X86_64_32S && ((int64_t)Value <= INT32_MAX && (int64_t)Value >= INT32_MIN))), function resolveX86_64Relocation, file /usr/ports/devel/llvm40/work/llvm-4.0.1.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp, line 287.

* build: unbreak -DVULKAN_PREBUILT with system glslang on Unix

rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:4:10: fatal error: '../../../../Vulkan/glslang/SPIRV/GlslangToSpv.h' file not found
 #include "../../../../Vulkan/glslang/SPIRV/GlslangToSpv.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

rpcs3/CMakeFiles/rpcs3.dir/Emu/RSX/VK/VKCommonDecompiler.cpp.o: In function `vk::compile_glsl_to_spv(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, glsl::program_domain, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >&)':
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x50e): undefined reference to `glslang::TProgram::TProgram()'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x51d): undefined reference to `glslang::TShader::TShader(EShLanguage)'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x542): undefined reference to `glslang::TShader::setStrings(char const* const*, int)'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x581): undefined reference to `glslang::TShader::parse(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, glslang::TShader::Includer&)'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x5d6): undefined reference to `glslang::TProgram::link(EShMessages)'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x5f1): undefined reference to `glslang::GlslangToSpv(glslang::TIntermediate const&, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >&, glslang::SpvOptions*)'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x5ff): undefined reference to `glslang::TShader::getInfoLog()'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x61a): undefined reference to `glslang::TShader::getInfoDebugLog()'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x630): undefined reference to `glslang::TShader::~TShader()'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x63c): undefined reference to `glslang::TProgram::~TProgram()'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x6d2): undefined reference to `glslang::TShader::~TShader()'
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x6de): undefined reference to `glslang::TProgram::~TProgram()'
rpcs3/CMakeFiles/rpcs3.dir/Emu/RSX/VK/VKCommonDecompiler.cpp.o: In function `vk::initialize_compiler_context()':
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x6f5): undefined reference to `glslang::InitializeProcess()'
rpcs3/CMakeFiles/rpcs3.dir/Emu/RSX/VK/VKCommonDecompiler.cpp.o: In function `vk::finalize_compiler_context()':
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp:(.text+0x856): undefined reference to `glslang::FinalizeProcess()'

* build/msvc: add missing glslang include directory after 6bb3f1b4d7

"c:\projects\rpcs3\rpcs3\VKGSRender.vcxproj" (default target) (15) ->
(ClCompile target) ->
  Emu\RSX\VK\VKCommonDecompiler.cpp(4): fatal error C1083: Cannot open include file: 'SPIRV/GlslangToSpv.h': No such file or directory [c:\projects\rpcs3\rpcs3\VKGSRender.vcxproj]
2017-11-21 01:56:25 +04:00
..
cmake_modules Change compiler requirements in cmake script to match with the values listed in the README.md file 2017-10-08 14:50:31 +03:00
Crypto Escape problematic characters in VFS 2017-10-11 22:01:37 +03:00
Emu Fixes from FreeBSD package (#3765) 2017-11-21 01:56:25 +04:00
Icons Fix some of libpng known incorrect profile spam 2017-09-08 17:23:16 +01:00
Json Qt: move "Disable Vertex Cache" option back to gpu tab 2017-11-20 13:36:13 +03:00
Loader Make it so that TROPUSR doesn't crash on "bad" imput. 2017-11-03 21:15:43 +03:00
rpcs3qt Qt: move "Disable Vertex Cache" option back to gpu tab 2017-11-20 13:36:13 +03:00
basic_keyboard_handler.cpp Perform refactoring of pads to remove the ugly pad initialization. 2017-08-09 22:11:28 +03:00
basic_keyboard_handler.h Remove some warnings from Linux and fixed something from code review. 2017-08-09 22:11:28 +03:00
basic_mouse_handler.cpp Perform refactoring of pads to remove the ugly pad initialization. 2017-08-09 22:11:28 +03:00
basic_mouse_handler.h Remove some warnings from Linux and fixed something from code review. 2017-08-09 22:11:28 +03:00
CMakeLists.txt Fixes from FreeBSD package (#3765) 2017-11-21 01:56:25 +04:00
D3D12GSRender.vcxproj fixes to project files and build scripts 2017-06-08 19:08:44 +03:00
D3D12GSRender.vcxproj.filters Shared PCH (experimental) 2015-12-04 23:37:44 +03:00
define_new_memleakdetect.h Fix compile errors in Debug - MemLeak. 2014-09-07 10:43:25 +02:00
ds4_pad_handler.cpp ds4: Fix initial connection issue and hotplug/dongle calibration detection 2017-09-24 22:03:49 +03:00
ds4_pad_handler.h ds4: Fix initial connection issue and hotplug/dongle calibration detection 2017-09-24 22:03:49 +03:00
emucore.vcxproj sys_net full rewrite 2017-10-05 19:51:37 +03:00
emucore.vcxproj.filters sys_net full rewrite 2017-10-05 19:51:37 +03:00
evdev_joystick_handler.cpp evdev: add analog to dpad option (#3551) 2017-10-19 13:41:02 +03:00
evdev_joystick_handler.h evdev: add analog to dpad option (#3551) 2017-10-19 13:41:02 +03:00
frame_icon.xpm Update .xpm based on new .ico 2017-05-22 20:53:59 +03:00
git-version.cmake Fix branch name for AppVeyor Builds (#3472) 2017-09-22 13:26:43 +03:00
GLGSRender.vcxproj rsx: Texture cache fixes and improvments 2017-09-21 16:17:06 +03:00
GLGSRender.vcxproj.filters rsx: Texture cache fixes and improvments 2017-09-21 16:17:06 +03:00
keyboard_pad_handler.cpp Qt: add Refresh button to gamepad settings, minor cleanup 2017-09-09 19:46:10 +01:00
keyboard_pad_handler.h Pad Refactoring 2017-09-09 00:55:03 +01:00
main.cpp Fix command line args 2017-11-15 21:00:02 +03:00
mm_joystick_handler.cpp Pad Refactoring 2017-09-09 00:55:03 +01:00
mm_joystick_handler.h Pad Refactoring 2017-09-09 00:55:03 +01:00
OpenAL.vcxproj Moves GL, minidx12, OpenAL, stblib to 3rdparty 2016-03-20 22:20:23 +00:00
OpenAL.vcxproj.filters Put XAudio and OpenAL files in separate projects. 2016-01-03 21:01:11 +01:00
pad_thread.cpp Silent some compiler warnings 2017-09-19 13:21:12 +03:00
pad_thread.h Pad Refactoring 2017-09-09 00:55:03 +01:00
ps3emu_api_enums.h Added rpcs3 api (dynamic library) 2016-06-17 21:26:06 +03:00
ps3emu_api_structs.h Added rpcs3 api (dynamic library) 2016-06-17 21:26:06 +03:00
resource.h Add RPCS3 version to logging 2015-09-07 20:13:42 +03:00
resources.qrc GUI: add custom config indicator (#3108) 2017-07-28 23:03:48 +03:00
restore_new.h Fix compile errors in Debug - MemLeak. 2014-09-07 10:43:25 +02:00
rpcs3.desktop Make it pass desktop-file-validate in Ubuntu 14.04 2017-08-18 20:57:21 +03:00
rpcs3.ico Update rpcs3.ico 2017-04-08 00:56:38 +03:00
rpcs3.png Add installation for linux 2017-05-22 20:53:59 +03:00
rpcs3.rc Fix icon and exe name for VS. 2017-06-18 00:30:51 +03:00
rpcs3.svg Add installation for linux 2017-05-22 20:53:59 +03:00
rpcs3.vcxproj Implement Trophy Manager. 2017-10-29 18:48:33 +03:00
rpcs3.vcxproj.filters Implement Trophy Manager. 2017-10-29 18:48:33 +03:00
rpcs3_api.cpp Exitspawn support renewal 2017-09-19 15:07:07 +03:00
rpcs3_app.cpp Qt: Use global Appicon instead of setting it in every Dialog 2017-11-20 00:34:29 +00:00
rpcs3_app.h Qt: move Render_Info to emu_settings.h 2017-10-08 13:34:46 +03:00
rpcs3_version.cpp Bump version to 0.0.4 2017-11-12 18:13:22 +00:00
rpcs3_version.h Remove unnecessary include git-version.h 2017-09-20 14:26:42 +03:00
stb_image.cpp Moves GL, minidx12, OpenAL, stblib to 3rdparty 2016-03-20 22:20:23 +00:00
stdafx.cpp Partial commit: Preview 2016-04-15 19:22:15 +03:00
stdafx.h Silly macro removed-2 2016-08-14 18:19:42 +03:00
stdafx_d3d12.h Partial commit: Preview 2016-04-15 19:22:15 +03:00
VKGSRender.vcxproj Fixes from FreeBSD package (#3765) 2017-11-21 01:56:25 +04:00
VKGSRender.vcxproj.filters gl/vk/rsx: Add a cross-platform overlay text; Minor perf improvements and rsx bugfixes (#2196) 2016-10-11 08:55:42 +08:00
XAudio.vcxproj Dynamic XAudio version detection 2016-07-21 17:46:46 +03:00
XAudio.vcxproj.filters Dynamic XAudio version detection 2016-07-21 17:46:46 +03:00
xinput_pad_handler.cpp Silent some compiler warnings 2017-09-19 13:21:12 +03:00
xinput_pad_handler.h Pad Refactoring 2017-09-09 00:55:03 +01:00