Commit Graph

1235 Commits

Author SHA1 Message Date
baldurk a05fd08a1c Add support for VK_KHR_maintenance6. Closes #3602 2025-08-25 11:36:01 +01:00
baldurk fa0ba4a532 Don't disable blending for fetching per-fragment postmod 2025-08-18 13:28:11 +01:00
Jake Turner a8ee82bfe8 Extend D3D12_EXECUTE_INDIRECT test for partial update of root constants
Change colour of triangle based on root constant values set by direct API not by indirect API.
This allows verification that RenderDoc replay of indirect root constants does not alter values set by the direct API
2025-07-31 08:07:19 +01:00
baldurk 01a6a488a9 Demo that does descriptor analysis for identification 2025-07-30 22:10:26 +01:00
baldurk 722df90e7b Don't fill AS descriptors if AS extension is not available in demo 2025-07-29 21:43:31 +01:00
baldurk 25adde711a Enforce extra alignment on AS buffers in demo 2025-07-29 16:44:08 +01:00
baldurk e11f3036d8 Destroy query pools on shutdown 2025-07-29 16:43:09 +01:00
baldurk d1ce4ac412 Ignore VUID-vkAcquireNextImageKHR-semaphore-01779 2025-07-29 16:43:05 +01:00
Jake Turner 4ac2861e2b DXIL Shader Debug Data test for struct inheritance
struct TestGrand
{
  int3 i3;
  int2 i2;
};

struct TestParent : TestGrand
{
  int4 i4;
};

struct TestChild : TestParent
{
  int i;
};
2025-07-21 18:23:37 +01:00
Jake Turner 08696443a0 Added workgroup performance tests and basic D3D11 Workgroup test
Added D3D11_Workgroup_Zoo, D3D12 Workgroup Zoo, Vk Workgroup Zoo performance tests

Performance tests primarily for performance testing workgroup debugging speed

Changed workgroup and subgroup result variable from "data" -> "testResult" to help to reduce conflicts
2025-07-21 09:16:56 +01:00
baldurk b5d3cf07a3 Expand test to include array-indexing ASs as well as NULL AS 2025-07-10 17:52:23 +01:00
baldurk 378474d79c Disable bounds testing on inline UBO in descriptor
* Inline UBOs do not have bounds checking/robust access
2025-07-10 17:52:23 +01:00
baldurk 62c2747169 Give each AS build its own scratch space in demo 2025-07-10 17:52:23 +01:00
baldurk 6c5b6177dc Query for supported mutable descriptor types in demo 2025-07-10 17:52:23 +01:00
baldurk 3e70a37fac Add test of descriptor buffer 2025-07-09 09:57:56 +01:00
baldurk 4f0356d7f4 Don't use sleep for test compilation at all, rely on pclose to wait 2025-07-08 12:22:36 +01:00
baldurk 0293487eb8 Properly handle D3D11 constant buffers with a 0 range specified 2025-07-04 14:10:51 +01:00
Jake Turner a81380d800 Extend D3D12_Shader_Debug_Zoo GSM test
Include a large groupshared variable (2D Array)
Call GroupMemoryBarrierWithGroupSync()

groupshared int gsmInt2DArray[2][1024];
2025-07-03 12:25:55 +01:00
baldurk 3f85357598 Ensure official builds still detect compatible android apks properly 2025-06-27 16:16:20 +01:00
baldurk 4f5c51bc01 Adjust values used in texel buffer test to have safer rounding 2025-06-25 12:15:55 +01:00
baldurk e5e1e286c3 Catch exceptions from process_trace in Iter_Test and print as errors 2025-06-25 10:53:46 +01:00
baldurk 6e5518e882 Add --gpuva option to vulkan tests 2025-06-19 16:14:18 +01:00
thisisjimmyfb b79d1e6fe2 Android swapchain format selection prefer to use srgb format
Android to use similar swapchain format and dimension as Windows
2025-06-19 11:45:04 +01:00
thisisjimmyfb 29207a7333 Fix VK_Leak_Check for Android
RemoteServer timedout due to VK_Leak_Check taking too long before sending commands to remote server. Spawning a worker thread to keeping the remote server connection alive fixes the disconnection issue.
2025-06-19 11:45:04 +01:00
thisisjimmyfb 97c74415f6 VK_Large_Descriptor_Sets
Use remote server friendly routine to check capture file
2025-06-19 11:45:04 +01:00
thisisjimmyfb 035fc9974d Remote Android and Linux test support part 2
Support swapchain image size greater than 4
2025-06-19 11:45:04 +01:00
thisisjimmyfb b1d3123583 Remote Android and Linux test support part 1
Add remote server support to test framework
2025-06-19 11:45:04 +01:00
baldurk d7236e0d91 Fix reads & writes to storage texel buffers in vulkan shader debugging 2025-05-26 14:59:46 +01:00
Jake Turner 1881b26fef Test for DXIL constant global pointers 2025-05-22 12:12:09 +01:00
Jake Turner 962c1cdcf6 Enable Python shader trace validation by default 2025-05-19 16:57:22 +01:00
Jake Turner 9523f98b8a Python implementation of ShaderDebugTrace validation
Similar to the validation that is performed in ShaderViewer UI
Disabled by default pass True to process_trace to enable the validation
Includes validate_shadervariable() and shadervariable_equal()
2025-05-19 16:44:45 +01:00
Jake Turner be6cc2d324 Verify pixel history succeeds as part of D3D12_Execute_Indirect tests 2025-05-18 12:52:56 +01:00
baldurk ea19a5d20b Update build-shaderc to properly build on VS2022 with x64
* Add a helper script to build demos with VS2022 in release for shipping that
  link to shaderc. By default VS2015 won't link to it.
