Commit Graph
83 Commits
Author SHA1 Message Date
baldurk 90b432b622 Update interceptor-lib LLVM compile instructions to match STL 2018-09-27 14:44:14 +01:00
Alex Smith c51e6f0e79 Update glslang to latest 2018-08-10 12:45:31 +02:00
baldurk 6b6127d965 Update zstd to v1.3.5. Closes #1046 2018-07-25 17:36:30 +01:00
baldurk 78ba839f15 Update glslang to latest, including SPIR-V headers. Remove HLSL support
* glslang's HLSL support now requires spirv-opt for correct functioning
  and may need more in future, so it's disabled. The compilation was not
  externally exposed, and in future this will be handled via
  out-of-process execution of compilers.
* The update to SPIR-V headers also had the knock-on effect of allowing
  SPIR-V 1.3. Closes #976
2018-05-08 16:20:17 +01:00
baldurk 0f3f822597 32-bit compile fix for tinyexr 2018-05-07 19:27:04 +01:00
baldurk 706b258bd4 Remove use of std::to_string in Catch2 for the sake of Android 2018-05-07 19:25:16 +01:00
baldurk 6e57e17f8e Update tinyexr to 9b30f253 - latest as of the time of this commit 2018-05-07 18:42:26 +01:00
baldurk 314393e412 Declare zlib compatible interface in miniz.h so tinyexr.h can use it 2018-05-07 18:42:26 +01:00
baldurk 909d2fae48 #if out wchar versions of miniz functions to only windows 2018-05-07 18:42:25 +01:00
baldurk d602d9d6d2 Update pugixml to v1.9 2018-05-07 18:42:25 +01:00
baldurk e47f2494e4 Update tinyfiledialogs from v2.7.2 to v3.3.5 (Apr 18, 2018) 2018-05-07 18:42:25 +01:00
baldurk 4232736fc2 Make some custom changes to Catch2 for a better experience
* Add CATCH_CONFIG_FORCE_FALLBACK_STRINGIFIER to force use of ToStr in
  all cases. We can handle ints, etc, we don't need ostringstream, and
  this allows us to handle enums that would otherwise just be printed as
  their integer value.
* Add CATCH_CONFIG_INLINE_DEBUG_BREAK which restores the Catch 1.0
  behaviour of debugbreaks happening in macros and so in-line at the
  actual site failure. So the debugger stops on the CHECK() or REQUIRE()
  call instead of inside AssertionHandler::complete()
2018-05-07 18:42:25 +01:00
baldurk 2f0ff69faa Update Catch to v2.2.2
* This allows us to use ToStr as a stringifier
2018-05-07 18:42:25 +01:00
Cody Northrop 577769ecc2 Small updates to interceptor-lib build steps 2018-05-07 18:42:09 +01:00
Baldur Karlsson 3b239dcfa9 Fix non-ASCII issues in 3rd party files. Refs #915
* Each of these have been reported upstream respectively, but changing
  it manually here to avoid a potentially long turnaround time.
2018-03-13 20:21:50 +00:00
baldurk f5aa915f3f Require explicit opt-in for interceptor-lib use, in case of local llvm
* CMake can find the local LLVM even without specifying LLVM_DIR, but
  we don't want to build it for interceptor-lib unless it's exactly the
  one we want, so we ask for explicit opt-in.
2018-02-01 18:25:30 +00:00
baldurk 64c9e93831 Commit interceptor-lib from GAPID @ 9492539f1
* This library will be used to replace the PLT hooking for most core
  functions, and is generally more reliable. It still fails in some
  cases though when the target function is not patchable.
* To build, it requires LLVM. See README.md for instructions on building
  a compatible LLVM for use.
2018-01-31 18:24:12 +00:00
baldurk 969fdaa499 Add the ability to patch android binary XML manifests in-place
* This lets us add the debuggable flag we need, at the cost of needing
  to re-sign the APK. It works in many cases although sometimes it does
  fail - but this is provided just as a 'best effort' and not as a
  recommended workflow.
2018-01-29 22:37:55 +00:00
baldurk e305029ddd Update copyright years to 2018 2018-01-01 17:55:29 +00:00
baldurk 276783b948 Move custom printf & string_utils out of serialise/ folder 2017-11-03 16:07:46 +00:00
baldurk e6c5c03896 Remove rdctype namespace. Rename rdctype::str -> rdcstr, rdcarray, etc
* Since these types are more prevalent than originally designed, it
  makes more sense to remove the namespace for ease of typing/naming.
* Also add a specialised type 'bytebuf' for an array of bytes.
* This makes mapping easier to SWIG since there's no special casing for
  namespaced arrays. Especially so for nested cases like
  rdctype::array<rdctype::str> -> rdcarray<rdcstr>
2017-11-03 16:04:59 +00:00
baldurk 5e59616a8c Update rdctype::array to have a more stl-like mutable interface
* For the most part the interface is stl-compatible, but we have a few
  little changes of our own for convenience.
* This class is still needed after deleting the C# UI, because we don't
  want to pass C++ stl structs over module boundaries and possibly run
  into hard to diagnose incompatibilities.
2017-11-03 16:01:58 +00:00
baldurk e8dc6471a3 Add pugixml 1.8 2017-11-03 15:54:57 +00:00
baldurk 32c8b38568 Add zstd v1.3.1
* The directories are flattened since the #include paths aren't
  relative and instead just #include "file.h". The recommended
  solution is just to flatten the directory structure.
