Commit Graph

6154 Commits

Author SHA1 Message Date
Cody Northrop 83697f4e85 android: Update server installation to allow 64-bit
This allows local arm64 builds, and should continue to work
for stable releases only containing arm32.

This also adds the "-g" flag to the install, granting all
requested runtime permissions, simplifying the user experience.
2017-09-22 10:08:49 -07:00
baldurk 4465c37fe7 Don't strip capture's device extensions away with backwards strcmp 2017-09-19 17:28:12 +01:00
baldurk bf3214e8a2 Don't display a register/slot index for built-in shader variables 2017-09-19 17:28:12 +01:00
baldurk 67bea64070 Make it non-fatal to be missing WSI extensions at runtime
* Instead of erroring and failing to replay a capture if WSI is not
  present when replaying even though enabled at compile time, we just
  print a warning and allow the supported windowing systems list to
  become empty.
* The UI or whichever app is controlling things must then respect this
  and not try to create any outputs. If the replay is happening
  completely headless there are then no more errors.
2017-09-19 17:28:12 +01:00
baldurk 86c3ee4086 Fixes for compiling with disabled xcb, or disabled xlib & xcb 2017-09-19 17:28:12 +01:00
baldurk ba64ae6274 Add a warning if only CMAKE_INSTALL_PREFIX is customised
* VULKAN_LAYER_FOLDER points outside the prefix to /etc in absolute, so
  usually if you customise one you'll want to customise the other.
* This is especially true if you're pointing the install prefix at some
  non-root location, and you want make install to succeed instead of
  failing to write to /etc.
2017-09-19 17:28:11 +01:00
baldurk 6ec2aa55a0 Change logging to use native line-endings - i.e. CRLF on windows
* This means even if notepad is associated with .log files, it will look
  correct, since notepad can't hand LF line-endings :(.
2017-09-19 17:28:11 +01:00
michaelrgb 61606d8aea Fix offscreen render setting GLWindowingData::wnd=0, an error condition. 2017-09-19 09:28:05 -07:00
michaelrgb 3c05b25653 Use ES color-renderable SRGB8_ALPHA8 for output window backbuffer. 2017-09-19 09:28:05 -07:00
Matthäus G. Chajdas e6a746623c Fix D3D11 counters trying to sample "FirstAMD", and early out.
Previously, the D3D counters would always run, even if none of them was requested.
2017-09-15 12:18:22 -07:00
Matthäus G. Chajdas cad64db864 Use the correct role instead of a magic number. 2017-09-15 12:18:22 -07:00
Cody Northrop 68d6873302 android: Check server version for compatibility
Check the version of the installed server and if not a match,
remove it and allow existing installation logic to kick in.
2017-09-15 12:17:58 -07:00
Cody Northrop 2b1bc02a22 android: Set versionName and versionCode during build
This will allow us to determine the status of the installed
server before using it.
2017-09-15 12:17:58 -07:00
Janos Pantos ff084037a5 Fix detecting renderdoccmd as a replay application on android
* Force loading librenderdoccmd.so in the Loader
* Build renderdoc as libVkLayer_GLES_RenderDoc.so, link renderdoccmd
  against it, otherwise we will get UnsatisfiedLinkError when running
2017-09-15 12:17:21 -07:00
michaelrgb 06cfd5383f Save in app's own /sdcard directory, doesnt need WRITE_EXTERNAL_STORAGE.
Removed checks for WRITE_EXTERNAL_STORAGE from Android workflow.
2017-09-15 12:17:02 -07:00
baldurk bae429332d Fix GetModifiedTimestamp to work with >2GB files on win32 (see 43946540) 2017-09-14 11:11:44 +01:00
Jimmy Lee 43946540f1 Fixed a problem with opening capture files larger than 2gb on windows 2017-09-14 03:09:08 -07:00
baldurk 139b122cc4 Fix assertion to allow 8 color attachments. Refs #743 2017-09-14 10:48:44 +01:00
baldurk dbc445de49 Use GL_DEPTH_ATTACHMENT when attaching depth-only texture to FBO 2017-09-14 10:47:43 +01:00
baldurk 6a4cb2664f Fix display of 3D textures not applying mip offset to slice 2017-09-13 14:50:02 +01:00
baldurk 4e092940fc Fix formatting of string to not append an int interpreted as a QChar 2017-09-13 14:49:42 +01:00
baldurk aabea30012 Add alpha2coverage to VK state view, move it & alpha2one to MSAA group 2017-09-13 14:24:48 +01:00
baldurk 7259f9a04a Check samplers array for resources in descriptor sets too 2017-09-13 14:16:29 +01:00
baldurk cb644313db Don't select unused bindings over a valid bind in vk pipeline state
* If there's a variable which is unused and has no binding declared, it
  will be sorted to the end of the list and given a binding of 0. We
  don't want to let this override a valid binding for 0, so make sure we
  prioritise any variable which is marked as used over one that is
  unused.
