Commit Graph

7378 Commits

Author SHA1 Message Date
baldurk 5c40914c32 Set disassembly view to NULL when it's deleted 2018-05-13 10:13:49 +01:00
Hans-Kristian Arntzen 5bf0ae3624 Implement RGB10A2SNorm conversion for postvs. 2018-05-12 21:03:01 +01:00
baldurk cf508427da Remove assert that aliased functions will return same pointer
* The validation layers break this, although that's a very worrying
  trend if KHR and core-promoted functions are allowed to be different
  and potentially have different implementations.
2018-05-12 12:58:25 +01:00
baldurk dc8d4f63d5 Don't discard array descriptor update because some elements are invalid
* When checking for validity, some array elements might be valid while
  others might not be. This is still OK if the application knew that
  only certain elements would be accessed by the given shaders - so we
  should still update the others.
2018-05-12 12:57:40 +01:00
baldurk e40ca6f59d Support installing android APKs from local ABI-specific build folders 2018-05-11 20:39:43 +01:00
baldurk 10f263b060 Don't do any work for FBO 0 when structured exporting 2018-05-11 20:39:43 +01:00
baldurk 627a965d69 Specify GLES2 renderable type when fetching egl config
* Fixes preview display on PowerVR
2018-05-11 20:39:43 +01:00
baldurk 6a0aa28ea3 Remove some android log spam while idle, promote debug print to error 2018-05-11 20:39:42 +01:00
Hans-Kristian Arntzen 50dc1d6faa Support A2B10G10R10_SNORM in buffer viewer. 2018-05-11 01:04:45 +01:00
baldurk 8a477d096a Add support for doubles in mesh output fetch on Vulkan 2018-05-10 18:07:45 +01:00
baldurk a77e6a0acd Read & Serialise D3D12 CPU descriptor contents immediately
* For Clear*View and OMSetRenderTargetViews, the CPU descriptor handles
  used are read immediately, the heap can be modified or even deleted
  after the call.
* So we save the contents of the descriptor, ignore the heap, and then
  fill a temporary heap with the descriptor whenever it's needed.
2018-05-10 15:17:54 +01:00
baldurk 2019c82d68 Fixes for double outputs in GL mesh output fetch 2018-05-10 12:04:43 +01:00
baldurk a8e807467d Make sure all resource states have at least one subresource state
* Even if it's invalid, this removes the need to check whether the data
  for a given id is empty or not.
2018-05-10 10:54:25 +01:00
baldurk 0233f39776 Make sure initial contents are properly freed on GL 2018-05-09 13:25:17 +01:00
baldurk d7b0807875 Ignore MultiDraw markers when checking if the capture has markers 2018-05-09 13:05:00 +01:00
baldurk f174853a04 32-bit compile fix 2018-05-08 19:39:38 +01:00
baldurk 4ade1187aa Fix linux compilation - pass parent QObject* to GUIInvoke 2018-05-08 19:10:28 +01:00
baldurk 61c4af1dc6 Ignore -Wattributes on miniz 2018-05-08 19:10:15 +01:00
baldurk 1393b84fb6 Add proper support for KHR_shader_draw_parameters in Vulkan mesh output 2018-05-08 17:51:56 +01:00
baldurk 788cc9f675 Update SPIR-V stringise to latest enums 2018-05-08 16:54:28 +01:00
baldurk c9774ea19b Skip empty files from debug info & display filenames in default disasm 2018-05-08 16:21:21 +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 e5835aa6b3 Add documentation for shader viewer and ISA disassembly views 2018-05-08 15:08:49 +01:00
baldurk f6048a074e Clarify how to use dlopen to open the library for in-application API use 2018-05-08 14:56:04 +01:00
baldurk 1a9e22e2f2 Correct spelling/grammar mistakes in docs 2018-05-08 14:09:27 +01:00
baldurk 2efce90591 [Coverity] Fix incorrect logic identified by deref-before-NULL-check 2018-05-08 12:47:28 +01:00
baldurk ada173ee26 [Coverity] Ensure window dimensions are at least 1x1 on text render 2018-05-08 12:44:31 +01:00
baldurk 8ef0d847ce [Coverity] Remove redundant if() check where both branches are identical 2018-05-08 12:39:10 +01:00
baldurk 65852d9662 [Coverity] Fix mistaken logic resetting flag before check 2018-05-08 12:38:28 +01:00
baldurk 8acad41a0a [Coverity] Fix leaking array in error case 2018-05-08 12:37:39 +01:00
baldurk 42979bfeb3 [Coverity] Add some handling for return values in UI code 2018-05-08 12:32:56 +01:00
baldurk 1a5b189441 [Coverity] Fix uninitialised variable warnings 2018-05-08 12:22:45 +01:00
baldurk 3e69599da2 [Coverity] Fix overflow-before-widen errors 2018-05-08 12:15:41 +01:00
baldurk a45c222941 [Coverity] Remove redundant if() comparisons 2018-05-08 12:10:19 +01:00
baldurk 082ab4d75d GUIInvoke takes a QObject* to avoid callbacks after object lifetime
* The GUIInvoke object takes a QObject, and uses QPointer to check that
  it hasn't been deleted when the callback fires. This prevents delayed
  callbacks from executing after the object has been deleted and
  crashing.
* In most cases the pointer is just 'this'.
2018-05-08 11:54:34 +01:00
baldurk c880def5ef Check that capture's enabled physical devices are available on replay
* This will fail more gracefully than the logical device failing to
  create.
2018-05-08 11:21:29 +01:00
baldurk a461df2b58 GL non-sharing context support 2018-05-08 11:10:32 +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 5d0fede646 Add a note to CONTRIBUTING.md pointing users to interceptor-lib README 2018-05-07 18:42:26 +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
Josh Groves 8d9193aef8 Correct typo 2018-05-06 19:39:55 +01:00
baldurk e96f290772 If a method is found in a superclass, filter on that class not a child
* This could cause a matching event to never happen, if we filtered on
  MethodEntry on the child class, but the method we wanted was on a
  superclass.
2018-05-04 17:44:23 +01:00