vogl
8 years agoUI: Improved support for shared contexts and viewing shared state objects master
PeterLValve [Tue, 1 Apr 2014 00:08:31 +0000 (17:08 -0700)]
UI: Improved support for shared contexts and viewing shared state objects
* GL state objects that belong to shared contexts can now be visualized if the parent context is current.
* Framebuffer Objects are NOT considered shared state by OpenGL because they reference textures and renderbuffers which ARE shared state objects.

8 years agoMerge branch 'master' of https://github.com/ValveSoftware/vogl
PeterLValve [Thu, 27 Mar 2014 00:57:53 +0000 (17:57 -0700)]
Merge branch 'master' of https://github.com/ValveSoftware/vogl

8 years agoMerge branch 'master' of https://github.com/ValveSoftware/vogl
Scott Ludwig [Wed, 26 Mar 2014 17:06:05 +0000 (10:06 -0700)]
Merge branch 'master' of https://github.com/ValveSoftware/vogl

8 years agoUI: vogleditor_tracereplayer now outputs messages regarding success of replaying...
PeterLValve [Wed, 26 Mar 2014 23:37:15 +0000 (16:37 -0700)]
UI: vogleditor_tracereplayer now outputs messages regarding success of replaying the in-memory trace and taking snapshots
* NOTE: GL errors / warnings that vogl detects during the replay are not yet redirected back to vogleditor
* The tracereplayer now has better return values to indicate the difference between an error, the user closing the replay window, a successful snapshot, and a successful replay.

8 years agoMerge branch 'master' of https://github.com/ValveSoftware/vogl
PeterLValve [Wed, 26 Mar 2014 01:01:45 +0000 (18:01 -0700)]
Merge branch 'master' of https://github.com/ValveSoftware/vogl

8 years agoAdd support for fast path i386 call stack tracing
Scott Ludwig [Wed, 26 Mar 2014 16:53:31 +0000 (09:53 -0700)]
Add support for fast path i386 call stack tracing

8 years agoUI: Update vogleditor_output so that it can be used from other files without having...
PeterLValve [Wed, 26 Mar 2014 23:22:42 +0000 (16:22 -0700)]
UI: Update vogleditor_output so that it can be used from other files without having to be initialized
* The global object needed to be marked as extern and instantiated in the implemention file.
* Also fixed up the formatting of errors and warnings

8 years agoUI: Add Output window to the bottom of the main window
PeterLValve [Wed, 26 Mar 2014 00:59:50 +0000 (17:59 -0700)]
UI: Add Output window to the bottom of the main window
* Added tab widget at the bottom of the main window, which now contains tabs for "Output", "Machine Info", and "Call Stack". Previously only call stack information was on the bottom if it was available.
* "Machine Info" is now moved to the bottom of the window and removed from the state snapshot tabs. It never belonged there to begin with since it does not change between snapshots.
* Removed status label and now all status updates go through the new vogleditor_output class.
* vogleditor_output class added to help standardize printing of messages, warnings, and errors in vogleditor.
* When using the Trim Trace feature, all output from voglreplay is redirected to the output window so the user is able to see any error messages that are generated.
* Misc: Fixed the 'QMetaObject::connectSlotsByName: No matching signal' errors that were being output. Just needed to rename the functions so that Qt isn't smart enough to auto-detect and try to connect them.

8 years agoUI: Add support for the indexed variant of GL_BLEND
PeterLValve [Wed, 26 Mar 2014 17:31:21 +0000 (10:31 -0700)]
UI: Add support for the indexed variant of GL_BLEND
* Also initialize the underlying iVals, fVals, and bVals buffers

8 years agoUI: Fix one of the 'No matching signal' errors that are output when vogleditor starts
PeterLValve [Wed, 26 Mar 2014 00:19:36 +0000 (17:19 -0700)]
UI: Fix one of the 'No matching signal' errors that are output when vogleditor starts
* It is simply caused by Qt trying to be smart and automatically connecting signals and slots, however not all the objects are created when it does this. Renaming the function avoids this automatic behavior.

8 years ago- Adding snapshot/restore support for indeded variants of GL_BLEND
Rich Geldreich [Tue, 25 Mar 2014 23:48:58 +0000 (16:48 -0700)]
- Adding snapshot/restore support for indeded variants of GL_BLEND

