Commit Graph

5846 Commits

Author SHA1 Message Date
Cody Northrop e0dfdedb24 android: Add execCommand and update adbExecCommand
This adds a convenient way to call out to commands other than adb
and see their result.  Updated adbExecCommand to use the new helper.
2017-07-21 10:29:46 -07:00
Cody Northrop 930cc2cfb0 posix: Don't modify env while getting app path
This code was inadvertently changing the working environment
of applications that called it.  Hasn't been a problem until
we started calling scripts which need PATH to remain good.
2017-07-21 10:29:46 -07:00
baldurk 1ff3da4a82 Split up C-comment in a multi-line macro that was confusing clang-format
* Every time clang-format applied to this file, it would add a new \
  on the end of the first line of the comment. Splitting it into two
  single-line C comments works around this behaviour.
2017-07-21 17:29:09 +01:00
baldurk 5b3ffcd5b1 Add --build-id link parameter on android so that symbols can be loaded
* Without this android studio/lldb can't load the symbols if the lib
  inserted in an apk has been stripped.
2017-07-21 17:24:47 +01:00
baldurk 1c75ee886c Restore single-channel selection for depth/stencil display
* Use color mask to prevent depth from being splatted out across all
  channels and writing into where 'stencil' data should be.
2017-07-21 17:21:19 +01:00
Jimmy Lee 06502e12c4 remap all depth format for gles depth fetch 2017-07-21 08:18:56 -07:00
Janos Pantos 74b343afe3 Add support for glBlendBarrier GLES core function 2017-07-20 11:22:47 -07:00
Janos Pantos 5123da2acd Add GLES 3.2 core header and its dependencies 2017-07-20 11:22:47 -07:00
Janos Pantos 6eac3dea9d Fix emulating luminance format during replay 2017-07-20 09:51:17 -07:00
Janos Pantos 5af1aa5cad Don't use glCopyImageSubData for compressed textures on GLES
It seems that it does not works for compressed textures on GLES, so
it isn't used during serialization and replay.
2017-07-20 09:51:17 -07:00
Peter Gal ca2b12be4d Export the egl* symbols via linker script
The egl symbols should be exported so applications
using it can correctly run with RenderDoc.
2017-07-20 09:50:46 -07:00
Peter Gal 681aeba443 Advertise EGL extensions via gl ext string
Advertised EGL extensions:
* EGL_KHR_create_context
* EGL_KHR_surfaceless_context
2017-07-20 09:50:29 -07:00
Janos Pantos a8840c6728 Add support for GL_EXT_discard_framebuffer extension 2017-07-18 09:50:51 -07:00
Janos Pantos 94efd7bf0c Add support for some GLES extensions
* GL_OES_depth24
* GL_OES_depth32
* GL_OES_depth_texture
* GL_OES_depth_texture_cube_map
* GL_OES_fbo_render_mipmap
* GL_OES_packed_depth_stencil
* GL_OES_texture_3D
* GL_OES_texture_npot
* GL_OES_vertex_half_float
2017-07-18 09:50:51 -07:00
baldurk 6ad59c94a3 Don't use linker script on apple 2017-07-17 17:21:04 +01:00
baldurk 389cff23f3 Add linker version script to explicitly expose symbols. Refs #683
* When statically linking libstdc++ by default the symbols are all
  default visibility. This causes a problem if you statically link an
  old libstdc++ then inject librenderdoc.so, and the application starts
  using the old libstdc++ instead of the system's.
* Really we only want to use the static one for calls from
  librenderdoc.so. In theory -Wl,--exclude-libs,libstdc++ should do this
  for us, but it starts to cause bizarre crashes.
* Instead, we have to resort to a manual linker script which whitelists
  which symbols should be visible. Normally we can do this just for our
  own symbols with -fvisibility=hidden and __attribute__((visibility))
  but that doesn't work for linked symbols apparently.
2017-07-17 16:34:13 +01:00
baldurk 2f6dffffc5 Expose camera class properly, drop Camera_* entry points from Qt UI 2017-07-17 16:34:12 +01:00
baldurk 515c933545 Rename Maths_* and Topology_* to make RENDERDOC_ a consistent prefix
* This will make it easier for a linker script on linux
2017-07-17 15:14:15 +01:00
baldurk 4a8702f66e Fix some cases where drawcall previous/next pointers wouldn't be set up 2017-07-17 12:46:43 +01:00
baldurk a11a00a7b5 Make sure Qt objects are deleted on the Qt main thread 2017-07-17 12:36:20 +01:00
baldurk 41092e869f Allow clicking 'next draw' from the frame start marker at EID 0 2017-07-17 12:36:04 +01:00
baldurk 8adde662fd Save target of clear calls that don't clear currently bound targets
* This prevents the UI from showing confusing results when the currently
  bound state doesn't match what's being cleared.
