Commit Graph

3738 Commits

Author SHA1 Message Date
baldurk aa69c2d6d2 Change remote server from being a one-shot remote replay to proper loop
* The remote server is intended to be long-lived and do many things, so
  we keep it around and mix proxy commands with normal commands.
2016-08-19 12:23:19 +02:00
baldurk 30dcc72a68 always allow connections from localhost 2016-08-19 12:23:19 +02:00
baldurk 4e450dbfcc Rename RemoteRenderer to RemoteServer 2016-08-19 12:23:19 +02:00
baldurk 5a6a200432 Fetch packets outside of replay proxy, so we can serve other commands 2016-08-19 12:23:19 +02:00
baldurk 45de1f2b5f Rename remote_access.cpp to target_control.cpp 2016-08-19 12:23:19 +02:00
baldurk 481a28dc29 Rename RemoteAccess to TargetControl to better disambiguate RemoteServer 2016-08-19 12:23:19 +02:00
baldurk 4bfbcbd14d Rename remote_replay.cpp to remote_server.cpp 2016-08-19 12:23:19 +02:00
baldurk 892004f064 Rename replay proxy and remote server packet enums, and disallow overlap 2016-08-19 12:23:19 +02:00
baldurk 5ed6ee2938 Add better error messages when failing to load images.
* This includes an enum for unsupported (but recognised) image formats
  instead of just a generic 'file corrupted' or misleading 'API
  unsupported' error.
2016-08-19 12:17:09 +02:00
baldurk b9d44dc820 Read in byte-sized items so returned count is in bytes.
* Fixes EXR loading
2016-08-19 12:15:30 +02:00
Baldur Karlsson fff93a4bcc Remove vim dependency from COMPILE.md
* No longer using xxd, so no need for vim directly
2016-08-19 10:50:49 +02:00
baldurk f2f38880f9 Remove absolute path to WiX toolset - use $WIX 2016-08-19 02:00:55 +02:00
baldurk e5d59289da Minor code formatting tweak, and expand details of comment for future 2016-08-18 18:30:12 +02:00
Michael Rennie cc3cc1f392 Wait for the socket thread to finish when unloading, close the open socket.
The Android loader dlopens a layer twice, so if the layer did not clean up
properly the first time it is unloaded then we will fail to open a socket
on the default port 38920 during the second dlopen.
2016-08-18 18:28:27 +02:00
Michael Rennie 333d8e16b1 Display on which port we are listening for a remote access connection.
Knowing the port is needed for doing:
adb forward tcp:38920 tcp:38920
2016-08-18 18:28:27 +02:00
Michael Rennie 255f8cd34e Changed AppFolderFilename on Android to fix SaveShaderCache. 2016-08-18 18:28:27 +02:00
baldurk 4c0ff83d83 Allow empty GL captures without failing 2016-08-16 18:12:22 +02:00
baldurk f58f93d283 Remove glslang workaround for nvidia, and check on version number
* Also remove the file timestamp AMD check, since now AMD drivers have
  version numbers that increment.
2016-08-16 17:31:43 +02:00
baldurk 757495e246 Add very small delta onto max value for histogram calculation
* The calculation in the shader normalises each value between min and
  max, then multiplies by the number of buckets and does floor() - but
  this means something precisely equal to the max will be in bucket
  NUM_BUCKETS instead of NUM_BUCKETS-1 like we want. So adding on a very
  small delta won't shift values particularly since we are coarsely
  bucketing them, but does handle this edge case.
2016-08-16 11:05:17 +02:00
baldurk c9b052cffe Fix casting from non-dispatchable VkDebugReportCallbackEXT to pointer 2016-08-15 20:26:40 +02:00
baldurk 09ecb3a6b3 Don't use -Werror in release mode on non-windows builds 2016-08-15 19:56:01 +02:00
baldurk 4b3e583b16 Make sure curType is set for ARB_dsa entry point, don't rely on create.
* If a texture is created with glCreateTextures, we set curType at that
  point. However it is valid to use a ARB_dsa texture storage function
  with a texture created via glGenTextures, at which point we need to
  be sure that curType is set when storage is allocated via one of
  these functions.