8 years agoUI: CLean up labels on Trim Trace dialog
PeterLValve [Tue, 25 Mar 2014 16:46:07 +0000 (09:46 -0700)]
UI: CLean up labels on Trim Trace dialog

8 years ago- fixing restoring of transform feedback and uniform buffer bindings when indexed...
Rich Geldreich [Tue, 25 Mar 2014 20:54:50 +0000 (13:54 -0700)]
- fixing restoring of transform feedback and uniform buffer bindings when indexed variants are present in the context
- ensuring buffer 0 is bound when the context refers to deleted buffers

8 years agoUI: Calls within glBegin/glEnd blocks are now nested in the API call tree (including...
PeterLValve [Tue, 25 Mar 2014 16:23:58 +0000 (09:23 -0700)]
UI: Calls within glBegin/glEnd blocks are now nested in the API call tree (including the glEnd)

8 years ago- Fixing restore of indexed uniform buffer bindings
Rich Geldreich [Tue, 25 Mar 2014 11:20:43 +0000 (04:20 -0700)]
- Fixing restore of indexed uniform buffer bindings
- Fixing remapping of uniform locations when the compiler assigns different locations on restore vs. tracing
- Fixing strange crash in editor

8 years agoUI: Update 'Trim Trace' dialog box title bars
PeterLValve [Tue, 25 Mar 2014 00:13:46 +0000 (17:13 -0700)]
UI: Update 'Trim Trace' dialog box title bars

8 years agoMerge branch 'master' of https://github.com/ValveSoftware/vogl
PeterLValve [Mon, 24 Mar 2014 23:03:32 +0000 (16:03 -0700)]
Merge branch 'master' of https://github.com/ValveSoftware/vogl

8 years agoUI: Add a settings file
PeterLValve [Mon, 24 Mar 2014 22:55:07 +0000 (15:55 -0700)]
UI: Add a settings file
* When vogleditor is started, the settings file will be loaded / saved so that it contains all the latest settings.
* The JSON settings file is stored in $XDG_CONFIG_HOME/vogleditor/ or $HOME/.config/vogleditor/ and is named vogleditor_settings.json.
* Before manually editing the file, vogleditor should be closed; after editing the file, reopen vogleditor to read in the latest changes.
* The file is automatically saved when vogleditor is closed, so manual edits while the file is open will cause the changes to be overwritten.
* Current settings include:
  * Window position and dimensions (defaults to 0,0 and 1024x768)
  * The "trim_large_trace_prompt_size" (defaults to 200) which is the minimum number of frames a trace file must contain in order for the trim trace prompt to be displayed when loading a trace file.

8 years ago- Adding support for pixel pack buffers used with glReadPixels(), glGetTexImage(...
Rich Geldreich [Mon, 24 Mar 2014 20:29:49 +0000 (13:29 -0700)]
- Adding support for pixel pack buffers used with glReadPixels(), glGetTexImage(), and glGetCompressedTexImage()

8 years agoUI: Update trim dialog so that it does not accept invalid input.
PeterLValve [Mon, 24 Mar 2014 19:07:58 +0000 (12:07 -0700)]
UI: Update trim dialog so that it does not accept invalid input.
* Clicking "OK" with invalid input would not set the member variables, but would return as accepted, resulting in a failed trim.
* Improved error messages if trim_frame or trim_len are invalid, and also now prompt the user if the entered trim_file already exists.

8 years agoMerge pull request #41 from Mischanix/encrypted-home
Michael Sartain [Mon, 24 Mar 2014 00:38:17 +0000 (17:38 -0700)]
Merge pull request #41 from Mischanix/encrypted-home

Added a note on encrypted home folders

8 years agoUI: Consider glBitmap and glEnd drawcalls when using the "Prev DC" and "Next DC"...
PeterLValve [Mon, 24 Mar 2014 16:36:56 +0000 (09:36 -0700)]
UI: Consider glBitmap and glEnd drawcalls when using the "Prev DC" and "Next DC" buttons

8 years agoAdd missing CLANG_ANALYZE check back.
Michael Sartain [Sun, 23 Mar 2014 22:33:20 +0000 (15:33 -0700)]
Add missing CLANG_ANALYZE check back.

8 years agoAdded a note on encrypted home folders
Robert Nix [Sat, 22 Mar 2014 22:09:39 +0000 (17:09 -0500)]
Added a note on encrypted home folders

8 years agoUpdate qtcreator.md
Peter Lohrmann [Thu, 20 Mar 2014 16:07:38 +0000 (09:07 -0700)]
Update qtcreator.md

Add information about launching and debugging projects from within QtCreator since the default Run configuration is not valid.

8 years ago- Initial support for KHR_debug API's in tracer/replayer
Rich Geldreich [Sat, 22 Mar 2014 03:49:39 +0000 (20:49 -0700)]
- Initial support for KHR_debug API's in tracer/replayer

8 years ago- Adding "-msaa X" command line option to voglreplay tool. We don't fully support...
Rich Geldreich [Sat, 22 Mar 2014 00:39:32 +0000 (17:39 -0700)]
- Adding "-msaa X" command line option to voglreplay tool. We don't fully support MSAA default framebuffers yet, but this is a start until we do.

8 years agoUI: Add ability to trim files directly from vogleditor
PeterLValve [Fri, 21 Mar 2014 23:24:59 +0000 (16:24 -0700)]
UI: Add ability to trim files directly from vogleditor
* When loading a trace that contains over 200 frames, the user will be prompted whether they'd like to trim the file. The trimmed file can then optionally be loaded instead of the originally selected trace.
* The new vogleditor_QTrimDialog allows the user to specify the frame index to start the trim at, the number of frames to trim, and the output file name.
  * Invalid frame index or lengths will make the textbox turn red to indicate the error. Entries are also validated against the number of frames in the trace file, and the trim lengths are currently limited to 200 frames (so that they can be loaded back into the editor without the trim prompt being shown).
  * voglreplay32/64 is launched in a separate process to generate the trim file. Failed replays display an error; successful replays are saved and can be reloaded into the editor.
* Enabled the Trim Trace button to allow trimming of an already open trace.
* Completely removed the Stop and Pause buttons

8 years agoimproving error message
Rich Geldreich [Fri, 21 Mar 2014 22:41:51 +0000 (15:41 -0700)]
improving error message

8 years agoAdding glTexGen[i|f|d] and glMaterial[f|i]v? to the display list whitelist.
Rich Geldreich [Fri, 21 Mar 2014 22:41:25 +0000 (15:41 -0700)]
Adding glTexGen[i|f|d] and glMaterial[f|i]v? to the display list whitelist.

8 years agoMerge pull request #33 from PeterLValve/master
Michael Sartain [Fri, 21 Mar 2014 20:47:45 +0000 (13:47 -0700)]
Merge pull request #33 from PeterLValve/master

UI: Fix a bunch of memory leaks; rename a few member variables

8 years agoAdd gl_pname_defs as non-generated file
SirAnthony [Fri, 21 Mar 2014 08:32:06 +0000 (14:32 +0600)]
Add gl_pname_defs as non-generated file

8 years agoUI: Fix a bunch of memory leaks; rename a few member variables
PeterLValve [Wed, 19 Mar 2014 22:50:49 +0000 (15:50 -0700)]
UI: Fix a bunch of memory leaks; rename a few member variables
* A bunch of UI elements were not being deleted in VoglEditor.
* The ApiCallTreeModel (which maintains all the API calls and snapshopts) was being allocated each time a trace was opened, but never deleted when the trace was closed.
* The StateTreeModel was being reallocated each time the UI was updated to a new snapshot, but they were never being deleted.
* ApiCallItems were being deleted by BOTH the FrameItem and the ApiCallTreeItem; they are now only deleted by the ApiCallTreeItem.

8 years agoMove generation of files to cmake
SirAnthony [Fri, 21 Mar 2014 06:23:10 +0000 (12:23 +0600)]
Move generation of files to cmake

8 years agoMake voglgen accept specdir as option
SirAnthony [Fri, 21 Mar 2014 06:22:09 +0000 (12:22 +0600)]
Make voglgen accept specdir as option

8 years agoMerge pull request #2 from ValveSoftware/master
SirAnthony [Fri, 21 Mar 2014 04:21:50 +0000 (09:21 +0500)]
Merge pull request #2 from ValveSoftware/master

Merge upstream

8 years agoMerge pull request #1 from ValveSoftware/master
SirAnthony [Thu, 20 Mar 2014 07:02:44 +0000 (12:02 +0500)]
Merge pull request #1 from ValveSoftware/master

Merge master

8 years agoRemove copy of bin/voglgen_copy_inc_files.ch
SirAnthony [Wed, 19 Mar 2014 08:01:22 +0000 (14:01 +0600)]
Remove copy of bin/voglgen_copy_inc_files.ch

8 years agoUpdate README.md
Peter Lohrmann [Thu, 20 Mar 2014 15:28:36 +0000 (08:28 -0700)]
Update README.md

A trace file can be passed to vogleditor on the command line to have it loaded automatically.

8 years agoUI: Fix issue #21: Resizing of vogleditor window is slow depending on trace size
PeterLValve [Wed, 19 Mar 2014 18:19:00 +0000 (11:19 -0700)]
UI: Fix issue #21: Resizing of vogleditor window is slow depending on trace size
* If the window is only being resized a small amount (within 20%), the timeline will no longer redraw and simply gets stretched.
* When the timeline is redrawn, it will now only draw one timeline item per pixel instead of many sub-pixel items.
* Fixed an issue that caused 0-duration items from being scaled to 1 instead of the horizontal scale value (which should be the minimum amount of time needed to appear as a single pixel). This greatly reduced the number of items being drawn.
* Fixed deletion of timeline item children.

* These improvements reduced the number of drawn items in one particular trace file from ~5.9 million, down to ~1250 in the default window size. When I stretched the editor across two monitors (giving the timeline more pixels to draw into) this increased to ~4500 items - both very reasonable numbers.

8 years ago- Fix for restoring FBO's that have attachments that the tracer was not able to query...
Rich Geldreich [Thu, 20 Mar 2014 01:27:30 +0000 (18:27 -0700)]
- Fix for restoring FBO's that have attachments that the tracer was not able to query (because they were deleted). Steam 10ft keeps a bunch of FBO's around with deleted textures in a cache. It eventually rebinds new textures to the FBO's so the fact that we can't query the texture shouldn't be an issue (for 10ft anyway).

8 years agoMerge pull request #23 from kingtaurus/master
Michael Sartain [Tue, 18 Mar 2014 23:44:09 +0000 (16:44 -0700)]
Merge pull request #23 from kingtaurus/master

Proposed changes to fix issue #16.

8 years agoFixing various issues that were showing up when trying to snapshot/restore Cube 2:
Rich Geldreich [Wed, 19 Mar 2014 23:34:07 +0000 (16:34 -0700)]
Fixing various issues that were showing up when trying to snapshot/restore Cube 2:
- RBO's which have been genned but never initialized are now properly snapshotted/restored
- Adding support for GL_FLOAT_RG16_NV
- Fixing size of XVisualInfo struct's ctype desc so the --find command doesn't trigger a harmless but annoying assert in 32-bit builds while scanning through 64-bit traces
- Misc help text fixes

8 years agoMerge pull request #24 from PeterLValve/master
drivers-valve [Tue, 18 Mar 2014 23:39:09 +0000 (16:39 -0700)]
Merge pull request #24 from PeterLValve/master

Fix issue #20: Search in the editor really slow; minor doc improvements

8 years agoUpdate to the build environment;
Gregory King [Tue, 18 Mar 2014 19:37:33 +0000 (12:37 -0700)]
Update to the build environment;
bin/chroot_configure.sh:
  (1) Added apt_get_install commands for liblzma and libtinyxml

src/libbacktrace/CMakeLists.txt:
  (1) Added LIBUNWIND_LIBRARY is required to be found.

8 years agoFixing various issues that were showing up when trying to snapshot/restore Cube 2:
Rich Geldreich [Wed, 19 Mar 2014 23:29:30 +0000 (16:29 -0700)]
Fixing various issues that were showing up when trying to snapshot/restore Cube 2:
- RBO's which have been genned but never initialized are now properly snapshotted/restored
- Adding support for GL_FLOAT_RG16_NV
- Fixing size of XVisualInfo struct's ctype desc so the --find command doesn't trigger a harmless but annoying assert in 32-bit builds while scanning through 64-bit traces
- Misc help text fixes

8 years agoReworked src/voglen/CMakeLists.txt to not compile tinyxml;
Gregory King [Mon, 17 Mar 2014 20:58:27 +0000 (13:58 -0700)]
Reworked src/voglen/CMakeLists.txt to not compile tinyxml;

8 years ago- Fixing driver crash on AMD's fglrx caused by us passing down possibly bogus handles...
Rich Geldreich [Wed, 19 Mar 2014 21:41:19 +0000 (14:41 -0700)]
- Fixing driver crash on AMD's fglrx caused by us passing down possibly bogus handles when we fail to remote program uniform's (which commonly happens when we trace on NVidia and try to replay on AMD, which more aggressively optimizes uniforms).

8 years agoUpdated voglcore/CMakeLists.txt removing lzma_*.cpp;
Gregory King [Mon, 17 Mar 2014 20:46:02 +0000 (13:46 -0700)]
Updated voglcore/CMakeLists.txt removing lzma_*.cpp;
(1) Replaced compiling of lzma and lzmadec with ${LZMA_LIBRARIES};
(2) Added include for lzma;

8 years ago- Fixing polygon stipple saving/restoring so it doesn't stomp memory after the polygo...
Rich Geldreich [Wed, 19 Mar 2014 21:06:30 +0000 (14:06 -0700)]
- Fixing polygon stipple saving/restoring so it doesn't stomp memory after the polygon stipple object (whoops!)

8 years agoReworked src/vogltrace/CMakeLists.txt to fix issue 16;
Gregory King [Mon, 17 Mar 2014 20:15:37 +0000 (13:15 -0700)]
Reworked src/vogltrace/CMakeLists.txt to fix issue 16;
 (1) requires a symbolic link between libturbojpeg.so.0 to
     libturbojpeg.so (within the search path)
 (2) Switched ${X11_X11_LIB} to ${X11_LIBRARIES}
 (3) Moved project definition to top of the file;

8 years agoMerge pull request #27 from PeterLValve/master
Peter Lohrmann [Wed, 19 Mar 2014 18:48:34 +0000 (11:48 -0700)]
Merge pull request #27 from PeterLValve/master

UI: Fix issue #21: Resizing of vogleditor window is slow depending on trace size

8 years agoUpdated CMakeLists.txt to fix ValveSoftware/vogl/issues/16;
Gregory King [Mon, 17 Mar 2014 20:04:18 +0000 (13:04 -0700)]
Updated CMakeLists.txt to fix ValveSoftware/vogl/issues/16;

src/CMakeLists.txt:
 (1) Added cmake variable HAS_UPDATED_LIBUNWIND;
 (2) Added message explaining what HAS_UPDATED_LIBUNWIND does;
 (3) Moved add_subdirectory(libbacktrace), add_subdirectory(libbacktrace_test);
     below other add_subdirectory(...) commands;

src/libbacktrace/CMakeLists.txt:
 (1) add_definitions(-DCMAKE_HAS_UPDATED_LIBUNWIND) if HAS_UPDATED_LIBUNWIND=true

src/libbacktrace/btrace.cpp:
 (1) added ifdef check CMAKE_HAS_UPDATED_LIBUNWIND

8 years agoReworked glxspheres/CMakeLists.txt
Gregory King [Mon, 17 Mar 2014 19:46:56 +0000 (12:46 -0700)]
Reworked glxspheres/CMakeLists.txt
  (1) find_package(GLU REQUIRED);
  (2) added the variable glxsphere_SRC (instead of aux_source_directory);
  (3) added appropriate entry to within target_link_libraries (GLU_LIBRARIES).

8 years agoAdded a simple find_package module for TinyXML.cmake;
Gregory King [Mon, 17 Mar 2014 19:43:21 +0000 (12:43 -0700)]
Added a simple find_package module for TinyXML.cmake;
 * from: https://github.com/ros/cmake_modules/blob/0.3-devel/cmake/Modules/FindTinyXML.cmake

8 years agoMerge branch 'master' of https://github.com/PeterLValve/vogl
PeterLValve [Tue, 18 Mar 2014 22:30:43 +0000 (15:30 -0700)]
Merge branch 'master' of https://github.com/PeterLValve/vogl

8 years agoUI: Add 'GL Context' column to API call tree to help with multi-context debugging.
Peter Lohrmann [Thu, 13 Mar 2014 20:06:34 +0000 (13:06 -0700)]
UI: Add 'GL Context' column to API call tree to help with multi-context debugging.

(cherry picked from commit 39e0f793e3588b12e0444241b9b4a2859bc8b18f)

8 years agoUpdate qtcreator.md
Peter Lohrmann [Tue, 18 Mar 2014 16:03:04 +0000 (09:03 -0700)]
Update qtcreator.md

Use buildDir env var instead of hardcoded paths to mkvogl.
Fix a few typos.

8 years agoUI: Fix issue #20: Search in the editor really slow
PeterLValve [Tue, 18 Mar 2014 22:24:24 +0000 (15:24 -0700)]
UI: Fix issue #20: Search in the editor really slow
* Instead of selecting all the rows which match the search string,
  the tree view now highlights those rows which match and are visible.
* If the user presses [enter], the first matching row (if one exists) will
  be scrolled into view and selected.
* Continually pressing enter will cycle through each match, in the same way
  that clicking the "Next" button works.
* If there are no matching items when the user presses [enter], the background to the search textbox will turn red.
  It will restore to its previous color when the user next edits the text.

8 years agoMerge branch 'master' of https://github.com/ValveSoftware/vogl into origin_github
Michael Sartain [Sat, 15 Mar 2014 22:39:09 +0000 (15:39 -0700)]
Merge branch 'master' of https://github.com/ValveSoftware/vogl into origin_github

8 years agoUI: Improve processing time of vogleditor_apicalltreeitem by pre-calculating the...
PeterLValve [Tue, 18 Mar 2014 20:31:29 +0000 (13:31 -0700)]
UI: Improve processing time of vogleditor_apicalltreeitem by pre-calculating the local row index
* This value will have to get updated if new rows (API calls) can be added / removed, which may undo this optimization,
but when investigating a slowness during searching, the code was often found in this function.

8 years ago- adding a missing entrypoint check, so traces made with NV extensions don't complete...
Rich Geldreich [Sat, 15 Mar 2014 06:17:55 +0000 (23:17 -0700)]
- adding a missing entrypoint check, so traces made with NV extensions don't completely core dump on AMD (although the odds of them playing back right are kinda slim)
- adding darwinia trace

(cherry picked from commit cd849926f2db37a08a87395792c40916e0c6ee0f)

Conflicts:
bin_richg/regression_test.sh

8 years agoadding link to wiki, and messing with git
Rich Geldreich [Sat, 15 Mar 2014 22:28:42 +0000 (15:28 -0700)]
adding link to wiki, and messing with git

8 years ago- regression test now works on AMD
Rich Geldreich [Sat, 15 Mar 2014 03:29:41 +0000 (20:29 -0700)]
- regression test now works on AMD

(cherry picked from commit 680e3b47a57ac959bea89e55d54925cf24c7e17c)

8 years agoAdd link to qtcreator.md file.
Michael Sartain [Sat, 15 Mar 2014 01:59:46 +0000 (18:59 -0700)]
Add link to qtcreator.md file.

8 years ago- Features for 10ft: PBO's, snapshotting/restoring mapped buffers during replaying
Rich Geldreich [Fri, 14 Mar 2014 21:35:20 +0000 (14:35 -0700)]
- Features for 10ft: PBO's, snapshotting/restoring mapped buffers during replaying
- Display lists snapshot/restoring: genned but still not-valid display lists are now handled properly

(cherry picked from commit fd44f7dcce80103562bd0c49ea15f6f6031fdc83)

Conflicts:
bin_richg/trace.sh
scratch/bdeen/hold/glireplay/gli_replay_tool.cpp
src/voglcommon/vogl_gl_replayer.cpp

8 years agoAdd QtCreator tag file and readme
Michael Sartain [Sat, 15 Mar 2014 01:52:40 +0000 (18:52 -0700)]
Add QtCreator tag file and readme

8 years agoUI: separate capturing of vogl_gl_state_snapshot from allocation of the vogleditor_gl...
Peter Lohrmann [Fri, 14 Mar 2014 21:12:02 +0000 (14:12 -0700)]
UI: separate capturing of vogl_gl_state_snapshot from allocation of the vogleditor_gl_state_snapshot for better error reporting and memory management

(cherry picked from commit 12ec6a58517055d2e460bfc0d06d1847931bf7d0)

8 years agoUI: Fix unnecessary memory overhead when loading traces.
Peter Lohrmann [Fri, 14 Mar 2014 20:43:22 +0000 (13:43 -0700)]
UI: Fix unnecessary memory overhead when loading traces.
* A vogl_trace_packet can have lots of memory associated with it, so they should not be copied or assigned if it can be avoided. In this case, the loading was using a single trace packet instance to load the data from disk, then the packet was being copied into its associated node in the API call tree. This assignment / copy was temporarily (and unnecessarily) doubling the size of the packet, requiring extra memory allocations, and generally just causing excessive overhead. Instead, allocate a separate vogl_trace_packet for each packet that needs to be loaded from disk, and pass that memory off the apiCallItem for management. This greatly improves load times and allows us to load traces that would previously fail due to memory limitations.
* Also move a few allocations over to using vogl_new and vogl_delete so that vogl can track the memory usage.

(cherry picked from commit 1bcaf8bd911c1b1604e59898c752506be1394c38)

8 years agoUI: Fix support for taking snapshots after an edited & outdated snapshot.
Peter Lohrmann [Thu, 13 Mar 2014 21:41:28 +0000 (14:41 -0700)]
UI: Fix support for taking snapshots after an edited & outdated snapshot.
* Also fix algorithm that finds the previous snapshot for diff'ing purposes so that it only returns valid snapshots.

(cherry picked from commit 9734f7d774470c4efe2cc0b9858d873fcc55850d)

8 years agoUI: Remove m_pTraceWriter since it was not being used and was causing an unnecessary...
Peter Lohrmann [Thu, 13 Mar 2014 20:41:08 +0000 (13:41 -0700)]
UI: Remove m_pTraceWriter since it was not being used and was causing an unnecessary file to be created on disk

(cherry picked from commit 50056dbe31ee4c78aac1c073526495166a1d55bd)

8 years agoDefault QTDIR to /usr/local/Trolltech/Qt-4.8.5 if not set.
Michael Sartain [Fri, 14 Mar 2014 21:55:20 +0000 (14:55 -0700)]
Default QTDIR to /usr/local/Trolltech/Qt-4.8.5 if not set.
Fixes github bug #17.

8 years agoMerge pull request #12 from andrewkww/cmake_fixes
Michael Sartain [Fri, 14 Mar 2014 16:30:51 +0000 (09:30 -0700)]
Merge pull request #12 from andrewkww/cmake_fixes

Use cmake to find dl, X11, and pthreads

8 years agocmake: Use find_package to find pthreads
Andrew Wong [Fri, 14 Mar 2014 03:26:11 +0000 (23:26 -0400)]
cmake: Use find_package to find pthreads

8 years agovogleditor: Cleanup cmake libraries
Andrew Wong [Fri, 14 Mar 2014 16:20:38 +0000 (12:20 -0400)]
vogleditor: Cleanup cmake libraries

pthread is not directly used here (used by voglcore), so no need to
specify it here. X11 is duplicated.

8 years agocmake: Use find_package to find X11 libraries
Andrew Wong [Fri, 14 Mar 2014 15:41:50 +0000 (11:41 -0400)]
cmake: Use find_package to find X11 libraries

8 years agocmake: Use CMAKE_DL_LIBS instead of hardcoding "dl"
Andrew Wong [Fri, 14 Mar 2014 15:34:59 +0000 (11:34 -0400)]
cmake: Use CMAKE_DL_LIBS instead of hardcoding "dl"

8 years agoMerge branch 'master' of https://github.com/stativ/vogl into stativ-master
Michael Sartain [Fri, 14 Mar 2014 15:56:39 +0000 (08:56 -0700)]
Merge branch 'master' of https://github.com/stativ/vogl into stativ-master

Conflicts:
src/vogleditor/CMakeLists.txt

8 years agoFix some missing libraries.
Lukáš Jirkovský [Fri, 14 Mar 2014 10:30:54 +0000 (11:30 +0100)]
Fix some missing libraries.

8 years agoFind the include directory for libunwind.h.
Lukáš Jirkovský [Fri, 14 Mar 2014 10:00:35 +0000 (11:00 +0100)]
Find the include directory for libunwind.h.

This allows finding libunwind that has been installed in a non-standard location
just by setting CMAKE_PREFIX_PATH.

8 years agoDo not hardcode qmake executable, it should be found by the CMake itself.
Lukáš Jirkovský [Fri, 14 Mar 2014 09:48:05 +0000 (10:48 +0100)]
Do not hardcode qmake executable, it should be found by the CMake itself.

8 years agoMerge pull request #8 from Daft-Freak/patch-2
Michael Sartain [Fri, 14 Mar 2014 15:52:48 +0000 (08:52 -0700)]
Merge pull request #8 from Daft-Freak/patch-2

Ignore backup files

8 years agoIgnore backup files
Charlie Birks [Fri, 14 Mar 2014 09:32:40 +0000 (09:32 +0000)]
Ignore backup files

8 years agoMerge pull request #5 from andrewkww/fix_vogleditor_link
Michael Sartain [Fri, 14 Mar 2014 15:51:14 +0000 (08:51 -0700)]
Merge pull request #5 from andrewkww/fix_vogleditor_link

Fix linking issue in vogleditor

8 years agovogleditor: Add link libraries that are needed
Andrew Wong [Fri, 14 Mar 2014 03:33:49 +0000 (23:33 -0400)]
vogleditor: Add link libraries that are needed

8 years agovoglcore: Add pthread as link library
Andrew Wong [Fri, 14 Mar 2014 03:26:11 +0000 (23:26 -0400)]
voglcore: Add pthread as link library

This means any targets that use voglcore will automatically get pthread
include during linking. So we don't need to specify pthread in targets
that don't explicitly use them.

8 years agochroot name cleanup
Michael Sartain [Thu, 13 Mar 2014 23:45:57 +0000 (16:45 -0700)]
chroot name cleanup

8 years agoMerge pull request #3 from andrewkww/fix_hardcoded_qt_path
Michael Sartain [Thu, 13 Mar 2014 23:38:06 +0000 (16:38 -0700)]
Merge pull request #3 from andrewkww/fix_hardcoded_qt_path

vogleditor: Replace hardcoded Qt path with variables generated by cmake's Qt module

8 years agovogleditor: Replace hardcoded Qt path with variables generated by cmake's Qt module
Andrew Wong [Thu, 13 Mar 2014 21:04:54 +0000 (17:04 -0400)]
vogleditor: Replace hardcoded Qt path with variables generated by cmake's Qt module

8 years agoUI: Initial support for saving and loading a debug session
Peter Lohrmann [Thu, 13 Mar 2014 18:45:49 +0000 (11:45 -0700)]
UI: Initial support for saving and loading a debug session
* This saves a json document which links the initial trace file to a set of snapshots
* Edited / outdated / valid properties are stored with each snapshot so that the snapshot indicator in the UI can be restored properly.
* All 'rel_path' properties are relative to the location of the session file. This allows the trace file, session file, and session data folder be moved to a new location and still be loaded. Only relative paths are currently supported.

Future goals:
* Ideally, any state of the UI should be included in the session so that active tabs / drop-down selections / texture zoom settings / etc are restored when the session is loaded.
* Indications of which shaders are edited should also be included (after the UI itself supports indicators of these changes)
* The original trace file should NOT be changed when the initial snapshot is edited or if/when we support the insertion and removal of API calls, so any changes to the API calls should be stored in this session file as well.

(cherry picked from commit 8ede72592ca94d754442e3f097ba03b546047ab1)

8 years agoUI: minor fix to ensure the replay exists when needed
Peter Lohrmann [Wed, 12 Mar 2014 20:37:25 +0000 (13:37 -0700)]
UI: minor fix to ensure the replay exists when needed

(cherry picked from commit 6873bd3736e88a2d059fa90a9eb34f818f069bbe)

8 years ago- Fix for replaying display list snapshots (we regressed this late last week while...
Rich Geldreich [Thu, 13 Mar 2014 19:33:11 +0000 (12:33 -0700)]
- Fix for replaying display list snapshots (we regressed this late last week while I was fixing some previous changes for the UI, argh)

(cherry picked from commit a7d27d9f233c577e17178ddf145d84ec462795b8)

8 years agoFix missing space (Thanks Scott.)
Michael Sartain [Wed, 12 Mar 2014 21:45:04 +0000 (14:45 -0700)]
Fix missing space (Thanks Scott.)

8 years agoDrop vogl_applaunchr.cpp and vogl_applauncher.h
Carl Worth [Sat, 22 Mar 2014 00:29:24 +0000 (17:29 -0700)]
Drop vogl_applaunchr.cpp and vogl_applauncher.h

Mike explained that these files are not actually being used at all.
Meanwhile, they are the only files that include anything from the
chromiumlib library which was recently removed (with history
rewriting!) from the git repository.

8 years agoDon't attempt to build gltests nor OGLSuperBible directories.
Carl Worth [Mon, 31 Mar 2014 23:08:00 +0000 (16:08 -0700)]
Don't attempt to build gltests nor OGLSuperBible directories.

These directories were recently removed in a git-filter-branch rewrite
of the Vogl history (as part of an effort to reduce repository size).
Since these directories no longer exist, we cannot build them.

8 years agoInitial vogl checkin
Michael Sartain [Wed, 12 Mar 2014 21:28:27 +0000 (14:28 -0700)]
Initial vogl checkin