Hans-Kristian Arntzen
b2b730ea8b
tests: Add test for open heap from address/file.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-08-25 11:48:41 +02:00
Hans-Kristian Arntzen
2cb6b063fe
tests: Fix uninitialized Layout member.
...
C is fine ...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-30 16:48:31 +01:00
Hans-Kristian Arntzen
27d14cb0ce
meson: Target native d3d12 for Windows test binaries.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-30 17:34:10 +02:00
Hans-Kristian Arntzen
c695c1438b
tests: Add a simple micro-benchmark for descriptor performance.
...
Tests CPU descriptor creation as well as copies in various scenarios.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-29 17:16:29 +02:00
Philip Rebohle
54f23f18b9
meson: Drop d3d12_invalid_usage target.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-07-23 15:48:12 +02:00
Philip Rebohle
79ee5ccf60
tests: Add test for GetClockCalibration.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-07-17 11:49:38 +02:00
Philip Rebohle
62990c3514
tests: Introduce vkd3d_sleep.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-07-17 11:49:38 +02:00
Philip Rebohle
e7d8f1c020
tests: Add test for DiscardResource.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-07-16 16:53:17 +02:00
Hans-Kristian Arntzen
96402f1164
vkd3d: Fix straggling warnings for MSVC.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-16 13:00:09 +02:00
Hans-Kristian Arntzen
7bccab7427
debug: Re-introduce different debug channels.
...
vkd3d-shader is currently kinda buggy and crashes when you try to trace
DXBC. This used to never be run since it was guarded by
VKD3D_SHADER_DEBUG, but with the move to a static build we merged all
debug logging under VKD3D_DEBUG. Reintroduce different debug channels in
a way that is compatible with a statically linked vkd3d.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-10 14:18:15 +02:00
Hans-Kristian Arntzen
d919c74276
vkd3d: Add test for aliasing barriers.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-07-09 14:50:50 +02:00
Joshua Ashton
cb4fcd5a98
include: Replace MinGW hack with Win32 platform header
...
Replace this hack with a more versatile one that works for multiple compilation objects.
Consolidates this hack across all the code bases (soon to be used in a D3D12 standalone patch)
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-06 19:29:30 +02:00
Joshua Ashton
08544fb938
vkd3d: Use CONST_VTBL instead of const for vtable decls
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-03 16:56:10 +02:00
Joshua Ashton
f232ca1b87
build: Link tests against DXGI on Windows
...
Fixes compilation
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-07-01 21:31:43 +02:00
Philip Rebohle
945ec70f4d
tests: Don't build uninteresting tests.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-06-24 15:19:18 +02:00
Hans-Kristian Arntzen
69f338be8f
build: Fix MinGW build.
...
Revert removal of MinGW forceinline hacks.
They are necessary or MinGW fails to build.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-06-24 14:17:34 +01:00
Joshua Ashton
8c216e637c
build: Add Meson build system
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-23 14:55:43 +02:00
Hans-Kristian Arntzen
da782831e4
Revert "vkd3d: Use monotonically increasing fence values in test suite."
...
Rewinding fence values were undocumented at the time, but new
documentation makes it clear that it is allowed to rewind a fence, even
if behavior is unpredictable in nature.
This reverts commit 3b9f1f8a9c
.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-06-16 11:00:08 +02:00
Joshua Ashton
b9909854fe
vkd3d: Make nameless unions really nameless
...
This makes it consistent across tests and vkd3d.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-06-15 19:59:52 +02:00
Hans-Kristian Arntzen
cbdf6f88d2
vkd3d: Remove dependency on linking directly against libvulkan.
...
There is no reason to not load Vulkan dynamically, otherwise, we must
have loader dev packages installed, which is not ideal.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-06-15 15:47:18 +02:00
Philip Rebohle
8ca1a5aab4
tests: Test image creation on ALLOW_ONLY_BUFFERS heap.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-06-08 15:09:21 +02:00
Philip Rebohle
13c6d064ab
tests: Add tests for sparse feedback shader instructions.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-05-12 12:13:30 +02:00
Philip Rebohle
6d227ec653
tests: Add test for CopyTiles.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-05-08 16:30:54 +02:00
Philip Rebohle
9e6def6326
tests: Don't test return value of GetHeapProperties.
...
This returns E_INVALIDARG for reserved resources.
Instead, handle this case properly.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-05-08 16:30:54 +02:00
Philip Rebohle
830f9642b5
tests: Add tests for GetResourceTiling with compressed formats.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-05-07 15:24:35 +02:00
Philip Rebohle
e7711d2926
tests: Add test for sampler border colors.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-05-05 11:39:25 +02:00
Philip Rebohle
d742918353
tests: Fix compiler warning.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Philip Rebohle
642538e0a9
tests: Add test for UpdateTileMappings and CopyTileMappings.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Philip Rebohle
367895ebfa
tests: Add test for GetResourceTiling.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Philip Rebohle
c564d3eb1d
tests: Expand test_create_reserved_resource.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Hans-Kristian Arntzen
e5267713ef
tests: Add basic DXR bringup test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-04-22 18:03:05 +02:00
Hans-Kristian Arntzen
02fb0d2974
vkd3d: Functions take void as argument type in C.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-04-22 16:26:59 +02:00
Hans-Kristian Arntzen
4d602d1958
vkd3d: Fix compilation warnings in d3d12-test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-04-17 17:03:40 +02:00
Philip Rebohle
cc4762935f
tests: Test GetResourceAllocationInfo1.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-14 16:27:08 +02:00
Philip Rebohle
ecc46fe1ec
tests: Add test for exporting SV_StencilRef from PS.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-06 11:53:09 +02:00
Philip Rebohle
0873f15f2e
tests: Add test for exporting SV_RenderTargetArrayIndex from VS.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-06 11:53:09 +02:00
Philip Rebohle
b6b4f7e8d5
tests: Add test for ID3D11Device2::CreatePipelineState.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-01 10:35:40 +02:00
Hans-Kristian Arntzen
3b9f1f8a9c
vkd3d: Use monotonically increasing fence values in test suite.
...
Microsoft documentation says that fences are monotonically increasing
values.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-31 12:51:05 +02:00
Hans-Kristian Arntzen
1030989973
vkd3d: Fix integer cast warning in d3d12.c.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-26 12:17:55 +01:00
Hans-Kristian Arntzen
89cefd87d5
vkd3d: Add test for bindless UAV counters.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-25 14:42:32 +01:00
Hans-Kristian Arntzen
2d83388313
vkd3d: Add test for bindless UAV.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-25 14:42:32 +01:00
Hans-Kristian Arntzen
e21d077a04
vkd3d: Workaround CBV bindless test.
...
DXC is bugged and does not emit the NonUniformResourceIndex qualifier
in DXIL, and thus we expect this test to fail on AMD (it works just fine
on NV though). Only check the first lane of the workgroup for
correctness.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-18 10:58:17 +01:00
Hans-Kristian Arntzen
a6b61fbc1d
vkd3d: Add bindless CBV test for DXIL.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 12:01:23 +01:00
Hans-Kristian Arntzen
8fff9c3028
vkd3d: Add bindless samplers test for DXIL.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 12:01:23 +01:00
Hans-Kristian Arntzen
9ebb14727d
vkd3d: Add bindless SRV test for DXIL.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 12:01:23 +01:00
Hans-Kristian Arntzen
912840351f
vkd3d: Add test for bindless CBV.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 11:11:25 +01:00
Hans-Kristian Arntzen
fee9b2bb05
vkd3d: Implement RS 1.0 volatile for packed descriptor set.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-11 12:20:00 +01:00
Hans-Kristian Arntzen
ae2a2bdbe8
vkd3d: Fix DXIL check in test_coverage.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-06 17:15:38 +01:00
Hans-Kristian Arntzen
b04c2361e2
vkd3d: Add test for bindless samplers.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:33 +01:00
Hans-Kristian Arntzen
687b072b16
vkd3d: Upgrade SRV bindless test to include textures.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:33 +01:00