Commit Graph
8433 Commits
Author SHA1 Message Date
baldurk b9f9874c06 Enable shaderStorageImageMultisample at capture time for MSAA stores
* We need this to be able to add STORAGE_BIT to the image even if we don't do
  MSAA stores at capture time
2021-04-12 19:48:48 +01:00
baldurk e037795a85 Don't iterate over internal descriptors added to descriptor heap 2021-04-12 19:48:48 +01:00
baldurk 02e8e8fdf7 Patch imageless framebuffer image usage/formats to match image patching 2021-04-12 19:48:48 +01:00
baldurk 3bc996116d Fix identification of vendor UAV on SM5.1+ 2021-04-12 16:04:39 +01:00
baldurk cf8785db90 Handle multisampled renderbuffers with 0 sample count. Closes #2242
* GL apparently allows this, and it's equivalent to creating a non-multisampled
  renderbuffer. That means we need to create a 2D texture to blit to instead of
  a 2D MSAA texture.
2021-04-12 14:27:33 +01:00
baldurk 3995b81dcc Consume dynamic offsets properly in pipeline state population
* The same descriptor set can be bound multiple times with different offsets so
  we can't store the offset in the set.
2021-04-12 14:00:56 +01:00
baldurk 14698bb451 Ignore location decorations that shouldn't be used in GL 2021-04-12 13:04:02 +01:00
baldurk dcfe7596a1 Don't use SPIR-V entry point name as unique identifier. Closes #2226 2021-04-12 13:04:02 +01:00
Volkan IlbeyliandBaldur Karlsson c3ca732ab9 Fix a crash & a replay issue when AMD AGS DX12 CreateDevice() is called 2021-04-07 11:55:52 +01:00
Jake TurnerandBaldur Karlsson e4cd163c5f Reformatting *.mm files with clang-format 2021-04-07 11:54:46 +01:00
baldurk d1ff368098 Bump version to 1.14 2021-03-29 17:05:44 +01:00
Jake TurnerandBaldur Karlsson 372a449858 Apple support for capture keys F11, F12, PrtScrn
Implemented bool GetKeyState(int key)
Added apple_helpers.mm
apple_isKeyPressed() & apple_initKeyboard()
keyboard capturing is implemented using addLocalMonitorForEventsMatchingMask
2021-03-28 10:52:18 +01:00
baldurk 74d985569c Fix use of range 0 offset instead of current range. Closes #2207 2021-03-26 16:55:27 +00:00
baldurk 72095ff35c Update cmake strip scripts on android to work with latest NDK 2021-03-26 16:55:27 +00:00
Jake TurnerandBaldur Karlsson 65e0028f64 Apple increased lsof wait time
Need a longer time when launching applications from xcode for debugging
Previously the wait time was ~1 second, now it is ~8 seconds
2021-03-26 09:39:55 +00:00
Jake TurnerandBaldur Karlsson ddd6d2f86f Apple set the name of the python libs
Required to make RENDERDOC_RunFunctionalTests try to run on Apple
2021-03-26 09:39:55 +00:00
Jake TurnerandBaldur Karlsson e074c3aba0 Apple renamed nsctx -> nsgl_ctx
Changed some naming of parameters in the NSGL Objective-C functions
2021-03-26 09:39:55 +00:00
baldurk 2545dfc853 Remove workaround disabling BDA on AMD from driver 21.3.1 2021-03-25 15:41:27 +00:00
baldurk 0b8d784730 Handle NULL descriptor binds in push descriptors correctly. Closes #2217 2021-03-25 15:41:27 +00:00
baldurk f670586ca5 Add support for nvapi wrapped PSO create functions 2021-03-25 15:41:27 +00:00
Jake TurnerandBaldur Karlsson 30ca842e98 On Apple use the view object as the window handle
The view is constant per window, the layer can change.
The layer is constant for Vulkan windows
The layer changes for GL windows
2021-03-25 09:36:33 +00:00
Jake TurnerandBaldur Karlsson 1700249a79 Do not access "view" in getMetalLayerSize
Fixes Main thread checker assert in getMetalLayerSize
Use the layer.contentsScale to adjust for high DPI instead of "view convertSizeToBacking"
2021-03-25 09:36:33 +00:00
baldurk 911d290948 Fix warning about implicit std::pair copy in android hook code 2021-03-23 12:50:26 +00:00
baldurk 0c83ff6a78 Ignore warnings in lizard files on new android compilers 2021-03-23 12:50:11 +00:00
baldurk bc68f381bc Update tinyexr to 1.0 2021-03-23 12:50:01 +00:00
baldurk 261be0e597 Handle empty infinite loops in SPIR-V disassembler 2021-03-23 11:39:14 +00:00
baldurk 47ebc9f5c2 Add missing physical feature check in vulkan memory model features 2021-03-23 11:38:59 +00:00
baldurk 6f8bf648aa Fix build on VS2019 2021-03-22 19:19:38 +00:00
baldurk 08825a0bf8 Handle a couple of other instructions for type replacements in postvs 2021-03-22 18:37:10 +00:00
baldurk 3b62d8b326 Account for overlapping ranges needing to be patched to another space 2021-03-22 18:37:10 +00:00
baldurk 63df049646 Fix typo preventing loading recent D3D12 captures 2021-03-22 18:37:10 +00:00
baldurk 3b341649f6 Properly set byte count for STARTUPINFO struct 2021-03-22 18:37:10 +00:00
baldurk c30e969a69 Remove vulkan environment variable when not hooking child processes
* If we don't explicitly remove it, the environment variable can get inherited
  into child processes that we don't intend to hook.
