Commit Graph

7398 Commits

Author SHA1 Message Date
baldurk d8a64c4172 Fix compilation on GCC 8. Closes #984 2018-05-15 19:44:17 +01:00
baldurk 8c5e8081c5 Fix typo in documentation of ShaderVariable::members 2018-05-15 19:44:17 +01:00
baldurk a31a5a9cfb Provide reasonable default values for TextureDisplay struct 2018-05-15 19:44:17 +01:00
baldurk afb7ea5dab Improve python wrapping of WindowingData
* If we make WindowingData an empty struct not an opaque one, it won't leak memory
* Similarly we need typemaps to allow python to pass plain ints and have them cast to pointers
2018-05-15 19:44:17 +01:00
baldurk f0d5bc8f2e Add pass-through unwrapping support for nvenc
* nvenc takes a D3D11 object pointer, which must be unwrapped or else it will crash.
2018-05-15 13:02:39 +01:00
baldurk 757671b97f Add custom right-click menu to texture tabs in texture viewer 2018-05-15 11:27:34 +01:00
baldurk f12b8b5ee1 Check resource name cache ID to avoid unnecessary model resets
* Prevents annoying focus loss when selecting resources when no name has actually changed
2018-05-15 11:27:12 +01:00
baldurk 7eb19ab13f Add better structured data helper functions to expose to python 2018-05-15 10:44:26 +01:00
baldurk a35f4bbeae Add a temporary hack to store the current imageLayout of a descriptor 2018-05-14 18:15:42 +01:00
baldurk 1100d8c0d3 Allow fetching data directly from VkDeviceMemory as well as VkBuffers 2018-05-14 18:15:10 +01:00
baldurk 3861e91d6e Mark D3D12 pure heaps used for placement as memory, not pools 2018-05-14 16:48:06 +01:00
baldurk 913cbf370b Make sure to grab a new command buffer each iteration in GetBufferData 2018-05-14 16:47:50 +01:00
baldurk f698bac6bf Add hack to avoid breaking VkMarkerRegion with multiple vulkan instances
* This can happen when converting to structured data. We let the first
  WrappedVulkan 'claim' the static pointer, and ignore others. It's not
  perfect but avoids the need to refactor and pass in handle everywhere.
2018-05-14 16:43:57 +01:00
baldurk 8a05e29e86 Fix QRenderDoc project filters - some files weren't included properly 2018-05-14 16:42:34 +01:00
baldurk b213d54c1d Account for added Divisor column when setting up vulkan pipeline state 2018-05-14 16:41:25 +01:00
baldurk 5c26270de0 Implement __hash__() for ResourceId 2018-05-14 16:40:58 +01:00
baldurk f1dcb785a1 Fix implementation of array_setsubscript when deleting a range 2018-05-14 16:40:45 +01:00
baldurk 0cc5ed6145 Handle dstArrayElement when updating current bindings from initial state 2018-05-13 10:13:49 +01:00
baldurk 42aefbaf0e Fix off-by-one error with gathering array descriptor writes 2018-05-13 10:13:49 +01:00
baldurk a6ae880b64 Fix a missing else causing doubles to get the wrong expanded format 2018-05-13 10:13:49 +01:00
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