2017-09-13 14:16:15 +01:00
baldurk 3a934cf66c Use sudo to update pip packages 2017-09-13 12:30:38 +01:00
baldurk ac62a124a5 Don't try and look up the descriptor for push constants in pipe export 2017-09-13 12:30:38 +01:00
baldurk f4c3254435 Set command buffer info for all re-recorded commands, including partials 2017-09-13 12:30:38 +01:00
baldurk d4149985ea Set proper 3D texture resolution for histogram calculations 2017-09-13 12:30:37 +01:00
baldurk ffb8a6b2e8 Only set graphics dynamic state on binding graphics pipeline. Refs #740 2017-09-13 12:30:37 +01:00
baldurk 329f06eb50 Immediately delete any open LiveCapture windows when closing 2017-09-13 12:30:37 +01:00
Alex Smith aeb7a85895 Fix tracking of dynamic offsets when binding multiple descriptor sets
Before this, when binding multiple sets that use dynamic offsets, the
wrong offsets would be stored for all sets other than the first. This
caused the wrong offsets to be used when replaying individual draws.
2017-09-13 04:30:06 -07:00
baldurk 529dec8c65 Add a fallback if TF varyings cause program not to link 2017-09-11 20:23:56 +01:00
baldurk a19cc17bdd When applying TF varyings workaround, handle matrix variables with :row
* The vertex output signature is split into vectors only, so we need to
  go back to the base matrix name.
2017-09-11 20:23:56 +01:00
baldurk 08aa7399cd Don't perform occlusion/statistics queries that aren't needed 2017-09-11 20:23:56 +01:00
baldurk d6ffd19178 Use correct IsDrawInRenderPass() for vkCmdDraw validity check 2017-09-11 20:23:56 +01:00
baldurk 3ef0c52e73 Add single-flush-validate code to queue submission 2017-09-11 20:23:56 +01:00
baldurk eaec6b501e Set command buffer info under recorded command buffer IDs 2017-09-11 20:23:56 +01:00
baldurk 80ec87fdd2 Pass -rdynamic to qrenderdoc link, ensures replay marker sym is exported 2017-09-11 20:23:56 +01:00
baldurk 268e122990 Convert to sized format before calling into real GL
* There's a weird issue on mesa where copying between a texture with
  unsized format GL_RGBA and sized format GL_RGBA8 fails. The workaround
  is to promote to sized format immediately, which changes the behaviour
  slightly but as ever the unsized formats are explicitly ambiguous, so
  we're within our rights (as part of the GL implementation so to speak)
  to change it.
2017-09-11 20:23:56 +01:00
baldurk 5696cafe7a VK_KHR_get_memory_requirements2 is a device, not instance, extension 2017-09-11 20:23:56 +01:00
baldurk f8af44b569 Fetch dispatch thread dimension always even if we don't disassemble
* We need the dispatch thread dimension to be valid when creating the
  shader reflection data, which may happen before we've disassembled the
  bytecode.
* We do a minimal pass just to skip to that opcode and extract the dims.
2017-09-11 20:23:56 +01:00
baldurk 3b02ea0a3b Turn off tracing after execution finishes
* This means the tracing isn't still lingering around when we shutdown
  and the context is destroyed.
2017-09-11 20:23:55 +01:00
Matthäus G. Chajdas 25fc6550bb Remove placeholder items. 2017-09-11 03:44:32 -07:00
Janos Pantos fa94794b09 Fix remote replay issue caused by 9b4ee72. Refs #735 2017-09-11 03:44:07 -07:00
baldurk 501b1a846c Don't do full-image transitions per subresource, just do it once 2017-09-07 10:41:23 +01:00
michaelrgb bcd342aa79 Set TF mode for all initProg varyings, to stop driver culling uniforms. 2017-09-06 08:19:53 -07:00
baldurk 6ce8a8ec5f Apply same fix to apple 2017-09-01 09:46:38 +01:00
baldurk 60a29a28ed Android compile fix for missing definition of NULL 2017-08-31 19:53:00 +01:00
baldurk 82a0e055ba Change how replay programs are identified, from filename to sym export
* Instead of checking on the filename, we look for a specially named
  exported symbol somewhere in a module that's already loaded.
* This allows us to mark the python module as a replay program, so if
  it's loaded into the python interpreter it will be able to use the
  replay API.
2017-08-31 18:34:19 +01:00
baldurk fbd1c40654 Add python typemap handling for rdctype::pair 2017-08-31 18:34:19 +01:00