Commit Graph

6850 Commits

Author SHA1 Message Date
baldurk a159af9cfe Fix overrunning vector bounds if vertex attributes use high locations 2018-01-24 22:52:25 +00:00
baldurk 77f767394b Remove invariant decorations in vulkan PostVS vertex->compute transform 2018-01-24 18:44:26 +00:00
baldurk 904511afb0 Support composite types on vertex shader inputs, in vulkan PostVS fetch 2018-01-24 18:44:15 +00:00
baldurk 7636d370f4 Don't give patched entry point a debug name, as it breaks amdvlk 2018-01-24 17:12:23 +00:00
baldurk 158dff0287 Remove test code, committed by accident. 2018-01-24 16:15:49 +00:00
baldurk 8f405a2197 Render mesh data with instanced properties correctly. 2018-01-24 16:14:22 +00:00
baldurk f05cfe9454 Fix mesh picking in cases with index/vertex offsets 2018-01-24 15:45:46 +00:00
baldurk d286453bff Add marker region around pick vertex 2018-01-24 12:39:40 +00:00
baldurk f0c6323685 Don't update buffer viewer display if we just mousemove without clicking 2018-01-24 12:38:28 +00:00
baldurk 94f8cf94e3 Check iterator validity before dereferencing it 2018-01-24 11:42:30 +00:00
baldurk 5150a9531b Allow queuing a sequence of frames both before capture, or while running
* We also make the frame counting consistent: Frame 0 is the frame from
  device initialisation to first present, Frame 1 is from first present
  to second, and so on after that.
2018-01-24 11:38:37 +00:00
baldurk 8c25630369 Update ToolWindowManager to 611fd60c82e7501750226b4de39d108047c98445 2018-01-24 11:37:05 +00:00
baldurk 64c901776e Fix for GCC7 case fall-through warning 2018-01-24 10:46:37 +00:00
baldurk ec1e5dd687 Fix some copy-pasted error messages 2018-01-24 10:46:12 +00:00
baldurk a85ed4c548 Fix implementation of firstbit_(s)hi - thanks to Scott Kircher
* firstbit_hi counts MSB as index 0, BitScanReverse counts LSB as 0.
2018-01-22 20:37:24 +00:00
baldurk 91dbfc4cc6 Ensure we tidy up progress ticker and callback even if replay fails 2018-01-22 20:04:17 +00:00
baldurk 92808efc93 If the preview window becomes available later, then init it later
* E.g. on android this can happen if we started the replay while the
  replay apk wasn't in the foreground, but then it gets raised later.
2018-01-22 20:04:17 +00:00
baldurk 4ee17543de Create parent folder for any captures created. 2018-01-22 20:04:17 +00:00
baldurk 6fe179bea3 Only join a previous command thread and restart if it has exited
* APP_CMD_INIT_WINDOW can be called when the application hasn't fully
  shutdown, and the thread is still running. Hold a lock while we're
  inside renderdoccmd() so that we know if the thread has exited or not.
* This would be easier if android had pthread_tryjoin_np()...
2018-01-22 20:04:17 +00:00
baldurk e0aedf1f5b While we don't have proper DPI checking, double overlay size on android 2018-01-22 20:04:17 +00:00
baldurk f0015f4b77 Add gl_library_egl.* to VS project 2018-01-22 20:04:17 +00:00
Jimmy Lee 579386dddb gearvr crash fix and mip level fix for gearvr swapchain 2018-01-22 20:03:55 +00:00
baldurk f46aa2944d Add #includes to fix linux compilation 2018-01-20 10:17:22 +00:00
baldurk 33b3176cd4 Rewrite the analytics intro text to be less of a wall of text
* Also add a preview of what data will be included in any report, both
  in the intro and in the confirmation before sending any report.
2018-01-19 16:33:45 +00:00
baldurk 65ef82466c Re-organise Analytics structures a bit to be more processing friendly 2018-01-19 13:57:02 +00:00
baldurk 98ed7ae9ca Make sure the discard button for analytics actually works! 2018-01-19 11:45:16 +00:00
baldurk 8905f6b83a Fix analytics compilation - still compiled out 2018-01-19 11:39:31 +00:00
baldurk c90ef7529c Add dependencies and building notes for CentOS 7 (thanks to adiemus) 2018-01-18 19:40:12 +00:00
baldurk cdca0ee6de Append C++14 standard flag instead of prepending.
* This stops it from being overridden by the global --std=c++11 in the
  root CMakeLists.txt which ends up after it in the command line.