2021-03-22 18:37:09 +00:00
baldurk 287da369fc Fix handling of child processes on linux
* We need to ensure we remodify LD_LIBRARY_PATH and LD_PRELOAD before fork/exec
  if the application (say bash running a script) has overwritten them. We also
  don't want these to be accidentally inherited into children if we're not
  hooking children - the same for the vulkan env var, which can't be unset
  immediately on process injection like the others because it needs to hang
  around indefinitely.
2021-03-22 18:37:09 +00:00
baldurk c9fe986057 Print target control logging after logging has been enabled 2021-03-22 18:37:09 +00:00
baldurk 01f86e7c3a Pause at main first before adding PIDs to zombie list on linux 2021-03-22 18:37:09 +00:00
baldurk 08d9cf26b5 Fix initial/final layouts on depth attachment on vulkan mesh render 2021-03-22 18:37:09 +00:00
Jake TurnerandBaldur Karlsson 2a8cd9ef05 Vulkan Mac High DPI fix GetOutputWindowDimensions
Convert layer bounds to backing co-ordinates
Fixes the TextureViewer cursor co-ordinates being incorrect on high DPI displays
Replaced getMetalLayerWidth and getMetalLayerHeight with single call getMetalLayerSize
2021-03-16 19:22:31 +00:00
Jake TurnerandBaldur Karlsson 6b6a720c08 Apple remove allocPath from GetExecutableFilename
allocPath was allocated but never used
2021-03-16 19:22:31 +00:00
baldurk ed954cea4d Fix identification of GL framebuffer outputs with renderbuffers 2021-03-15 23:32:13 +00:00
baldurk 6634f06cbd Fix cases that could transition unused image subresources from UNDEFINED 2021-03-15 15:35:26 +00:00
baldurk 80fe6160fb Remove platform specific external object extension on vulkan 2021-03-15 14:40:16 +00:00
baldurk 827a48fe57 Check sampler validity against immutable samplers on serialise 2021-03-15 14:39:21 +00:00
baldurk 90d7bc1926 Fix configuration of spec constants when patching compute pipelines 2021-03-15 12:33:13 +00:00
Jake TurnerandBaldur Karlsson 9c787bd05d Tidyup the Apple RPATH usage
Use @rpath for build and install to reference dynamic libraries
Set RPATH to "@executable_path/../lib" when linking
2021-03-14 11:17:31 +00:00
Jake TurnerandBaldur Karlsson fd99dc5097 Fix Apple link errors when disabling Vulkan
Apple needs Cocoa and Quartz for Vulkan or OpenGL version
2021-03-14 11:17:31 +00:00
Jake TurnerandBaldur Karlsson 004a731607 On Apple use GetLibraryFilename() to set libfile
Solves problem when injecting renderdoc into a process from an executable which is not renderdoccmd or qrenderdoc
2021-03-14 11:17:31 +00:00
Jake TurnerandBaldur Karlsson 87cb4e58b6 Check for GL debug extension when using it
Apple does not support glDebugMessageCallback
2021-03-14 11:17:31 +00:00
baldurk 05e7d1eab9 Add some debug regions in internal GL code 2021-03-13 00:47:04 +00:00
baldurk 414f7bbff6 Use correct attachment when querying framebuffer mip/layer on clear 2021-03-13 00:46:52 +00:00