Commit Graph

5659 Commits

Author SHA1 Message Date
baldurk 472bb820b7 Remove unused events in RangeHistogram 2017-06-12 10:34:17 +01:00
baldurk 348bfbce01 CMake recommends finding PythonInterp before PythonLibs 2017-06-09 21:38:52 +01:00
baldurk cd56726040 Only wrap DXGI outputs if one is returned (some functions return NULL) 2017-06-09 20:08:39 +01:00
baldurk ab96b05b53 Remove mistaken double assignment 2017-06-09 19:38:23 +01:00
baldurk 28c1aee05b Add virtual destructor for CaptureContextInvoker 2017-06-09 19:36:57 +01:00
baldurk f6399609f9 Add headers for mouse and key events being used 2017-06-09 19:36:46 +01:00
baldurk 6d02b16935 Add missing override specifier 2017-06-09 19:36:29 +01:00
baldurk ea85b5e366 Fix stub to match changed signature 2017-06-09 19:36:20 +01:00
baldurk a292838f43 Add a custom tooltip to display elided data in RDTreeViews 2017-06-09 18:41:21 +01:00
baldurk 1574103613 Add click-to-highlight for registers 2017-06-09 17:57:33 +01:00
baldurk f3926340e6 update toolwindowmanager to 091b80d 2017-06-09 17:32:10 +01:00
baldurk 0cfa8c1eb9 Add variable tooltips to the shader viewer showing float/int/uint values 2017-06-09 17:04:23 +01:00
baldurk 2400f6e11f Add fix to Scintilla to ensure mouse tracking is restored on show
* See: https://sourceforge.net/p/scintilla/bugs/1948/
2017-06-09 17:03:24 +01:00
baldurk 0b1c3725b9 Add a fallback path for opaque qwidgets if pyside2 isn't compiled in
* Even if we don't have pyside2 to treat qwidgets as full objects and
  access their methods and data, we still need to be able to pass around
  the QWidget* as an opaque pointer to be able to use the API properly.
* This change falls back to just using SWIG's default opaque pointer
  wrapping and unwrapping when pyside2 isn't available.
2017-06-09 17:02:09 +01:00
baldurk 8e423f4c76 Add some parameter checking to the capture context interface 2017-06-09 17:00:44 +01:00
baldurk 1cc2c22195 Invoke CaptureContext function calls onto UI thread, from python thread
* Any work that might use Qt needs to happen on the UI thread, so when
  running a python script on the python thread we need to invoke across.
  We wrap the main ICaptureContext interface to block invoke onto the UI
  for any function calls that aren't just returning internal data.
2017-06-09 17:00:28 +01:00
baldurk 21836c240d Don't crash on NULL pointers being dealloc'd
* The error handling code will be OK if a NULL parameter was passed in
  but during cleanup it will go through tempdealloc, so we need to check
  that the pointer is actually valid.
2017-06-09 16:57:33 +01:00
baldurk 27ae30aaa3 Print messages to Qt logger from command line python scripts 2017-06-09 16:56:47 +01:00
baldurk 7fe267d548 Only add log viewer at the end of constructors, so the window is ready
* Otherwise if OnLogFileLoaded gets called while adding the log viewer
  the window might be partially constructed and crash.
2017-06-09 12:08:39 +01:00
baldurk 2da46640d0 Add watch variables handling to qt shader viewer 2017-06-09 12:06:57 +01:00
baldurk 2319681217 Mark overrided function as override 2017-06-08 21:31:28 +01:00
baldurk 055acb05e1 Fix an unused variable warning with python parameterless callbacks 2017-06-08 21:31:21 +01:00
baldurk 8a59754bf8 Disable save/close capture menu items when there's no capture open 2017-06-08 18:23:23 +01:00
baldurk 199c26adbf Put the MainWindow in charge of handling 'global' type shortcuts
* QShortcut falls down on duplicates. It can have activatedAmbiguously
  events, but these happen in arbitrary order and the shortcuts on
  menu items just swallow the ambiguous activate so it's not useful.
* Instead we just let MainWindow pick up ShortcutOverride events and
  consult a mapping of which shortcuts to use. We can use a smarter
  selection method to choose the more 'local' shortcut if two shortcuts
  that conflict exist.
2017-06-08 18:23:10 +01:00
baldurk 085026aa91 Update toolwindowmanager to f31edfa 2017-06-08 16:35:14 +01:00
baldurk 2f1301e758 Settle on consistent 'capture' name for captured files, dropping 'log' 2017-06-08 16:35:14 +01:00
Peter Gal 4263b55ffa Fix enum flag usages in the qrenderdoc
There are a few places where the logical 'and' operator
was used to check if a given flag is enabled however
that is not the correct operator.

