Commit Graph

10397 Commits

Author SHA1 Message Date
baldurk 3bdccf37e6 Fix crash with eglGetDisplay(EGL_DEFAULT_DISPLAY) on linux
* We'll try to get a default display when xlib is available, otherwise there's
  nothing we can do and keyboard input will not be available.
2020-03-30 21:47:38 +01:00
baldurk 81c46c9b1e When creating extremely large query pools, fill with data in batches 2020-03-30 21:47:38 +01:00
baldurk 4d2aa3321b Manually apply framebuffer clears when selecting vkCmdBeginRenderPass 2020-03-30 21:47:38 +01:00
baldurk bcc6027a1a Fix renderdoc filters file 2020-03-30 21:47:24 +01:00
baldurk ddea71cd94 Hide any debug messages found while fetching render state. Closes #1802 2020-03-30 21:47:24 +01:00
baldurk e6a9632d81 Do not allow non-absolute paths when saving textures. Closes #1795 2020-03-30 21:47:24 +01:00
Tabea Haeseler 4f72e09b62 Removed conversion from srgb to linear. 2020-03-30 21:47:10 +01:00
Arvastra 101bc02c47 Thumbnail support for BC6 and BC7 2020-03-30 21:47:10 +01:00
Calvin Hsu a59f922ef6 Disable tiled resources for d3d12 check feature
Renderdoc doesn't support TiledResource, as WrappedID3D12Device::CreateReservedResource returns E_NOINTERFACE. This commit reflects the lack of support in WrappedID3D12Device::CheckFeatureSupport.

This allows the application to behave as if the gpu doesn't support
tiled resources.
2020-03-30 21:47:00 +01:00
baldurk 55437ee0f9 Add license attribution for Compressonator 2020-03-23 11:05:24 +00:00
baldurk a9e1c46e46 Fix crash if some settings aren't available e.g. due to the platform 2020-03-23 11:00:01 +00:00
baldurk c52e1a46d1 Add missing vulkanlayer register parameter on linux 2020-03-23 10:51:24 +00:00
baldurk ab6bbfd5fd Don't have more than one query active at once 2020-03-20 19:39:43 +00:00
baldurk 9ea49d6b6e When emulating glTexImage on GLES, manually blit GL_RGB format textures
* Some devices don't support attaching GL_RGB textures to framebuffers.
2020-03-20 16:16:52 +00:00
baldurk 4c5b209e6f Test constant buffer offsetting in cbuffer zoo tests 2020-03-20 16:16:52 +00:00
baldurk 7ff8a95205 Don't end stream-out queries twice 2020-03-20 16:16:52 +00:00
baldurk 0e44c51450 Add stub of pixel shader debugging, without inputs 2020-03-20 16:16:52 +00:00
baldurk 48a24a31e4 Implement location assignment for struct members on I/O variables 2020-03-20 16:16:52 +00:00
baldurk 6c0aa42ff1 Propagate thread initial state to whole workgroup properly 2020-03-20 16:16:51 +00:00
baldurk 4a2d5ddbc6 Fix wrong stage specified in DebugThread 2020-03-20 16:16:51 +00:00
baldurk 8323eb75ee Don't enumerate GPUs while opening crash reporter 2020-03-20 16:16:51 +00:00
baldurk 04f90e055d Protect against empty traces in shader viewer 2020-03-20 16:16:51 +00:00
baldurk 839c510a75 Fix overflow when clamping length of buffer data fetch 2020-03-20 16:16:51 +00:00
Daniel Craig a7af387a36 Disable crash reporting for unofficial renderdoccmd builds
This follows the lead of crash_handler.h in renderdoc proper.
2020-03-20 16:16:37 +00:00
Aliya Pazylbekova 8d2ad78f05 Vk Pixel History: refactoring, per fragment depth
- Refactor to use common funcs
- Add per fragment depth data
- Rename pixelhistory.frag to pixelhistory_primid.frag
- Fix how some per fragment pipelines are created

