Commit Graph

11659 Commits

Author SHA1 Message Date
baldurk b402dfeeb5 Don't set program I/O bindings on GL unless it has a vertex/pixel shader
* For separable programs we'll query out I/O bindings for e.g. only the geometry
  pipeline, but we shouldn't try to set those outputs with
  glBindFragDataLocation. Normally we'd expect these bindings to be queried as
  -1 at capture time, but just be sure.
2020-11-10 13:02:08 +00:00
baldurk 5f6f00d175 Fix vulkan vertex shader debugging populating inputs 2020-11-10 12:40:52 +00:00
baldurk daaff29044 Fix crashes with overlays on rasterizer discard enabled pipelines
* None of the overlays do anything when rasterizer discard is enabled, so just
  skip most work.
2020-11-10 11:31:53 +00:00
baldurk 561a15e11a Add some missing GL enums 2020-11-10 11:26:24 +00:00
baldurk 8ca89b9c2d Further compile fixes for half library 2020-11-10 10:06:12 +00:00
baldurk 944070fdd7 Fix warnings with clang build of half library
* Comma operator problems when doing math functions that return two parameters
  (e.g quotient).
* Passing bool tag type through varargs - the varargs aren't actually used and
  there's an overload for true_type, so we can instead accept false_type.
* gcc seems to declare numeric_limits as a struct, so friend'ing it as a class
  throws a warning. Since we only care about C++11 we can omit the tag from the
  friend declaration.
2020-11-09 17:59:53 +00:00
baldurk d5a51dd145 Ignore uselist block in DXIL container 2020-11-09 16:29:39 +00:00
baldurk e3e3d2747e Ignore root signature RST0 chunk in DXBC container 2020-11-09 16:29:29 +00:00
baldurk d9eab23bd5 Fix clipping when rendering RichResourceText documents 2020-11-09 16:02:48 +00:00
baldurk 44b1ab7ef2 Fix patching of indirect draws not storing indexed baseVertex correctly 2020-11-09 16:02:48 +00:00
baldurk 063131d288 Enable and expand float64 tests in VK_Shader_Debug_Zoo 2020-11-09 16:02:48 +00:00
baldurk 58625ad36b Allow debugging SPIR-V shaders that use non-32bit type capabilities/exts 2020-11-09 12:25:21 +00:00
baldurk 7f8e555544 Update remaining I/O handling to support non-32-bit types
* This includes the shader input interface, and storage/cbuffer access.
2020-11-09 12:25:21 +00:00
baldurk 24764c579a Continue type walking from the correct point in type hierarchy 2020-11-09 12:25:21 +00:00
baldurk 9309b09ab6 Convert main SPIR-V dispatch loop to handle any bit width 2020-11-09 12:25:21 +00:00
baldurk 3c65545c82 Add helpers for accessing 'special' properties in pointer/image vars 2020-11-09 12:25:21 +00:00
baldurk 7bdede5dbb Update CalculateSampleGather/CalculateMathOp to support all bit-sizes
* Texture sampling we still do at only 32-bit precision (for inputs and
  outputs). Math operations are done at the correct bit-width.
2020-11-09 12:25:21 +00:00
baldurk 80a7ffc3ec Update GLSL.450 extended instructions to support all bit-widths 2020-11-09 12:25:21 +00:00
baldurk b21f9da85a Add helpers for dispatching in bit-width-agnostic ways 2020-11-09 12:25:21 +00:00
baldurk d9121a7f90 Add half.hpp 2.1.0 from http://half.sourceforge.net/ 2020-11-09 12:25:21 +00:00
baldurk ab28d102cd Fix bug allowing users to close unclosable texture viewer panels 2020-11-09 12:25:20 +00:00
baldurk 2bfccb1321 Properly apply vertexOffset for builtin in indexed draws 2020-11-05 21:29:16 +00:00
trietch e69eacf989 Add Fedora dependencies 2020-11-05 17:11:10 +00:00
baldurk 8be0da2ce3 Add a test of AMD shader operations 2020-11-04 17:48:49 +00:00
baldurk 6352786d31 Fix post-processing of AMD shader ops 2020-11-04 17:24:23 +00:00
baldurk 791a3a6f57 Print used nvapi version 2020-11-04 15:16:16 +00:00
baldurk 47680e3821 All nvapi opcodes are treated as supported
* Some can't be debugged, but we can capture/replay/disassemble all opcodes so
  don't block them.
