Commit Graph

8437 Commits

Author SHA1 Message Date
baldurk 277ba1399c Don't fetch structured counts for non-buffer UAVs 2019-01-09 16:27:15 +00:00
baldurk 48d6e94891 Fix D3D11InitialContents overloads so wrong types don't get cast
* ID3D11DeviceChild* is too broad and can accept a RTV or DSV if there's a bug.
2019-01-09 16:27:15 +00:00
baldurk 21e056e5b8 Fix stringification of bitfields with duplicate values
* We'd previously subtract the bitfield value twice, leading to underflow and
  then lots of unknown bits appear to be set. Instead we should clear the bit so
  that it's safe to apply multiple times.
2019-01-09 16:27:15 +00:00
baldurk 7ad3197982 Revamp catch appveyor reporter to report all test results in a batch
* We also only report one test per test-case, as trying to handle sections
  separately is unreliable.
2019-01-09 16:27:15 +00:00
baldurk 22f8b2ac79 Specify original Vk*Flags in structured data instead of coerced FlagBits
* We coerce the type to the FlagBits enum for serialisation so the
  stringification picks up the bits properly. However the variable is properly
  typed as just 'Flags' which is a uint32_t typedef, so manually specify its
  typename afterwards.
2019-01-09 16:27:14 +00:00
tabi.katalin d19a495ee0 Handle launching more apps on Android
We can check whether an Android app has already been connected to RenderDoc, and warn the user to close the previous app before launching a new one.
2019-01-09 16:27:00 +00:00
baldurk db2ef74d13 Fix initial state crashes for images in external queues. Closes #1226 2019-01-08 17:24:15 +00:00
baldurk c34c57fe5c Initialise latest renderdoc API in demos project
* We initialise both 1.0.0 for maximum compatibility, and the latest version for
  maximum functionality.
* It's currently unused anyway
2019-01-08 11:38:22 +00:00
baldurk 24032c0039 Update demos project to latest in-application header 2019-01-08 11:36:14 +00:00
baldurk ab8d07f29c Add DiscardFrameCapture to in-application API, bumped to version 1.4.0 2019-01-08 11:35:48 +00:00
baldurk 39621ebc40 Delete leftover initial chunks when freeing initial contents 2019-01-08 11:31:17 +00:00
baldurk 8c946c67e0 Fix memory leak in D3D12 tests, sync GPU and reset allocator each frame 2019-01-08 11:29:28 +00:00
baldurk 459650a23c Fix memory leak in GL text overlay rendering 2019-01-08 10:53:05 +00:00
baldurk 7a460fd85e Fix appveyor catch.hpp listener
* Don't completely lose/misappropriate errors in tests that don't have a base
  section
* Change the filename to actually be a filename, and include the base test name
  as the first part of the section stack.
* Don't over-multiply duration by 1000 to convert to milliseconds twice.
2019-01-08 10:04:49 +00:00
baldurk 18bd9d8c9b Add discord server links 2019-01-07 17:33:24 +00:00
baldurk ab08b8e93d Don't apply AMD MSAA workaround after 18.5.2 2019-01-04 18:54:19 +00:00
baldurk a3ff33368b Add some useful android logging for post-mortem debugging 2019-01-04 16:59:26 +00:00
baldurk f3dda7959e For very large tables, don't fallback to rendering all rows
* lastRow can return -1 in some situations where there's no last row visible,
  but we don't want to render potentially millions of invisible rows.
2019-01-04 16:44:00 +00:00
baldurk cea0129b9a Don't completely disable tooltip on D3D12 for 'plain' resource views
* We still want the tooltip to display the resource state.
* Also add a tooltip for VBs/IBs which do have a state we want to display.
2019-01-04 16:37:23 +00:00
baldurk 18958fedd0 Workaround ARM driver bug, hide UBOs unless they're used. Closes #1225 2019-01-04 12:26:30 +00:00
baldurk b0ff17ba08 Don't query texture parameters when a renderbuffer is bound to an FBO 2019-01-04 12:24:26 +00:00
baldurk 761f8be4bd Fix mesh view with double vertex attribute inputs 2019-01-04 11:48:35 +00:00
baldurk da52dbe174 Fix GL overlay shader compilation with glCreateShaderProgramv shaders 2019-01-04 10:34:44 +00:00
baldurk 4979157da9 Fix bin/ reference that should be lib for python modules in build script 2019-01-04 10:10:21 +00:00
baldurk e3b50d2377 If an image is in an external or foreign queue we can't fetch contents
* There's nothing we can do - we can't safely transition from/to the external
  queue so we have to treat the initial contents as missing/undefined.
2019-01-03 17:56:53 +00:00
baldurk e13f0e882a version-detect AMD unreliable image memory requirements needing padding
* From driver 2.0.33 (18.5.2) onwards, the image memory requirements don't vary
  randomly so don't need any padding.