2017-11-03 15:54:57 +00:00
baldurk e6e36d1ea4 Update lz4 to v1.8.0 2017-11-03 15:54:57 +00:00
baldurk b0d9819d1e Update plthook to latest code from original repo @ 774b270
* This includes several fixes notably arm/aarch64 support. Although it's
  unlikely to be used in practice it's useful to be able to compile
  successfully.
2017-10-24 10:48:18 +01:00
baldurk 079a149c1e Expose a couple of miniz functions publicly 2017-09-29 12:11:13 +01:00
baldurk 43a9f1fd48 Add memsets to mallocs in miniz to avoid false positives in valgrind 2017-09-29 12:11:13 +01:00
baldurk 7d85756f41 Update to glslang as of commit a459fc81427ac23d32db6341e5f2c1634a8c9e69 2017-08-30 10:56:25 +01:00
baldurk eb15c43b41 Add Catch.hpp for unit testing, with appveyor hooks 2017-08-29 13:19:44 +01:00
baldurk 8b9dcbe519 Remove pdblocate, move DIA2 usage into win32_callstack.cpp
* Previously on VS2010, the DIA2 library wasn't properly supported on
  64-bit, so it needed a separate program that always ran 32-bit and
  proxied operations over a named pipe.
* Now DIA2 will load correctly in 32-bit and 64-bit, so we can do the
  work in-process without needing the separate exe.
* We still need to distribute dbghelp.dll and symsrv.dll, so these now
  live alongside renderdoc.dll in the build/install folder with matching
  bitness.
* At the same time fixed a bug I noticed where the 0-based module index
  would return 0 for the first valid module and be treated as invalid.
2017-03-13 17:23:41 +00:00
baldurk b5f5b8534e Update solution and projects to VS2015, VS2010 is no longer supported
* Truly, this is a sad day. But unfortunately many dependencies are just
  not supported and it's increasingly difficult to stay on VS2010.
* In an ideal world, the IDE and compiler would be decoupled, but that's
  not the case.
2017-03-13 17:23:38 +00:00
baldurk c1c16b3f08 Update to glslang as of commit 229a6f7f7ba5cdff8917fa11d754e0fe8db6abf1 2017-03-09 19:13:26 +00:00
baldurk bc2ef77405 Centralise object file dirs in VS so they're not all over the tree 2017-02-14 19:14:52 +00:00
baldurk 4d00722f57 Add tinyfiledialogs from tinyfiledialogs.sf.net for x-platform messages
* Added a couple of very minor warning suppressions for VS. To do with
  casts between size_t and int or char const * and int.
2017-01-09 11:19:15 +00:00
baldurk 6b9cf8dc89 Update glslang to e5e58cfee34dfd6126a770b4250c14ea9340a231 2016-11-04 21:45:10 +01:00
baldurk 57d8cfa89a Add stb_image_resize for thumbnail processing 2016-11-02 23:37:38 +01:00
baldurk e991c12931 Add plthook for hooking libraries on linux even through DEEPBIND
* Based on a fork with slight added extra functionality at
  https://github.com/baldurk/plthook
2016-09-26 17:33:50 +02:00
baldurk 953ebe0389 Avoid __builtin_cpu_supports to workaround gcc bug. Refs #366
* Upstream stb_image.h uses __builtin_cpu_supports to detect if SSE2 is
  available, but GCC versions from at least 5.4 and up to apparently
  6.1.1 on Fedora 24 then give an error about a missing hidden symbol
  __cpu_model when the resulting code is compiled into a DSO.
* Avoiding this by just assuming x64 gives SSE2 will fix 99% of cases,
  and it's not a big loss for the tiny minority with SSE2 on x86 to miss
  out. Thanks to @Anteru for this suggested fix!
2016-09-20 13:21:09 +02:00
baldurk f58f93d283 Remove glslang workaround for nvidia, and check on version number
* Also remove the file timestamp AMD check, since now AMD drivers have
  version numbers that increment.
2016-08-16 17:31:43 +02:00
baldurk 455f64ac7d Update glslang to rev 359dcee7156517c700b152496ede19097c889085 2016-08-15 19:56:01 +02:00
baldurk 864fdbe179 Use @Marqin's include-bin program to remove xxd dependency
* Taken from https://github.com/Marqin/include-bin at commit hash
  202ed6c6f30a599a2d1f3c80177d988b0b1054c1.
2016-08-15 19:56:01 +02:00
baldurk 081bdc3fd8 Back out breaking glslang change on nvidia, remove texel fetch hack
* No fixed nvidia driver has been released, and since there is an easy
  workaround that doesn't break any other IHV's drivers, temporarily do
  that until nvidia's driver is working again.
2016-07-29 21:48:27 +02:00
baldurk 92d2fe0db9 Add temporary glslang warning fixes 2016-06-28 19:10:04 +02:00
baldurk 9733f7772d Update glslang to upstream commit 5bc4d9a26ff9 2016-06-28 18:59:05 +02:00
baldurk d3eee53c57 Temporary glslang warning fix 2016-04-16 19:16:14 +02:00
baldurk 5989f3c2ce Update glslang build to master revision e1cd410d9c03 2016-04-16 19:08:22 +02:00
baldurk 8a2b0bd6e9 Match upstream change to fix this warning, made a few days ago 2016-04-09 13:30:45 +02:00
baldurk 836248b629 Fix for compile warning, parameter shadowing class member 2016-04-09 13:01:09 +02:00
baldurk dacd633fac Remove true from 'infinite' for loops, to fix warning C4127 const expr 2016-04-09 12:44:28 +02:00