Commit Graph

6701 Commits

Author SHA1 Message Date
baldurk db07f05f77 Add events for push/pop markers, and queue submits & cmd buf begin/end
* This means the command buffer begin/end won't just be a fake chunk
  with the queue submission API details, it will point to the actual
  begin or end chunk.
2017-12-27 16:05:15 +00:00
baldurk 6adbdf7dfe Update to 4th set of renderdoc swig changes 2017-12-27 16:05:15 +00:00
baldurk 29e95d193c Remove accidentally committed macro change for debugging update checks 2017-12-27 16:05:15 +00:00
baldurk 21d5943d82 Remove dependency on Qt in qrenderdoc python module
* The main addition here apart from some extra stubs is a new rdc type
  for date time objects.
* Although the module doesn't do anything and is only used for docs
  reflection it is desirable to not have to link against Qt as this
  can cause problems when linking the module without unresolved symbols.
2017-12-27 16:05:15 +00:00
baldurk 464218604f Clone 50 commits instead of 1 on appveyor, matching travis
* This allows the git-commit script embedded in each vcxproj to run OK.
2017-12-27 16:05:15 +00:00
David McFarland 00823dac59 gl: initialise namespace of images
Images[i].res.namespace was left set to eResUnknown, causing the image
not to be found in GLResourceManager::GetID when populating the
renderstate view. This would result in images being incorrectly shown as
unbound.
2017-12-27 17:05:01 +01:00
David McFarland 90f9d02ddc gl: fix corruption related to ranged buffer flushes
The offset argument to FlushMapped[Named]BufferRange was being treated
as relative to the start of the buffer, rather than
relative to the mapped range.

During a capture, if a buffer was mapped for write with a non-zero
offset using Map[Named]BufferRange, the offset wouldn't be taken into
account when using the shadow buffer.
2017-12-27 17:05:01 +01:00
baldurk 0f94f7fef7 Fix some int/Py_ssize_t usage in container handling wrappers 2017-12-25 21:33:10 +00:00
baldurk 5200805b55 Disable PCH use on SWIG generated files, disable some warnings. 2017-12-25 21:32:58 +00:00
baldurk 16804e67b4 Disable debug information in release for generated swig cxx files
* This should avoid C1128 errors.
2017-12-25 20:56:35 +00:00
baldurk c8b2a5d488 Fix compilation issue with indexing QByteArray by sptr_t 2017-12-25 16:56:40 +00:00
baldurk 09db13ff3c Add a help lookup panel to the python script editor 2017-12-25 16:05:04 +00:00
baldurk a7398525b2 Add simple tab-completion in interactive python shell 2017-12-25 15:05:30 +00:00
baldurk 16f64a5ace Remove use of unnecessary swig generated .py wrappers
* These .py wrappers are relevant for the non-builtin path, but since we
  use -builtin they serve no purpose except to make things more complex.
* So instead we make the module directly exported as 'module' instead of
  '_module'.
* On windows there's no conflict because we have renderdoc.dll vs
  renderdoc.pyd. On linux it's librenderdoc.so vs renderdoc.so.
* To prevent supporting files like .lib / .pdb from conflicting on
  windows we build the python modules into a subdirectory. They're not
  ever used by the UI (it links in the bindings directly).
2017-12-25 15:05:28 +00:00
baldurk bca1dbef87 Don't insert literal tab if accepting tabs, emit keypress event
* This lets the user decide if they want to do something special with
  tab or just insert the character
2017-12-25 12:53:42 +00:00
baldurk 4da2545407 Add -lrt to librenderdoc.so, for clock_gettime 2017-12-23 08:28:47 +00:00
baldurk 433c19fa1b Always compile AMD project even if drivers are disabled 2017-12-22 22:19:27 +00:00
baldurk cdd731d00c Add -Wl,--no-undefined to ensure all symbols are resolved
* This prevents issues where perhaps some file that is compiled in
  references a symbol in another file which is not compiled or isn't
  enabled, leaving an undefined symbol in librenderdoc.so. This can
  lead to some seriously hard to track bugs.
2017-12-22 22:17:07 +00:00
baldurk 06a25013c1 Fix ' character that was accidentally pasted in 2017-12-22 22:09:43 +00:00
baldurk 2b083b7910 Add options for UI-configured SPIR-V disassemblers to shader viewer 2017-12-22 17:03:10 +00:00
baldurk 203dca8434 Split out invocation of SPIRVDisassembler into member function 2017-12-22 17:03:08 +00:00
baldurk 99c2194348 Don't re-type textures if they are bound to the wrong target in GL 2017-12-22 17:03:08 +00:00
baldurk 978521b81b Add just-in-case handling for texture without a format on GL 2017-12-22 17:03:07 +00:00
baldurk fe4fa7138d Move the GCN disassembly to the replay controller
* This way it's uniformly supported, so e.g. we can still get it when
  the replay itself is running on android.
