Commit Graph

11889 Commits

Author SHA1 Message Date
baldurk dabd2a803a Give specific instructions on writing UI extensions
* This goes through a worked example of a simple extension.
2021-01-27 16:05:03 +00:00
baldurk ea51a816ed Give ResourceId.Null a proper return type 2021-01-27 16:05:03 +00:00
baldurk 9424b8a3fe Add documentation on setting up python dev environment 2021-01-27 16:05:03 +00:00
baldurk ae96b674c9 Update docs to reference VK_EXT_debug_utils
* VK_EXT_debug_marker still works fine but is deprecated.
2021-01-27 13:03:16 +00:00
baldurk 3f637e0d9b Link to renderdoc-contrib repository 2021-01-27 12:58:51 +00:00
baldurk 29c5965599 Update some missing entries and comments from custom shader snippets 2021-01-27 12:49:36 +00:00
baldurk 34dca01cb2 Don't rely on creation info during capture, it isn't populated
* On capture when we need the buffer size we can get it from the resource
  record.
2021-01-27 00:29:46 +00:00
baldurk 58ef496c8a Conservatively clamp number of samples when saving texture
* No actual texture should be returned with 0 samples but if there are problems
  we want to avoid crashing by dividing by 0 later.
2021-01-27 00:29:46 +00:00
baldurk cf2b0abaf8 Filter out spammy libc messages on android 2021-01-27 00:29:46 +00:00
baldurk 2ab4051140 Don't access graphics pipeline info when doing compute feedback
* This would crash if there's no renderpass set.
2021-01-27 00:29:46 +00:00
baldurk e270d76347 Use the correct default profile version for GLES shaders in glslang
* We need to pass 100 for GLES and 110 for desktop for proper default parsing
  without #version
2021-01-27 00:29:46 +00:00
baldurk 56c5c18aac Tweak leak threshold on vulkan test
* It seems like some drivers don't free some memory from the resident set until
  a certain point, meaning the peak memory is higher after a couple of captures
  then goes down. This isn't a true leak and us  checking the entire process's
  working set size is a very poor litmus test, so bumping this value is fine.
2021-01-27 00:29:46 +00:00
JohnnyonFlame ca4bbc0530 Fix asm/ptrace.h include order 2021-01-27 00:29:14 +00:00
JohnnyonFlame 58a760cc16 Fixed missing ARM_pc define on armhf target. 2021-01-27 00:29:14 +00:00
baldurk 435ef86adf Only set shader ext UAV on DXBC bytecode if it's present
* For DXIL bytecode we don't attempt to nicely fixup the disassembly, but we
  still want to remove the reflected UAV if present.
2021-01-25 21:29:09 +00:00
baldurk 0dde721ad5 Fix reading matrix stride from correct place when reading whole structs 2021-01-25 17:06:02 +00:00
baldurk 176ad2313d Fix check for nan/inf in SPIR-V shader debugging 2021-01-25 16:51:59 +00:00
baldurk 1c37bfa02e Fix painting issues when scrolling with pinned columns 2021-01-25 16:14:03 +00:00
baldurk 5aadf1d649 Fix Iter_Test invalid python tuple use 2021-01-25 12:21:22 +00:00
baldurk d5fb1cfe4b Work around driver issues creating shared contexts on EGL. Closes #2162
* Some drivers seem to fail when trying to share between GLES2 and GLES3 though
  the spec seems to suggest this should work fine. As a workaround if the
  context fails to create, try creating with the same context client version as
  the existing context.
2021-01-25 11:20:21 +00:00
baldurk 106999a43a Fix leak of descriptor memory during each capture on D3D12 2021-01-25 11:13:28 +00:00
baldurk e6601672ec Delete net worker when net manager thread completes 2021-01-22 14:57:48 +00:00
baldurk dae98c3547 Remove memset of struct that's no longer POD 2021-01-22 14:57:35 +00:00
baldurk e292bae3fa Update valgrind suppression file 2021-01-22 14:57:23 +00:00
baldurk 5ce6093661 Pick resident set memory for current memory usage on linux
* The virtual size can be much bigger than the actual amount of memory in use
  that we care about.