2018-01-18 16:24:55 +00:00
baldurk c364b102bc force flush of command lists & GPU sync when doing non-partial replay
* In some cases there was an unpredictable crash when starting a replay
  loop, doing a full frame replay immediately after a previous replay.
  There were no debug messages, and the debug layer fixed it - as did
  enabling single flush validate. It seems to me some timing/overloading
  issue, and doing this sync should be relatively harmless so we use
  this to avoid the crash.
2018-01-18 14:50:57 +00:00
baldurk 2d7c193e34 Skip adding usage for huge descriptor table ranges (Over 1000 slots) 2018-01-18 14:42:43 +00:00
baldurk 5ec9db3af1 Divide byte length by 4 to get number of DWORDs in the bytecode
* Since dxbc is a uint32_t* this needs to be the count we use.
2018-01-18 14:41:59 +00:00
baldurk 80dc758d18 Sleep while looping waiting for replay thread to open capture 2018-01-18 14:41:08 +00:00
baldurk 3ae5949126 Search local plugin folders on windows too for spirv plugins 2018-01-18 10:28:31 +00:00
baldurk fbb13f0f53 Don't create GUI application to run unit tests 2018-01-17 23:21:03 +00:00
baldurk 7989c80152 Compile fixes for linux 2018-01-17 22:57:04 +00:00
baldurk be0681f770 Allow for configuring multiple SPIR-V disassemblers, detect known tools
* Initially add support for spirv-cross and spirv-dis.
* When possible we'll auto-detect the tools in path or in the build's
  plugins folder.  Otherwise the user can add it and add their
  executable path.
* We still use the first disassembler for editing - in future it would
  be good to allow selecting the disassembler at edit time (as well
  as allowing multiple compilers).
2018-01-17 21:07:04 +00:00
baldurk 2354a0e71d Change OrderedListEditor to be a widget, not a dialog 2018-01-17 21:07:04 +00:00
baldurk 859c33cb26 Add <StringView> natvis tag for rdcstr 2018-01-17 21:07:04 +00:00
baldurk 1df7b72487 Always enable VK_EXT_debug_report during capture, if available
* This means that if the driver or some other layer reports messages,
  we will save them in the capture for disable - even if the validation
  layers aren't enabled.
2018-01-17 21:07:04 +00:00
baldurk fd899cdb96 Fix disassembly not being on top when first debugging a shader 2018-01-17 21:07:04 +00:00
baldurk a13b45b0ef Apply FlipY to co-ordinates used for debug or pixel history. Refs #839 2018-01-17 21:07:03 +00:00
baldurk 7c53d7c6e0 Update to latest official GL headers as of 2018/01/17
* Includes GL 4.6.
* This fixes #842 due to previous GL headers having the incorrect
  signature for glClearNamedFramebufferfi. This may also explain the
  vendor check VendorCheck_NV_ClearNamedFramebufferfiBugs.
2018-01-17 21:07:03 +00:00
baldurk 56c6fa2d04 Use QCommandLineParser to parse arguments more intelligently. Refs #843 2018-01-17 21:07:03 +00:00
baldurk bf4e14ced8 Use full path for invoking keytool 2018-01-17 21:07:03 +00:00
michaelrgb cacac49a5e Image uniforms cannot be re-assigned in GLES. 2018-01-17 21:06:55 +00:00
baldurk f751be98ed Fix version project building on 32-bit 2018-01-16 23:17:55 +00:00
baldurk 02155f4953 Fix debug initialisation for D3D12 2018-01-16 21:00:18 +00:00
baldurk 413438c627 Fix corruption when calling GetDetails() on non-shader 2018-01-16 21:00:10 +00:00
baldurk dea21b20a0 Remove global GIT_COMMIT_HASH define, use GitVersionHash global var
* On windows, the change in a global GIT_COMMIT_HASH define in each
  project needing it meant a full rebuild every time the commit changed.
* Ideally we'd set the define only on one file in each project, but
  MSBuild doesn't seem to support that. Instead we make a new tiny
  project that compiles a single cpp exporting a global var, and
  reference that global var in each other project.
2018-01-16 20:17:53 +00:00