For per fragment data we create 3 pipelines
1) Post modification pipeline
changes the stencil state and scissors around the target pixel
2) Shader output pipeline
in addition to above, disables rasterization discard, depth bounds test,
culling and turns off blending
3) Primitive ID pipe
in addition to above, disables depth test and depth write, and changes
the fragment shader to only output primitive ID
2020-03-20 16:16:12 +00:00
Aliya Pazylbekova 83623af8d8 Vk Pixel History: per fragment data
- For now only per fragment primitive ID, and colour values, not depth
information.
2020-03-20 16:16:12 +00:00
Daniel Craig 35a3c09b6e Apply clang format to inl files from clang_format_all.sh 2020-03-20 16:16:01 +00:00
Arvastra aa128281ab Fixed BC5 thumbnail and cleanup. 2020-03-20 16:15:50 +00:00
baldurk 187bd57501 Use 64-bit integer for chunk ID
* Using a 32-bit integer, signed, gives only 2 billion chunks before it wraps.
  With Vulkan/D3D12 creating new chunks even while in the background for
  recording commands this is feasible to hit.
2020-03-19 17:16:20 +00:00
baldurk b393effe4e Switch indirect count draw handling to not reserve max draws
* Instead of reserving maxDrawCount number of draws then deleting the ones we
  don't have, reserve only one and then duplicate it to patch up as needed. This
  makes things much better in the case where maxDrawCount is significantly
  higher than the actual draw count (when maxDrawCount is close to the real draw
  count, this makes little difference).
2020-03-19 17:16:20 +00:00
baldurk 6084f1c1f7 Improve fake structured data for indirect draws on vulkan 2020-03-19 17:16:20 +00:00
baldurk 59f06a12f0 Fix crashes with indirect count draws in secondary command buffers
* We need to patch the event count in both primary and secondary command buffers
  in this case
2020-03-19 17:16:19 +00:00
baldurk ac77b7899d Remove VK_Indirect use of image comparisons 2020-03-19 17:16:19 +00:00
baldurk f8a6cbb0c7 Clear mips/slices in overlay on GL to avoid undefined contents 2020-03-19 17:16:19 +00:00
baldurk 7b8eeaa8c4 Add error when opening a GL capture that uses unsupported function 2020-03-19 17:16:19 +00:00
Arvastra 446e209caf Fixed memory leaks and clean up. 2020-03-19 17:16:01 +00:00
Arvastra d7af989746 Tidying up. 2020-03-19 17:16:01 +00:00
Arvastra 482114f6f4 Display Thumbnails for dds files. 2020-03-19 17:16:01 +00:00
Aliya Pazylbekova fd4d9d2ca1 Do not unmap memory is flush is in progress
When capture is triggered, calls to vkQueueSubmit attempt to flush all
coherent mapped memory. This causes a problem in some cases if
application calls vkUnmapMemory on the memory that is being flushed.

The goal is to only allow vkUnmapMemory to proceed if that memory is not
currently being flushed, and is in one of the records in the copy that
vkQueueSubmit made of m_CoherentMaps.
2020-03-19 17:15:53 +00:00
baldurk 7542482ffb Fix missing Qt header 2020-03-19 09:25:47 +00:00
baldurk 1bef8eb94b Copy windows 10 d3dcompiler at build time, if available 2020-03-18 17:34:59 +00:00
baldurk cb6240e271 On replay prefer loading the d3dcompiler we ship
* On windows 7, d3dcompiler_47.dll is too old to support SM5.1 shaders.
2020-03-18 17:34:59 +00:00
baldurk 3bb57bfed7 Support input source vars referencing complex struct type debug vars 2020-03-18 17:34:59 +00:00
baldurk 9991f216bb Avoid small memory heaps when allocating memory to reduce chance of OOM 2020-03-18 17:34:59 +00:00
baldurk abda2c885b Set GPU-local local flag on GPUBuffers that don't need CPU visibility 2020-03-18 17:34:59 +00:00
baldurk ad44e4dcb6 Fix ConvertComponents and add some unit tests 2020-03-18 17:34:59 +00:00
baldurk cd674539fd Change shader debugging tests to check at runtime if it's available
* The config values can be loaded in the tests now.
2020-03-18 17:34:59 +00:00
baldurk d408f77241 Add configuration system for core renderdoc module
* This allows persistent config storage and registering tweak variables that
  works independent of the UI's configuration.
* Config vars can be debug only, which means they will be compiled out in stable
  version releases. This allows for debug-logging tweaks that are available in
  all builds (including nightly builds) for diagnostic purposes, but have zero
  overhead in stable releases.
* Variables have a loose hierarchy defined with _ or . to separate nodes.
2020-03-18 17:34:59 +00:00
baldurk c0e84875f3 Forward signals/slots as well in ForwardingDelegate 2020-03-18 12:02:13 +00:00
baldurk e276146163 Fix RDHeaderView not properly updating in some cases 2020-03-18 12:02:03 +00:00