2025-05-16 16:00:56 +01:00
Jake Turner fc956fee61 Improvements to *_Groupshared tests
More checking of GSM local/global cache behaviour when debugging
One test is not GPU stable and its results are verified against hard coded expectation (this is to test the expected behaviour of the local GSM cache on the active thread)
2025-05-10 11:49:43 +01:00
Jake Turner d48f217119 Tweak D3D12_Resource_Mapping_Zoo sig_resourceAccess UAV entries
Use UAV handles (20, 21) for the UAVs instead of SRV handles (56, 57)
2025-05-08 16:06:35 +01:00
Jake Turner dbe2d9dd2e Fix D3D12_Shader_Debug_Zoo CS failing test 2025-05-08 10:21:27 +01:00
Jake Turner 033a4d1e5a First version of python for *_Groupshared tests
Verify outval shader debugger variable matches the real generated data in outBuf
2025-05-07 12:12:57 +01:00
Jake Turner fbb39b21a6 Extend D3D12 Shader Debug Zoo GSM tests
struct TestStruct
{
  uint3 a;
  uint3 b;
};

groupshared int gsmInt;
groupshared TestStruct gsmStruct[8];
groupshared int gsmIntArray[128];
2025-05-07 11:18:14 +01:00
Jake Turner 2fbf85fad1 Divide up tests between Workgroup_Zoo and Subgroup_Zoo
Subgroup_Zoo : unit tests, non-trivial convergence tests moved to Workgroup_Zoo
Workgroup_Zoo : convergence tests, small number of unit tests (not full coverage)

Added checks for workgroup convergence in Workgroup_Zoo tests
* Vulkan uses barrier()
* D3D12 uses AllMemoryBarrierWithGroupSync()
* dispatches workgroup of 2x1x1
* test debug results for workgroup 1,0,0
2025-05-07 11:05:55 +01:00
baldurk c945293b3e Add sanity checking strict mode to build scripts 2025-05-06 12:42:23 +01:00
baldurk f9c1ae7944 Fix installer script referencing missing entry 2025-05-03 22:03:21 +01:00
baldurk 852825c6f1 Remove 32-bit GPA from installer manifest 2025-04-30 11:50:55 +01:00
baldurk 395d8079e6 Don't test MSAA with A8_UNORM formats in VK_Texture_Zoo
* This is apparently in a format capability class to R8 it seems, and since we
  don't expect anyone to be rendering to A8 let alone in MSAA, there's no point
  in testing this.
2025-04-28 17:26:53 +01:00
baldurk d239a59ff0 Fix pick component type for S8 textures 2025-04-28 17:26:06 +01:00
baldurk 361624ff84 Add slight increase to error tolerance for SNorm textures 2025-04-28 17:10:53 +01:00
baldurk e0b0b24efd Increase shader compiler delay in tests 2025-04-24 16:12:15 +01:00
Jake Turner 258ab5b6e3 Change test helper to just check for asserts (not errors)
Setting the Vulkan layer produces two errors
2025-04-22 14:31:43 +01:00
Jake Turner a8de121cd0 Check for Asserts & Errors when running D3D12_Shader_DebugData_Zoo tests 2025-04-22 13:09:04 +01:00
Jake Turner 4ead1e4423 Handle initialising a DXIL constant struct to NULL
It is a nop because ShaderVariable starts initialised to 0
2025-04-22 12:37:28 +01:00
Jake Turner eeac056816 VK and D3D12 Workgroup & Subgroup Zoo tests fail on Asserts or Errors
Check the renderdoc log for lines matching "Assertion" or "Error"
Using new helper function in testcase.py
def check_renderdoc_log(self, asserts: bool = True, errors: bool = True):
2025-04-22 12:33:56 +01:00