* To do this we just pass the 'raw' bytes, which contains the whole blob
  needed for disassembly. This means a little extra work to disassemble
  D3D blobs by doing a tiny parse of the DXBC.
2017-12-22 17:03:06 +00:00
baldurk 184c7be0b8 Add an enum listing how a shader's bytes are encoded. 2017-12-22 16:52:42 +00:00
baldurk 98c267cee6 Delete old sync objects before re-syncing in glFenceSync 2017-12-22 16:00:34 +00:00
baldurk f224375790 Set message source for API-captured debug messages on GL. 2017-12-22 16:00:21 +00:00
baldurk 336144afd7 Sanitise loaded values on PersistantConfig 2017-12-22 15:09:29 +00:00
baldurk 9c7e46c6fc Tweak update menus and alerts
* We split the "update available" off to a top-level menu item, instead
  of a sub-item under Help. This gives explicit text saying an update is
  available.
* Change the icon from an hourglass to a slightly more 'updatey' image.
* We now re-cehck every week even if an update is marked available. That
  way people who delay for longer than it takes to release a new version
  will get the latest when they do update. It also gives them a reminder
  every week so that hopefully those delayers will be less common!
2017-12-22 14:41:45 +00:00
baldurk 30589eaf19 Update dialog should not have maximum size on the release notes 2017-12-22 14:41:45 +00:00
baldurk 4c7ea8e158 Remove paragraph symbol literal from sphinx paramlinks
* It doesn't display properly in chm
2017-12-22 14:41:44 +00:00
baldurk 691f91c9aa Re-organise and tidy python API documentation 2017-12-22 14:41:43 +00:00
baldurk 417a811fad Expand docstring checks to also check names of symbols in the interface 2017-12-22 14:41:43 +00:00
baldurk ebaefc82a9 Normalise and make python/public interface more consistent
* We enforce a naming scheme more strongly - types, member functions,
  and enum values must be UpperCaseCamel, and member variables must be
  lowerCaseCamel. No underscores allowed.
* eventId not eventID or EID, and Id preferred to ID in general. Also
  for resourceId.
* Removed some lingering hungarian m_Foo naming.
* Some pipeline state structs that are almost identical between the
  different APIs are pulled out into common structs. Where something
  doesn't make sense (e.g. viewport enable for vulkan) it will just be
  set to a sensible default (in that case always true).
* Changed scissors to be x/y & width/height instead of sometimes
  left/top/right/bottom
* Abbreviations are discouraged, e.g. operation not op, function not
  func.
2017-12-22 13:02:36 +00:00
baldurk fd66995ac2 Let docs build pick release or development built modules 2017-12-21 21:19:49 +00:00
baldurk c414a980b0 Add __pycache__ to .gitignore 2017-12-21 15:01:41 +00:00
baldurk 95bebdbbe1 [Coverity] Remove unused call without side-effects 2017-12-21 12:19:02 +00:00
baldurk 24fce05773 [Coverity] Initialise some uninitialised values 2017-12-21 12:18:36 +00:00
baldurk d902981f72 [Coverity] Fix comparison operators with copy-paste errors 2017-12-21 12:15:32 +00:00
baldurk fe0f4ec879 [Coverity] Fix leak when converting thumbnail for fetch 2017-12-21 12:09:02 +00:00
baldurk c454bf21fb [Coverity] Fix leaking stream reader in error case 2017-12-21 12:07:36 +00:00
baldurk 4a45b9880c [Coverity] Fix memory leak in StartGlobalHook 2017-12-21 12:02:20 +00:00
baldurk 3d76448899 [Coverity] Remove redundant check as we handle NULL elsewhere 2017-12-21 11:58:14 +00:00
baldurk 84331ebf0b [Coverity] Fix missing check for negative return 2017-12-21 11:56:54 +00:00
baldurk 5b19eab93d Don't call GetLiveID() on an already live ID 2017-12-21 11:52:39 +00:00
baldurk 8f598e0b0f Update toolwindowmanager to 2b84ee038d3883836e13a952ae14ab2e6ff842a6 2017-12-21 11:44:55 +00:00
baldurk 7f20040105 Add timeline bar to default layout 2017-12-21 11:10:50 +00:00
baldurk 51ebb61bf0 Add a marker region for PickPixel 2017-12-21 10:51:06 +00:00
baldurk b877f022fe RGBA8 UNORM images in the viewer should be treated as sRGB
* This makes the pixel pick values come back sRGB decoded.
2017-12-21 10:50:48 +00:00
baldurk b070a371e2 Improve D3D11 predication handling, and track other asyncs independently
* Instead of replaying predication, we now always skip it during replay,
  so all objects will render. This is much more consistent and
  understandable behaviour instead of things mysteriously disappearing
  with no obvious reason why.
* We track the predication that would have happened and replay Begin/End
  pairs so that we can know if the predication *would* have failed.
* This is displayed in the UI (currently in the raster state, for lack
  of a better location) with the pass/fail that would have happened.
* This information can feed into other places for analysis like the
  pixel history.
2017-12-20 23:41:08 +00:00