2021-01-22 14:20:11 +00:00
baldurk 019d75cd0d Fix demos project compilation on linux 2021-01-22 14:19:33 +00:00
baldurk 0ade24d38a Fix corruption when buffer is deleted after resize mid-frame 2021-01-22 14:19:16 +00:00
baldurk f45bdcb49a Fix Iter_Test and Repeat_Load for newest python API 2021-01-22 13:24:48 +00:00
baldurk a377a61aa2 Clarify acceptable use for issues and support even further
* Capturing copyrighted programs is absolutely not supported or tolerated.
2021-01-22 13:23:53 +00:00
baldurk ba06717842 Don't fetch resource lists for unbound shader stages
* This is a minor optimisation when there are large numbers of bound resources
  that are available (duplicated) to all shader stages. There's no point
  fetching them when there's no shader bound there.
2021-01-21 11:30:50 +00:00
baldurk a4fd53af8f Fix a crash if capture viewers are changed while processing SetEvent
* This could happen in particular now that thumbnails are capture viewers.
2021-01-21 11:28:23 +00:00
baldurk c002c71fe8 Don't display buffers as thumbnails in texture viewer
* This is a holdover from simpler binding times, these days it makes more sense
  to omit buffers than try to hold onto those bindings even when they don't
  contain textures.
2021-01-21 10:43:37 +00:00
baldurk be3a6a5dfb Set counter-fetching mode around IHV counters on OpenGL
* This mode suppresses the default behaviour to end unbalanced things like
  transform feedback and queries, and also stops the capture from using queries
  that might be in use outside.
2021-01-20 20:54:08 +00:00
baldurk 57bb5a73fe Make lack of intel GL counters more obvious to user
* We do the odd thing of adding another fake counter which returns 0s, to direct
  the user to disable paranoid mode in order to enable more perf counters.
2021-01-20 20:40:19 +00:00
baldurk 40f83cfbfd Fix lag in updating texture viewer display when selecting new draws 2021-01-20 17:15:34 +00:00
baldurk 20d8ae2dcf Fix display of 3D texture slices when linear sampling
* When displaying mip 0 of a texture at less than 100% zoom we linear sampling,
  but we don't want to linear sample across slices. Adding a half pixel offset
  in z ensures we sample precisely on the slice itself.
2021-01-20 17:15:34 +00:00
Marcin Ślusarz 309a08373b Put units in table header instead of each row. 2021-01-20 17:15:16 +00:00
baldurk 3d9bba65c8 Fix resizing issue with vulkan scissors display 2021-01-19 17:39:12 +00:00
baldurk f263e244f4 Tweak allowed memory increase when loading VK_Large_Descriptor_Sets 2021-01-19 17:25:35 +00:00
baldurk 0a5353a398 Test inverse viewport height in VK_Mesh_Zoo, with rendering and picking 2021-01-19 17:20:59 +00:00
baldurk 0c410d40ef Fix issue showing whole pass in mesh viewer with inverse view height
* In particular this was breaking if not all draws in the pass used an inverse
  view (unlikely in practice, but comes up in our tests).
2021-01-19 17:20:15 +00:00
baldurk 1fe92989b7 Fix aspect ratio calculation for negative viewport height 2021-01-19 17:10:09 +00:00
baldurk 64131e0510 Test vulkan overalys with rasterizer discard and otherwise invalid state
* E.g. no viewport/scissors bound.
2021-01-19 16:43:57 +00:00
baldurk d607c7dfaa Add debug option to log command buffer recording on vulkan 2021-01-19 16:35:02 +00:00
baldurk ed50a0e01a Add workaround for Qualcomm driver issue
* Calling vkCmdSetLineWidth() before binding and dispatching a compute pipeline
  seems to crash on Qualcomm drivers. We rarely need to prepopulate dynamic
  state without a pipeline bound, so just skip this one state in that case on QC
  devices.
2021-01-19 16:25:17 +00:00
baldurk 086b038d0b Add simple checks for large memory leaks
* Smaller memory leaks are harder to differentiate from noise, so we go for a
  large enough leak to be noticable over time (50,000 frames).
2021-01-19 15:22:12 +00:00
baldurk ac3b923075 Allow querying DXGI swapchains for IDXGIObject & IUnknown
* This will only work if we still get the expected resource back under the hood
  though. Fingers crossed?
2021-01-19 12:06:37 +00:00
baldurk 7125104c3d Disable buggy bandicam vulkan layer. Closes #2152 2021-01-19 10:25:59 +00:00
baldurk 7e5fc40779 Ignore number of captures made in D3D11_Swapchain_Zoo 2021-01-18 14:18:34 +00:00
baldurk c1c36f06ba Handle failed allocation in EXR image viewing path 2021-01-18 13:23:22 +00:00