The binary 'and' operator should be used where
the enum acts as a flag.
2017-06-08 08:34:54 -07:00
baldurk ffcbf233d1 Link against python in python modules for now. Refs #639
* This really isn't ideal as it means the python module will only work
  with that specific major.minor version of python, when it could in
  theory work with any python version above 3.2 or so, depending on what
  features are used.
* Since we're not distributing these modules yet though, add this
  linking to support -Wl,--no-undefined.
2017-06-08 14:02:21 +01:00
Peter Gal a52206ede5 Fix aliases for EXT_disjoint_timer_query
* glGetQueryObjecti64vEXT was used twice as an alias.
* Added missing glIsQueryEXT alias.
* Removed the query related methods from the unhandled block.
2017-06-08 06:02:02 -07:00
Janos Pantos dcdb1bd5ee Extend emulated glGetInternalformativ function in case of GLES 2017-06-08 06:01:55 -07:00
Peter Gal 79c99cc106 Expose GL_OES_vertex_array_object for GLES
Add aliases for the following methods:
* glBindVertexArrayOES
* glDeleteVertexArraysOES
* glGenVertexArraysOES
* glIsVertexArrayOES
2017-06-08 06:01:48 -07:00
babymustgrowstrong 3b1ace7a53 Various fixes/improvements from Android OpenGL ES development 2017-06-08 06:01:39 -07:00
baldurk ccf3b17731 Track buffer category in GL as the union of all bound states
* This fixes a bug with replay proxies where looking at the last bound
  buffer type lead to buffers being created with insufficient flags on
  the local replay.
* It will also handle the case where a buffer is used as e.g. both
  vertex and index and needs to have the flags for both specified.
2017-06-07 23:04:15 +01:00
baldurk 4c64a3e42d Skip listing buffers in GL that aren't from the capture itself 2017-06-07 23:02:43 +01:00
baldurk 9e3a603035 Pass-through glXWaitX calls - no longer needed for link hack. Refs #638 2017-06-07 22:19:59 +01:00
baldurk fd02a3e9d4 Check the most likely resources first (buffer -> tex2d -> 3d -> 1d)
* This is a slight win by avoiding checking all the shader pools
2017-06-07 17:38:52 +01:00
baldurk cb6daea42f Unwrap IDXGIOutput before passing it to real DXGI routines.
* This is a grey area between valid and invalid. Technically we're still
  passing a valid IDXGIOutput to the functions, but in practice the
  function will then probably turn around and cast it to an internal
  concrete type which it no longer points to, and explode.
2017-06-07 17:38:04 +01:00
s.makeev_local 410d3b2c02 Workaround to fix crash in applications with invalid use of DXGI. 2017-06-07 17:32:00 +01:00
baldurk ba61697adf Handle creating buffers through DX-GL interop with GL_NONE. Refs #636 2017-06-07 17:31:33 +01:00
baldurk 8c2f109d7e Remove incorrect and unused call to vkGetImageSubresourceLayout 2017-06-07 17:31:33 +01:00
baldurk 2eb668eea8 Add a special case for naming/tagging VkSurfaceKHR
* Since the record pointer is really just the native window handle and
  not actually a record. We don't care about names for surfaces as we
  don't replay them, so just do a special unwrap and pass it along.
2017-06-07 17:31:33 +01:00
Michael Rennie 494427aac4 Save client-memory vertex and indices when using indexed draws.
Common_pre/postElements merged into CopyClientMemoryArrays.
2017-06-07 09:30:41 -07:00
baldurk 54b9263597 Persist the mesh view's dock layout between sessions 2017-06-03 00:59:57 +01:00
baldurk a4fe376c32 Add column selection popup for event browser and persist column state
* We can add in the Draw # column now, and set up the default state to
  not include the duration column.
2017-06-03 00:53:54 +01:00
baldurk 231c07d390 Make sure to initialise update queueing variable to false 2017-06-03 00:49:16 +01:00
baldurk 63bf0310d3 Fix summing of durations in event browser 2017-06-03 00:46:11 +01:00
baldurk 3b6f63be0d Make event browser columns properly resizable and re-orderable
* Annoyingly although Qt has an internal bool allowUserMoveOfSection0
  which does exactly what we want allowing the tree column to be
  movable, we can't enable it because it's private. So instead we have
  to re-implement section moving ourselves.
* Minor tweak - also made RDTreeWidgets non-movable by default since
  usually we don't want to allow it.
2017-06-03 00:38:02 +01:00
baldurk fdf04cae39 Print better error messages for failures to save textures to disk 2017-06-02 17:59:57 +01:00
baldurk 922263df83 Remove unused save dialog and use the proper dialog for error message 2017-06-02 17:56:39 +01:00
baldurk 0c3dec3b67 Go back to manually drawing PE_PanelItemViewItem in drawBranches()
* There's a messy order-of-operations thing to deal with various
  different themes, as well as a couple of minor problems, but at least
  the highlight and selection bars draw fairly consistently and don't
  leave an ugly gap over the branches.
2017-06-02 17:30:41 +01:00