* It should only be applied also for the AMD binary driver.
2019-01-03 17:25:36 +00:00
baldurk 50a5f05fe4 Cache vulkan version-detecting information at device create time 2019-01-03 17:24:39 +00:00
baldurk 355b81f232 If enumerating remote target controls on Android, distrust everything
* On android sometimes if you connect successfully over a forwarded port you
  haven't actually connected! You need to wait a bit, try and use the socket,
  and then you might find that you've been disconnected.
2019-01-03 17:06:37 +00:00
baldurk 7f0ac0f1fe Improve message for flushing unmapped memory 2019-01-03 16:26:00 +00:00
baldurk 164453a8eb Add assert that command buffer is non-NULL 2019-01-03 16:25:51 +00:00
baldurk 91e80a7756 Remove accidentally committed debug print 2019-01-03 14:26:18 +00:00
baldurk 14c110ce58 On all platforms, output library to lib folder in cmake build 2019-01-03 12:43:32 +00:00
baldurk 5e269189b4 Rename catch global variable to prevent clashes 2019-01-03 12:31:27 +00:00
baldurk 1aa1abdf45 Don't lose base thumbnail when converting from zip.xml 2019-01-03 12:22:29 +00:00
baldurk f543f02998 Check RDC export/import in all simple tri tests, but *only* in those 2019-01-03 12:22:29 +00:00
baldurk daed903b64 Add support for wglShareLists. Closes #1224
* We can't feasibly support calling wglShareLists after wglMakeCurrent because
  we must do work and create objects in wglMakeCurrent. If this situation
  happens we pretend that wglShareLists failed and print an error.
2019-01-03 12:22:29 +00:00
baldurk 2237c241ff Fix incorrectly named methods in ResourceFormat
* We try to maintain at least an internally consistent naming scheme for the
  python/public interface, even if it doesn't match python naming schemes.
2019-01-03 12:22:29 +00:00
baldurk c154a16442 Add better logging around D3D11 replay device creation 2019-01-03 12:22:28 +00:00
baldurk 5280b6628a Fix D3D11 drivertype fallback to WARP/REFERENCE not properly applying 2019-01-03 12:22:28 +00:00
baldurk 2e18b09bc9 Fix typo that saved D3D12 indexed draw indirect index offset incorrectly 2019-01-03 12:22:28 +00:00
baldurk 09207c5de0 Set structured serialisers as streaming mode
* This means that checks for array sizes won't check against an empty input
  buffer and fail.
2019-01-03 12:22:28 +00:00
baldurk 7860bee811 Make sure to fail if errors are found in python interface method naming 2019-01-03 12:22:28 +00:00
baldurk 6dd67d0069 Fix argument string for buffer views in D3D12 pipeline view 2019-01-03 12:22:28 +00:00
baldurk 96075bc575 Remove unwanted rowspan on D3D12 sample mask
* This messed up the grid outlines as it included another extra row that it
  shouldn't have.
2019-01-03 12:22:27 +00:00
Jake Turner d02280ea5e tests: increase milliseconds2 test maximum to 1580
OSX unit tests on travis failing with milliseconds2 = 1575.065805
2019-01-03 12:21:58 +00:00
Jake Turner 8105ddb5ab osx: for cmake set library output to be lib folder
On Apple only set  CMAKE_LIBRARY_OUTPUT_DIRECTORY to be “lib” folder instead of “bin” folder
Fixes osx problem when launching renderdoccmd not being able to find librenderdoc.dylib
RPATH is set to be "@executable_path/../lib" which matches where qrenderdoc.app copies the renderdoc library to

qrenderdoc: set library search folder “-L” to be CMAKE_LIBRARY_OUTPUT_DIRECTORY instead of CMAKE_RUNTIME_OUTPUT_DIRECTORY
2019-01-03 12:21:58 +00:00
Jake Turner 8fdf3ac245 osx: Fix cmake warning about policy CMP0068
``RPATH`` settings on macOS do not affect ``install_name``

Set BUILD_WITH_INSTALL_NAME_DIR to 1 to obtain old behaviour for before cmake 3.9
2019-01-03 12:21:58 +00:00
Jake Turner e9d70d7eec osx: enable unit tests for OSX travis building
force any command failures to call “exit” to make the script fail if a unit test fails
2019-01-03 12:21:58 +00:00
azhirnov 5d08efc16b Fix some untyped member serialisation 2018-12-29 15:25:59 +00:00
Alex Smith 5444c4b3ab Treat Op(Member)DecorateStringGOOGLE as part of the annotation section
Fixes a crash in the driver on RADV when compiling the PostVS shader
for a shader that has these opcodes. The incorrect section boundaries
was causing BuiltIn decorations to not be stripped.
2018-12-29 14:00:34 +00:00