Commit Graph
125 Commits
Author SHA1 Message Date
baldurk bc68f381bc Update tinyexr to 1.0 2021-03-23 12:50:01 +00:00
baldurk 8b4e25b421 Fix CATCH_BREAK_INTO_DEBUGGER that by default surrounds in a lambda
* This is a lambda in upstream catch to avoid some warning, but that means that
  when the debugbreak happens it's in the wrong stack frame (though at least on
  the right line). Fortunately we can override it with a useful definition.
2021-03-06 13:26:03 +00:00
baldurk fb0c92669a 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()

  Cherry pick from https://github.com/baldurk/renderdoc/commit/4232736fc21fc6a13a4de6997a5ae106598b225f
2021-02-18 15:41:40 +00:00
Jake Turner 28941a4f07 Update Catch to version 2.13.4
Fixes compile error on Apple Silicon in CATCH_TRAP
Does not include RenderDoc custom changes to Catch2 ie. https://github.com/baldurk/renderdoc/commit/4232736fc21fc6a13a4de6997a5ae106598b225f
2021-02-18 15:41:40 +00:00
baldurk 026da176bb Update copyright years to 2021 2021-01-13 13:56:10 +00:00
TheGreatMcPain bb45e67e30 Fix compile errors when the '-mf16c' CFLAG is enabled.
Fixes an issue where 'half.hpp' skips the 'immintrin.h' include
statement if '-mf16c' is used.
(which can happen when using '-march=native')
2021-01-07 00:14:14 +00:00
baldurk e5f4ca7bb8 Remove use of const char * in public API and OS specific where possible
* This prevents unnecessary conversions back and forth between rdcstr and const
  char * when going through interfaces. In the OS specific layer this is rarely
  an issue because most of the implementations don't convert to rdcstr, but it
  is convenient to be able to pass in an rdcstr directly. The few cases where
  there's an unecessary construction of an rdcstr is acceptable.
* A couple of places in the public API need to return a string from a global
  function, so can't return an rdcstr due to C ABI, so they still return a const
  char *.
* Similarly const char * is kept for logging, to avoid a dependency on rdcstr
  and because that's one place where unnecessary conversions/constructions may
  be impactful.
2020-12-07 17:44:50 +00:00
baldurk 23e66418d9 Compile fixes on linux 2020-11-19 16:51:20 +00:00
baldurk d0bf0f6eab Add Superluminal PerformanceAPI annotation support 2020-11-19 14:47:10 +00:00
baldurk 8ca89b9c2d Further compile fixes for half library 2020-11-10 10:06:12 +00:00
baldurk 944070fdd7 Fix warnings with clang build of half library
* Comma operator problems when doing math functions that return two parameters
  (e.g quotient).
* Passing bool tag type through varargs - the varargs aren't actually used and
  there's an overload for true_type, so we can instead accept false_type.
* gcc seems to declare numeric_limits as a struct, so friend'ing it as a class
  throws a warning. Since we only care about C++11 we can omit the tag from the
  friend declaration.
2020-11-09 17:59:53 +00:00
baldurk d9121a7f90 Add half.hpp 2.1.0 from http://half.sourceforge.net/ 2020-11-09 12:25:21 +00:00
baldurk 985ce847e4 Remove unused SSE vector from compressonator 2020-10-26 10:19:53 +00:00
baldurk eabfb9b074 Remove isnan call that's seemingly impossible to call portably 2020-07-13 21:04:38 +01:00
baldurk cf867816ab Experimental compressonator compile fix 2020-07-13 20:54:48 +01:00
baldurk bd484d85de Fix bug in Compressonator BC6 options setting 2020-07-12 10:52:10 +01:00
baldurk 6e899b894d Disable warning in tinyexr with latest VS2019 compiler 2020-06-11 22:38:38 +01:00
baldurk d1f4a47cd5 Add a load of MSBuild nonsense to *avoid* targeting a specific Win SDK
* Even though we don't care about the windows SDK version at all, we actively
  need to avoid the default which actively sabotages us.