2020-11-04 15:16:07 +00:00
baldurk c7e1ea08c4 Add support for capture/replay of AGS shader extensions 2020-11-04 15:15:17 +00:00
baldurk 24ec36b4e0 Batch moves of indirect drawcall nodes 2020-11-03 23:32:21 +00:00
baldurk d80300b337 Don't use IDs to identify redundant root signature binds
* If we compare the underlying pointer we know for sure if it's the same or
  different.
2020-11-03 18:55:49 +00:00
baldurk 0eea63c238 Always show UnpackedSignature for root signatures
* We want to display this even if the root signature was de-duplicated to
  another handle.
2020-11-03 18:32:55 +00:00
baldurk 9a0e1c5535 Treat internal D3D12 descriptors as volatile, not static 2020-11-03 18:24:15 +00:00
baldurk 5006a787d9 Account for inverse viewport height when picking vertices 2020-11-02 21:11:50 +00:00
baldurk 41c57c0b68 Tidy up logging of unknown interface queries 2020-10-30 16:49:57 +00:00
baldurk 8548892939 Add support for new D3D interfaces
* Nothing interesting/useful is supported here, we just add new interfaces that
  we recognise even though the user can't use them since we don't report support
  for the new features.
* This also makes it easier to track future changes when we're not behind.
2020-10-30 16:49:57 +00:00
baldurk 7c6dae32f9 Add logging when deleting contexts/share groups 2020-10-30 16:28:03 +00:00
baldurk 695ffaaf24 When viewing a texture from pipeline state, default to view typecast 2020-10-30 16:28:03 +00:00
baldurk b8f647c1e6 Default to float over unorm for FP16 typeless formats
* Given no other information FP16 is much more common than UNORM16. We don't
  know which type to use but float is a better choice.
2020-10-30 16:28:03 +00:00
baldurk caa8bb5be0 Fix incremental build dependencies in python modules 2020-10-30 16:28:03 +00:00
baldurk 4dae8721f8 Add extra error in case of failed file I/O 2020-10-30 16:28:03 +00:00
baldurk d5107ec33d Report tiled resources as unsupported on D3D11 2020-10-30 16:27:57 +00:00
baldurk 55b84f4e7c Test that creating root signatures identical to internal sigs works OK 2020-10-29 16:27:31 +00:00
baldurk ed0138a242 Test that debugging sampling from vert shaders in D3D12 works correctly
* We also test that pixel shaders can be debugged even if they have
  DENY_ROOT_SIGNATURE_ACCESS enabled.
2020-10-29 16:12:33 +00:00
baldurk 7dec9933f6 Test that creating and destroying contexts doens't have side effects 2020-10-29 15:45:04 +00:00
baldurk b9a6212c3e When running tests if --pyrenderdoc is omitted, try default location 2020-10-29 15:08:50 +00:00
baldurk ffd8827812 Add test that tries to stress reallocation/pool allocation of commands 2020-10-29 15:08:50 +00:00
baldurk 3465809447 Add test that different list/queue types are handled in D3D12 2020-10-29 12:51:29 +00:00
baldurk 810e57e6ac Fix error serialising contents of UAV descriptors 2020-10-29 12:49:08 +00:00
baldurk bb2a8a431f Ensure we reset any android capture settings on close
* If no capture is loaded after launching a program, the capture settings can
  still be present and cause problems with future launches of applications
  depending on the Android version.
2020-10-29 12:03:27 +00:00
baldurk 19489feb4e Update microsoft/setup-msbuild action to latest 2020-10-29 11:27:31 +00:00