Commit Graph
9266 Commits
Author SHA1 Message Date
baldurk 81aa36e24b Use a macro to reduce visual noise in resource_manager.h 2017-11-03 16:17:30 +00:00
baldurk 9ef0c5282c Make aligned buffer allocation a common function, out of serialiser 2017-11-03 16:15:19 +00:00
baldurk eb7e14d46d Add a formatter for 64-bit integers 2017-11-03 16:13:29 +00:00
baldurk 2d219018cd Move enum class operators from replay_enums.h into main header 2017-11-03 16:10:11 +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 0ae61ea088 Fix translation string being incorrectly split 2017-11-03 15:54:06 +00:00
baldurk b34246607b Handle vulkan base pipelines properly, creating record dependencies 2017-11-03 15:54:05 +00:00
baldurk d0d8cfbc2f Disable buggy and user-hostile NV optimus layer 2017-11-03 15:54:05 +00:00
baldurk 377fc33a92 Prefer native tools to compile renderdoc library
* This prevents link.exe from being at risk of running out of memory
  at link time on release builds, since it will use the 64-bit
  toolchain.
2017-11-03 15:53:27 +00:00
baldurk e1c55b7096 Check for non-NULL resource desc when creating descriptor 2017-11-03 15:53:27 +00:00
Janos PantosandBaldur Karlsson 1fbcab67a0 Disable change events of mipLevel and sliceFace when switching textures
Otherwise, bad texture queries may occur, which refer to mip and slice
values of the previous texture.
2017-11-03 16:22:31 +01:00
baldurk ad026925a6 Fix remapping multiple capture vulkan phys. devs to 1 replay phys. dev 2017-11-03 10:13:08 +00:00
baldurk 0c9cf24921 Fix copy-paste error checking wrong count for validity. Refs #789 2017-10-28 14:11:58 +01:00
baldurk 8639e616cf Don't divide by zero if there are no textures to fetch stats for 2017-10-27 17:50:12 +01:00
baldurk 0d7a064443 Right align both durations in event browser and perf counter data 2017-10-27 12:26:02 +01:00
baldurk 6b230d8de0 Use float formatter for duration column in event browser 2017-10-27 12:26:02 +01:00
baldurk 62260a6404 Add column alignment function to RDTreeWidget 2017-10-27 12:26:01 +01:00
Janos PantosandBaldur Karlsson 26d8f296dd Fix the setting of compressed proxy texture data 2017-10-27 13:25:51 +02:00
Janos PantosandBaldur Karlsson 91ef326465 Create compressed proxy textures with glCompressedTex* functions
For GLES, glTextureImage* functions can not be used for this.
2017-10-27 13:25:51 +02:00
Alex SmithandBaldur Karlsson 27ef460546 Set shader stage in reflection for compute shaders
Missing this meant an incorrect stage flag would be passed to
vkGetShaderInfoAMD for compute shaders when getting a disassembly.
2017-10-25 19:17:40 +02:00
baldurk a379b9283e Ensure descriptors for multi-plane images are valid on replay 2017-10-25 00:22:40 +01:00
baldurk 1d90358872 If a resource is NULL, make sure we don't use an invalid descriptor
* This can happen if the resource was not included in the capture, but
  there was a descriptor passed (i.e. not NULL desc which is handled
  separately) which specifies some parameters, but leaves the format
  as UNKNOWN.
2017-10-25 00:12:09 +01:00
baldurk 77dea7095c Ignore format truncation warning on utf8printf.cpp
* We deliberately truncate in some tests, to check our printf behaves
  correctly.
2017-10-24 23:01:36 +01:00
baldurk 85a7fa744e Check for renderdoc.dll precisely when injecting, not just close match
* This means we don't call into a random dll if it happens to contain
  the substring 'renderdoc.dll' somewhere.
2017-10-24 23:01:03 +01:00
baldurk 751a8f21b4 Set USAGE_SIMULTANEOUS_USE_BIT on secondary cmd bufs. Refs #772 2017-10-24 22:17:29 +01:00
baldurk 7de0f8f6cd Use OpAccessChain to fetch vectors out of matrix output vars. Refs #781 2017-10-24 15:19:48 +01:00
baldurk a575d25d96 Account for mip size decimation when setting mips in SetProxyTextureData 2017-10-24 12:57:42 +01:00
baldurk 1e41875479 Clamp currentIndex from Qt which can come back as -1 in some cases
* If this gets propagated far enough and used as an index it can cause
  crashes, so we clamp to 0 when we know the value should be
  non-negative.
2017-10-24 12:56:31 +01:00
baldurk 5e6ff6a276 Change ASTC to remap to RGBA16F as it contains more than 8-bits of data 2017-10-24 12:29:25 +01:00
baldurk 03376011f5 Make sure to set refData to NULL whenever it's released 2017-10-24 11:36:33 +01: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 f9cb1c68b9 Only call XCloseDisplay if xlib or xcb is enabled. Closes #782 2017-10-24 10:18:31 +01:00
baldurk 48b029ba9b Add case handling for new debug report object types 2017-10-23 23:22:43 +01:00
baldurk b49a8a7f91 Restore modification to vulkan.h that removes include of Xrandr.h 2017-10-23 22:18:08 +01:00
baldurk 74ccb054e0 Fill query pools with dummy data on creation. Refs #765 2017-10-23 18:02:55 +01:00
baldurk b83daddbad Bounds-check access to vertex buffers, in case not enough are bound. 2017-10-23 15:52:45 +01:00
baldurk 42abaf2b4f Prefer using VK_AMD_shader_info to disassemble when available. 2017-10-23 15:05:29 +01:00
baldurk fbf37fd201 Convert to native separators before passing filename to Win32 APIs 2017-10-23 15:01:02 +01:00
baldurk 96d8502ca4 Fix android execCommand to handle path to exe containing spaces 2017-10-23 14:12:37 +01:00
baldurk 4286588ac1 D3D11 context state is cleared before executing a command list.
* Not doing this could taint the state and even cause invalid read-write
  conflicts to change bindings vs. what should happen, if a RT is left
  bound when it shouldn't, and then an SRV is bound as NULL because it
  would conflict.
2017-10-23 13:49:16 +01:00
baldurk 9a3ece6a01 Add a helper macro for obtaining renderdoc's handle from VkInstance
* Since other layers could wrap renderdoc has to use the dispatch table
  pointer as the unique identifier for API calls, not the VkInstance
  directly.
2017-10-23 13:43:38 +01:00
baldurk fe35c4e033 Don't multiply mesh output size by num instances twice in GL 2017-10-23 13:38:53 +01:00
Janos PantosandBaldur Karlsson faf93fa2ac Fix reading back compressed texture data during remote replay 2017-10-23 14:28:16 +02:00
Cory BloorandBaldur Karlsson 860eeace4c Cleanup Help menu actions 2017-10-23 14:27:24 +02:00
Cory BloorandBaldur Karlsson bd994848e1 Improve docs for picking Qt version on Linux 2017-10-23 14:27:24 +02:00