2020-06-11 20:05:03 +01:00
baldurk 55e1f462ca Disable defines of memset/memcpy that confuse visual assist
* These are only for the opencl build, which we don't care about.
2020-05-28 15:54:36 +01:00
baldurk b0aaae0a8a Update glslang to 8.13.3743. Closes #1851 2020-04-28 18:15:34 +01:00
Arvastra 482114f6f4 Display Thumbnails for dds files. 2020-03-19 17:16:01 +00:00
baldurk 3174ab0db8 Update LZ4 to v1.9.2 2020-03-13 13:06:51 +00:00
baldurk 936e6372cb Remove use of 3rdparty/ prefix from includes
* We instead always have 3rdparty/ in the relevant include search paths and rely
  on that. Each library still has its own unique base dir within 3rdparty to
  clarify where the include is coming from.
2020-03-11 18:00:53 +00:00
baldurk 14d01ff995 Remove support for serialising STL types, remove STL interop 2019-12-16 18:10:32 +00:00
baldurk bd9f4fc389 Remove use of vector/string from core project
* This also affects the drivers via interfaces e.g. IReplayDriver and some
  utility functions.
2019-12-16 18:10:31 +00:00
baldurk c4ca8cb1d1 Reduce reliance on big public headers where possible
* Mostly moving includes from common headers to cpp where possible, and removing
  includes of the whole thing where only enums or rdcstr etc are needed.
2019-12-16 17:06:16 +00:00
baldurk 5f33403849 Switch string_utils to use rdc types 2019-12-16 17:06:15 +00:00
baldurk 8e21b28785 Split basic_types.h into separate independent headers 2019-12-16 17:05:11 +00:00
baldurk ff08748238 Ensure all files have trailing new-lines and enforce with clang warning 2019-12-02 20:28:05 +00:00
baldurk 8db0811678 Don't include ostream in rdcstr.h
* It's only needed for renderdoccmd and catch tests, so define it locally where
  needed.
2019-12-02 11:15:07 +00:00
baldurk 6be0736d24 Update miniz to 2.10 with ZIP64 support 2019-10-14 14:06:42 +01:00
baldurk 420379c50f Update glslang to c11e3156 (release 7.11.3214) 2019-05-20 12:40:56 +01:00
baldurk 699f8753af Convert ToStr, Serialise, and TypeName to use literal strings 2019-05-15 14:12:17 +01:00
baldurk c7bd434024 Don't compile Catch2 into release builds 2019-05-02 13:30:26 +01:00
baldurk a1d1ccea62 Update glslang to a51d3d9f223361165127ded3cd2e59d81e22d91f 2019-02-22 13:56:37 +00:00
baldurk 2ea6174c83 Update glslang to latest tip-of-tree
* This is glslang from commit 9f538c7207b87bd4219a8a9cc95e3c43798793b7
2019-02-18 17:23:20 +00:00
baldurk b178ae800c Add Catch.hpp StringMaker template specialisation for rdcstr
* Otherwise it gets identified as a 'range' with begin() / end() and "foobar"
  gets printed as { 'f', 'o', 'o', 'b', 'a', 'r' }
2019-02-01 18:32:14 +00:00
baldurk 86ff87863e Update copyright years to 2019 2019-02-01 18:32:13 +00:00
baldurk 6eb4289a90 Fix missing override specifiers in Catch appveyor listener 2019-01-09 17:08:31 +00:00
baldurk 7ad3197982 Revamp catch appveyor reporter to report all test results in a batch
* We also only report one test per test-case, as trying to handle sections
  separately is unreliable.
2019-01-09 16:27:15 +00:00
baldurk 7a460fd85e Fix appveyor catch.hpp listener
* Don't completely lose/misappropriate errors in tests that don't have a base
  section
* Change the filename to actually be a filename, and include the base test name
  as the first part of the section stack.
* Don't over-multiply duration by 1000 to convert to milliseconds twice.
2019-01-08 10:04:49 +00:00
baldurk 5e269189b4 Rename catch global variable to prevent clashes 2019-01-03 12:31:27 +00:00
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