2017-07-17 11:33:50 +01:00
baldurk 1676f2698e Disable previous/next buttons when there's no previous/next drawcall 2017-07-17 11:30:31 +01:00
baldurk 4532d04b5b Remove stale documentation about python scripting 2017-07-14 22:44:20 +01:00
baldurk 76cfcd5601 Highlight resources/history from other parts of the UI in timeline bar 2017-07-14 19:57:14 +01:00
baldurk 9ea8ed229d Add usage/history highlighting 2017-07-14 19:56:56 +01:00
baldurk 0ecf9ee8fb Add marker regions and drawcalls to the display 2017-07-14 18:44:19 +01:00
baldurk acae04af02 Expose getLuminance for QColor 2017-07-14 17:17:54 +01:00
baldurk 0aad2e9c03 Tweak hover label a bit - remove it on leave and don't clip both sides 2017-07-14 13:09:03 +01:00
baldurk 57bdd0495b Add labels on hover and current event, and jump to event on click 2017-07-14 12:56:10 +01:00
baldurk 50ca57aaaa Add quoting necessary to build qrenderdoc in path with spaces or dashes
* The paths need to be quoted so that spaces don't expand to multiple
  arguments.
2017-07-13 19:03:40 +01:00
baldurk 9e8bb36008 Compile fix - keep headers separate so clang-format doesn't re-sort them 2017-07-13 18:45:25 +01:00
baldurk d3d1bcd136 Add work in progress timeline bar
* Has an EID scale bar along the top, and simple zoom/pan, but nothing
  else.
2017-07-13 18:44:41 +01:00
baldurk df9f72b857 Add option to ignore icon size when sizing rows in a RDTreeView 2017-07-13 13:57:33 +01:00
baldurk b254cd7ac1 Fix crash with NULL drawcall 2017-07-13 13:57:09 +01:00
baldurk 5f94f4a71b Add <QDebug> include file 2017-07-12 23:36:46 +01:00
baldurk a01b85135b Move windows-only code into #ifdef 2017-07-12 21:36:04 +01:00
Michael Rennie bb3fb53a2f GetSizedFormat fix for types that imply an internalFormat.
Previously we chose GL_RGB8, which was invalid for these types.
2017-07-12 11:51:57 -07:00
baldurk 5078d68234 Use new stretch hints mode to improve column sizing in pipeline states 2017-07-12 19:51:10 +01:00
baldurk 24e1a8fc42 Add a new 'stretchy size hint' mode for RDHeaderView
* The basic idea here is to have a reasonable middleground between
  ResizeToContents and Stretch. We want to show at *least* enough for
  the contents, but the remaining space should be shared between the
  columns according to some proportions.
* That way you don't end up with one huge column and several tiny ones
  that are just big enough but no more, but all data is still visible.
2017-07-12 19:50:29 +01:00
baldurk 1e840356a1 Change pipeline state viewers so minimum panel size is smaller
* Add scroll areas for the larger tabs and allow pipe flowchart to
  resize to its minimum size if needed.
* The idea here isn't that anyone will seriously try to use the pipe
  view at 500x200 but more that the minimum size doesn't become a
  problem while moving around windows or panels, or resizing temporarily
2017-07-12 19:44:51 +01:00
baldurk b96242b635 Return a minimum size hint for pipeline flowcharts 2017-07-12 18:26:20 +01:00
baldurk 79979b60c7 Remove contents margins from sizehint when preserving aspect ratio
* This prevents a feedback loop where the label resizes wider to make
  room for the margins, then the margins get bigger to keep the image
  centred/scaled properly, etc.
2017-07-12 18:26:05 +01:00
baldurk bcd08f77a6 Set word wrap on fixed state labels in pipeline viewers
* This allows the pipeline state viewer to have a smaller minimum size
  which is useful when resizing the whole program UI.
2017-07-12 17:29:09 +01:00
baldurk a2004f924f Set default LocalDebuggerWorkingDirectory in the right place
* Somehow vcxproj are order-specific which sounds horrible but doing
  this too early or too late doesn't get picked up.
2017-07-12 16:16:39 +01:00
baldurk 0032a11fc2 Implement global hook feature for Qt 2017-07-12 13:54:12 +01:00
baldurk bf220eed88 Make sure to serialise inject mode with capture settings JSON 2017-07-12 13:45:45 +01:00
baldurk 44b74eb813 Refactor global hooking, to bring it into the C++ OS-specific code
* This way it can be used from Qt or any other UI as well.
* The pipes are created internally and just passed as stdin to the
  renderdoccmd processes instead of being named pipes.
2017-07-12 12:41:39 +01:00
baldurk 7fdd770b15 Don't destroy events that we back into persistently recorded cmd buffers 2017-07-11 20:03:03 +01:00
baldurk dd856a1f1f Remove unused VkBufferCreateInfo structures. Refs #688
* These structs were no longer used since the memory wholeMemBuf was
  added, and they had some confusing enum usage that triggered static
  analysis warnings.
2017-07-11 20:03:03 +01:00