* In valid GL, this is redundant work (since you can't retype), so we
  don't check that the type is the same.
2016-08-15 19:56:01 +02:00
baldurk 8ba09a4ea2 Re-enable some warnings that no longer appear in glslang headers 2016-08-15 19:56:01 +02:00
baldurk 455f64ac7d Update glslang to rev 359dcee7156517c700b152496ede19097c889085 2016-08-15 19:56:01 +02:00
baldurk 450b9fc472 Fix constant buffer byte size when lacking reflection data. Refs #324 2016-08-15 19:56:01 +02:00
baldurk 864fdbe179 Use @Marqin's include-bin program to remove xxd dependency
* Taken from https://github.com/Marqin/include-bin at commit hash
  202ed6c6f30a599a2d1f3c80177d988b0b1054c1.
2016-08-15 19:56:01 +02:00
baldurk d6f3e532d8 Only report a single queue in the supported queue family. Refs #323 2016-08-15 19:56:01 +02:00
baldurk 38dfd05387 Wrap user-created debug report objs to suppress output. Refs #313, #323 2016-08-15 19:56:01 +02:00
baldurk ddeadb2d96 Handle SRGB and UNORM variants of RGBA/BGRA swapchain formats
* Avoids some picky (but technically correct - the best kind of correct)
  validation warnings about mismatching renderpasses.
2016-08-15 19:56:01 +02:00
Baldur Karlsson fdce6ced34 Merge pull request #327 from michaelrgb/master
Fix Android replay check so we can record from APKs.
2016-08-15 18:25:38 +02:00
Michael Rennie 7d3e5f7348 Fix replay check to record from APKs, and write to app's temp directory.
/sdcard is not always available as it requires manifest write permissions.
Recordings still need to be copied somewhere readable by RenderDocCmd.apk,
as APKs can only read from their own temp directory.
2016-08-15 16:51:22 +01:00
baldurk d531ffdad4 Print error codes if IsWow64Process fails 2016-08-12 15:57:00 +02:00
baldurk c4310373fd clamp when assigning prevHighestMip, just in case 2016-08-12 15:57:00 +02:00
Baldur Karlsson 2ab9690695 Merge pull request #322 from michaelrgb/forpull
Get the real dimensions of the ANativeWindow.
2016-08-10 17:44:02 +02:00
Michael Rennie d57a853a86 Get the real dimensions of the ANativeWindow. 2016-08-10 15:29:10 +01:00
baldurk c674c27057 Make update dialog non-resizeable. Refs #321 2016-08-10 16:07:16 +02:00
Baldur Karlsson 6a9f392b31 Merge pull request #320 from Marqin/calc
add CMake function for determining current git rev
2016-08-10 15:31:47 +02:00
Hubert Jarosz 05bc395fd6 move get_git_hash definition to main CMakeLists.txt 2016-08-10 13:00:59 +02:00
baldurk 362d33813c Add code to run hhc.exe to make.bat and Makefile
* Thanks to @mivance for the make.bat code!
2016-08-10 12:56:36 +02:00
Michael Rennie 396b83699b Fixed vulkan library used for Android replay, plus cmdline args. 2016-08-10 12:21:40 +02:00
Hubert Jarosz cf4ee8e861 fix failing CMake build when "git" is not installed 2016-08-09 23:57:46 +02:00
Hubert Jarosz 6b01ab8136 add CMake funcion for determining current git rev
/GetGitHash.cmake has function get_git_hash that gives current
git rev hash or "NO_GIT_COMMIT_HASH_DEFINED" if we are
building out of git repo.
It's used in /renderdoc/CMakeLists.txt
2016-08-09 23:04:19 +02:00
baldurk b1aa004216 Continue to advance line number if encountering blank lines. Refs #319
* Also advance for any invalid/unparseable #line statements
2016-08-09 21:50:44 +02:00
baldurk 9d24013f3b Clamp the view-size specified number of rows to the max num rows. 2016-08-09 00:41:10 +02:00
baldurk b7431aec46 32-bit compile fix (downcast from UINT64 to size_t) 2016-08-06 23:21:02 +02:00
baldurk 5d25018874 Fix some appveyor variable shadowing warnings 2016-08-06 19:38:50 +02:00
baldurk 3dbd750846 Put more updater code inside the try { } catch(Exception)
* A crash was uploaded where File.Copy() failed due to permissions.
2016-08-06 19:23:30 +02:00
baldurk 989482923a Implement texture initial states 2016-08-06 18:31:54 +02:00
baldurk 1dad17ec7b Use the resource format from the texture, with type hint, creating SRV 2016-08-06 18:31:53 +02:00
baldurk 399fb28a80 Mark resource mapping functions as unimplemented so I don't forget 2016-08-06 18:31:52 +02:00