Józef Kucia
2f0d43a75a
tests: Add test for creating heaps.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 12:30:15 +02:00
Józef Kucia
21f1489b88
tests: Add more tests for D3D12CreateDevice() with device set to NULL.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-20 18:19:37 +02:00
Józef Kucia
9ce53b74df
libs/vkd3d: Return S_FALSE from D3D12CreateDevice() when device is NULL.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-19 16:51:08 +02:00
Józef Kucia
a0800de4ed
tests: Get rid of create_texture().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-03 22:02:28 +02:00
Józef Kucia
cc8c0135a1
tests: Add test for cube maps.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:43:41 +02:00
Józef Kucia
d15c9f79b5
libs/vkd3d-shader: Fix returning multiple components from dot product instructions.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 21:58:58 +02:00
Józef Kucia
0b9477493d
tests: Add simple test for layered rendering.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 21:58:56 +02:00
Józef Kucia
78c952ee5f
libs/vkd3d: Fix rendering to DXGI_FORMAT_A8_UNORM.
...
In Direct3D alpha is taken from the .r component.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-24 23:29:28 +02:00
Józef Kucia
0ae0e431b1
libs/vkd3d-utils: Prefix defines with VKD3D_.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 15:50:04 +02:00
Józef Kucia
f0a1e14113
libs/vkd3d: Mark device as removed when command list in recording state is executed.
...
Fixes a GPU hang in test_device_removed_reason() on RADV.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-16 21:59:57 +02:00
Józef Kucia
0e86a6b353
libs/vkd3d: Use HRESULT as preferred error code.
...
For consistency.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 18:56:25 +02:00
Józef Kucia
69e6382880
tests: Add additional test for copying descriptors with NULL range sizes.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 18:56:06 +02:00
Józef Kucia
f5b532921a
libs/vkd3d: Add structure type fields to public API structures.
...
Adds flexibility for future API extensions.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-03 21:59:35 +02:00
Józef Kucia
c7d7c58451
tests: Add test for custom PRESENT state transitions.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 14:11:00 +02:00
Józef Kucia
aafbaddb2c
tests: Allow sharing common code between D3D12 tests.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 14:10:57 +02:00
Józef Kucia
953a924ca0
libs/vkd3d: Fix copying descriptors with NULL source range sizes.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-28 19:48:21 +02:00
Józef Kucia
fb034dd325
tests: Add test for rendering to DXGI_FORMAT_A8_UNORM.
...
Rendering to A8_UNORM doesn't work yet, because we cannot easily swizzle
components for render target image views.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 18:40:05 +01:00
Józef Kucia
2d3a291b01
tests: Add test for sampling from DXGI_FORMAT_A8_UNORM.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 18:40:03 +01:00
Józef Kucia
d1e62117ea
tests: Add test for OMSetRenderTargets().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 18:39:49 +01:00
Józef Kucia
65aab7b47b
libs/vkd3d: Use PFN prefix for function pointer typedefs.
...
A more common convention, e.g. Vulkan uses it.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 21:35:33 +01:00
Józef Kucia
c634e8f56a
tests: Add test for geometry shaders.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 18:57:09 +01:00
Józef Kucia
372bd56ade
libs/vkd3d: Add support for device parent.
...
In order to hold a reference to IDXGIAdapter.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 18:49:52 +01:00
Józef Kucia
9075722128
libs/vkd3d: Implement internal reference counting for resources.
...
For swapchain back buffers.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 22:32:22 +01:00
Józef Kucia
7c60685396
tests: Add test for additional device extensions.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 22:32:16 +01:00
Józef Kucia
12aa2cb74c
tests: Add test for additional instance extensions.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 21:42:10 +01:00
Józef Kucia
4cd36fc553
libs/vkd3d: Implement d3d12_device_GetAdapterLuid().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 21:42:08 +01:00
Józef Kucia
16723f9d71
tests: Add test for required device extensions.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 18:50:02 +01:00
Józef Kucia
0fe7efdd73
tests: Add test for creating instance with vkGetInstanceProcAddr() pointer.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 18:50:00 +01:00
Józef Kucia
ebca1d3396
libs/vkd3d: Validate signal_event_pfn.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 18:49:58 +01:00
Józef Kucia
6a32ad8913
libs/vkd3d: Rename vkd3d_get_vk_instance() to vkd3d_instance_get_vk_instance().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 18:49:56 +01:00
Józef Kucia
05cb9de9a3
tests: Fix and simplify checks for error codes.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-18 16:21:36 +01:00
Józef Kucia
cd2c636bf5
tests: Add tests for selecting physical devices.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-18 16:21:34 +01:00
Józef Kucia
44aad2a938
tests: Fix copy-paste mistakes.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-16 20:11:18 +01:00
Józef Kucia
12ca2bbcf6
libs/vkd3d: Add thread-safe API for accessing Vulkan command queues.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-15 17:51:39 +01:00
Józef Kucia
8357908bc2
tests: Add test for executing command lists from multiple threads.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-15 17:51:37 +01:00
Józef Kucia
709b866001
tests: Add test for vkd3d_create_device().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-12 19:27:04 +01:00
Józef Kucia
0aef5f927e
tests: Add test for creating vkd3d instances.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-12 19:27:02 +01:00
Józef Kucia
ee8eb9b4e4
libs/vkd3d: Validate miplevel count while creating resources.
...
vkd3d_log2i() is imported from wined3d.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-11 22:31:33 +01:00
Józef Kucia
5d85da0d84
libs/vkd3d: Release current command allocator in d3d12_command_list_Close().
...
d3d12_command_allocator_free_command_buffer() is not a very accurate name.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-09 20:37:12 +01:00
Józef Kucia
1c74a30e9f
tests: Add basic test for NULL descriptors.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-09 20:37:06 +01:00
Józef Kucia
abff3ca469
include: Prefix public header file names with vkd3d.
...
Prevents possible clashes when using vkd3d with external Win32 headers.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-15 16:27:34 +01:00
Józef Kucia
3956eaf6d0
tests: Detect test platform dynamically.
...
In order to run cross-compiled tests under Wine.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 13:40:22 +01:00
Józef Kucia
d100804e91
tests: Make sure that config.h is included before other headers.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 13:13:03 +01:00
Józef Kucia
a1819eb3ca
tests: Add test for discard instruction.
2017-12-11 13:22:03 +01:00
Józef Kucia
d37bfd9d3e
tests: Get rid of unnamed struct in test_instance_id().
2017-11-01 21:17:46 +01:00
Józef Kucia
2a420cb8c5
tests: Add test for face culling.
2017-10-31 15:44:44 +01:00
Józef Kucia
201782ed7c
tests: Test copying data from texture in generic read state.
2017-10-31 10:55:13 +01:00
Józef Kucia
63d5fa5d9c
tests: Check depth texture content in test_depth_read_only_view().
2017-10-30 14:22:11 +01:00
Józef Kucia
8a7faf7913
tests: Add test for read-only depth stencil views.
2017-10-30 14:04:53 +01:00
Józef Kucia
b109a1fc73
tests: Add additional test for resolving query data in different command list.
2017-10-26 12:51:11 +02:00
Józef Kucia
c4e92f91f3
tests: Add test for resolving query data in different command list.
2017-10-26 12:51:11 +02:00
Józef Kucia
7b5d745ef5
tests: Fix compilation with -O0.
2017-10-25 22:55:39 +02:00
Józef Kucia
f270e36c78
tests: Unify ok() messages.
2017-10-24 12:10:48 +02:00
Józef Kucia
49c3eb69d9
tests: Add helper functions for creating descriptor heaps.
2017-10-24 12:10:48 +02:00
Józef Kucia
e3dfbab2fa
tests: Do not re-create buffer in test_tgsm().
2017-10-24 12:10:48 +02:00
Józef Kucia
56391f471c
tests: Add test for copying from depth texture to color texture.
2017-10-20 18:27:17 +02:00
Józef Kucia
b0979b27f6
tests: Fix shader code in test_depth_load().
2017-10-20 18:27:17 +02:00
Józef Kucia
8f3e071868
tests: Add additional test for rcp instruction.
2017-10-18 12:27:41 +02:00
Józef Kucia
62b6530af3
libs/vkd3d-shader: Check return values of imm_atomic_consume in test_decrement_uav_counter().
2017-10-12 13:10:26 +02:00
Józef Kucia
a7bd28ffac
tests: Use better variable names in test_uav_counters().
2017-10-12 13:10:26 +02:00
Józef Kucia
eecd16f1cd
tests: Fix test_uav_counters().
...
Results were read from the wrong buffer.
2017-10-12 13:10:26 +02:00
Józef Kucia
cb417ef46b
tests: Remove hack for creating root signatures.
2017-10-10 16:02:09 +02:00
Józef Kucia
6b9c3b8971
tests: Add test for root signature serialization.
2017-10-10 16:02:09 +02:00
Henri Verbeet
53654baab9
libs/vkd3d: Support D3D12_FEATURE_FORMAT_SUPPORT in d3d12_device_CheckFeatureSupport().
2017-10-10 13:09:32 +02:00
Józef Kucia
4504aa65ef
tests: Add test for constant buffer relative addressing.
2017-10-06 17:06:31 +02:00
Józef Kucia
05f52dc079
tests: Add test for switch without default case.
2017-10-05 15:58:51 +02:00
Józef Kucia
50df52427f
tests: Add test for clearing buffer unordered access views.
2017-10-04 13:55:33 +02:00
Józef Kucia
128ff2fa32
tests: Add test for typed UAV writes.
2017-09-26 10:37:41 +02:00
Józef Kucia
3015a4c12b
tests: Add test for loading texels from depth textures.
2017-09-26 10:37:41 +02:00
Józef Kucia
2323c36fbd
tests: Add test for descriptors visibility.
2017-09-22 16:42:07 +02:00
Józef Kucia
c88b7872d3
tests: Add test for creating resource with unsupported resource flags.
2017-09-21 15:12:13 +02:00
Józef Kucia
9e9af5625b
tests: Add basic test for D3D12_FEATURE_FORMAT_SUPPORT.
2017-09-21 15:12:13 +02:00
Józef Kucia
5351ef7184
tests: Add test for gather4 instructions.
2017-09-21 15:12:13 +02:00
Józef Kucia
260421f6ee
tests: Add simple test for imm_atomic_consume shader instruction.
2017-09-20 15:01:09 +02:00
Józef Kucia
da0c149138
tests: Add test for separate bindings.
2017-09-19 17:29:20 +02:00
Józef Kucia
51b1c165ba
tests: Use create_default_texture() in more places.
2017-09-18 15:40:42 +02:00
Józef Kucia
842050f763
tests: Add another test for updating descriptor tables.
...
This test exercises copy descriptors code path in libvkd3d.
2017-09-18 15:40:42 +02:00
Józef Kucia
61703a53d2
tests: Add test for resolving non-issued queries data.
2017-09-14 14:57:09 +02:00
Józef Kucia
65774910bd
tests: Remove excess newline.
2017-09-14 14:57:09 +02:00
Józef Kucia
6c7ab64652
tests: Add test for SV_InstanceID.
2017-09-12 17:42:42 +02:00
Józef Kucia
6a026dc7bb
tests: Add test for dispatching zero thread groups.
2017-09-12 17:42:42 +02:00
Józef Kucia
c9b561e851
tests: Add test for div instruction.
2017-09-12 17:42:42 +02:00
Józef Kucia
c5ba705b9f
tests: Add test for round_z instruction.
2017-09-12 17:42:42 +02:00
Józef Kucia
2966f019b0
tests: Add test for D3D12_APPEND_ALIGNED_ELEMENT.
2017-09-11 22:35:16 +02:00
Józef Kucia
72b835e0bf
tests: Add test for binding overlapping heap descriptor ranges.
2017-09-11 22:35:16 +02:00
Józef Kucia
2a6f244f36
tests: Add test for UAV counters.
2017-09-08 15:04:30 +02:00
Józef Kucia
9d899b3f06
tests: Add test for updating descriptors after closing command list.
2017-09-05 11:53:55 +02:00
Józef Kucia
6f2814532b
tests: Add test for updating descriptor tables.
2017-09-05 11:53:55 +02:00
Józef Kucia
759117c798
tests: Add test for root signature limits.
2017-09-05 11:53:55 +02:00
Józef Kucia
579a8bc3e0
tests: Also test copying uninitialized descriptors.
2017-09-04 18:33:09 +02:00
Józef Kucia
4c017cbfdc
tests: Add test for copying descriptors.
2017-09-04 18:33:09 +02:00
Józef Kucia
62bd4e6e63
libs/vkd3d: Add support for OffsetInDescriptorsFromTableStart.
2017-08-31 11:21:34 +02:00
Józef Kucia
551b97e087
tests: Make test_query_occlusion() more strict.
2017-08-31 09:29:02 +02:00
Józef Kucia
3535112598
tests: Check that PS was invoked at least once for each pixel.
2017-08-31 09:29:02 +02:00
Józef Kucia
0741d1002a
tests: Do not memcpy() pipeline statistics in test_query_pipeline_statistics().
2017-08-31 09:29:02 +02:00
Józef Kucia
3bd3e03767
tests: Fix resource state transition in test_texture_copy_region().
...
Fixes Vulkan and D3D12 validation layers errors.
2017-08-30 17:57:23 +02:00
Józef Kucia
6c9aca956a
tests: Recognize readback buffers in get_buffer_readback_with_command_list().
...
We can map readback buffers directly.
2017-08-30 17:57:23 +02:00
Józef Kucia
20d4cf551b
tests: Add offset parameter to update_buffer_data().
2017-08-30 17:57:23 +02:00
Sven Hesse
cd20fe94be
tests: Add test for texture to texture region copies.
2017-08-30 16:55:02 +02:00
Sven Hesse
3512a74a39
tests: Add a test for occlusion queries.
2017-08-29 13:38:39 +02:00
Józef Kucia
42726ea86b
tests: Use create_default_buffer() helper in test_execute_indirect().
2017-08-29 10:32:24 +02:00
Henri Verbeet
da54bd0278
libs/vkd3d: Implement indirect dispatches.
2017-08-28 19:29:35 +02:00
Henri Verbeet
b000952e4f
libs/vkd3d: Implement indirect draws.
2017-08-28 19:26:31 +02:00
Henri Verbeet
882d54dacb
tests: Get rid of the unused SHADER_BYTECODE macro.
2017-08-28 19:22:15 +02:00
Józef Kucia
3fd94c3c04
tests: Remove unused test context desc.
2017-08-28 19:10:23 +02:00
Józef Kucia
b92fe8667e
tests: Add test for UAV loads.
2017-08-28 19:10:23 +02:00
Józef Kucia
4013e41c9e
tests: Implement upload for multiple sub-resources.
2017-08-28 19:10:23 +02:00
Sven Hesse
495fe2a96a
tests: Add test for pipeline statistics queries.
2017-08-28 15:35:54 +02:00
Józef Kucia
471041454d
tests: Skip some tests when WARP is explicitly requested.
2017-08-28 13:47:07 +02:00
Józef Kucia
ab28e2005c
tests: Introduce create_default_buffer() helper function.
2017-08-28 12:34:44 +02:00
Józef Kucia
7c4d9f87f6
tests: Factor out create_readback_buffer() function.
2017-08-28 12:34:44 +02:00
Józef Kucia
b6627974de
tests: Factor out init_buffer_readback() function.
2017-08-28 12:34:44 +02:00
Józef Kucia
dc51597db8
tests: Add test for atomic instructions.
2017-08-28 11:01:23 +02:00
Sven Hesse
a8441a698c
tests: Add test for timestamp queries.
2017-08-25 15:16:07 +02:00
Józef Kucia
6124a4c30e
tests: Add test for TGSM.
2017-08-24 15:13:38 +02:00
Sven Hesse
be6af110b4
tests: Mark CreateQueryHeap() for SO_STATISTICS as todo
2017-08-23 17:31:12 +02:00
Sven Hesse
8a78575563
tests: Add test for creating query heaps
2017-08-23 16:18:46 +02:00
Józef Kucia
18a7e62b3f
tests: Add test for buffer shader resource views.
2017-08-22 12:39:56 +02:00
Józef Kucia
e24a3ba8fd
tests: Add test for compute shader registers.
2017-08-21 16:30:33 +02:00
Józef Kucia
cab5640d56
tests: Add test for drawing with no render targets.
2017-08-21 12:41:07 +02:00
Józef Kucia
1588e593f4
tests: Add basic test for depth test.
2017-08-18 14:52:40 +02:00
Józef Kucia
ce0c485d2c
tests: Add test for depth/stencil views.
2017-08-16 17:38:33 +02:00
Józef Kucia
3baf5192af
tests: Add test for render target sRGB views.
2017-08-15 13:10:05 +02:00
Józef Kucia
bdee037a1c
tests: Add command-line option to force WARP device.
2017-08-15 12:24:44 +02:00
Józef Kucia
1e744efdd9
tests: Use init_test_context() in test_clear_render_target_view().
2017-08-15 11:25:10 +02:00
Józef Kucia
e8c58f264c
tests: Use init_test_context() in test_clear_depth_stencil_view().
2017-08-15 11:25:10 +02:00
Józef Kucia
7779250f87
tests: Use check_sub_resource_uint() in more places.
2017-08-15 11:25:10 +02:00
Józef Kucia
0642318dea
tests: Add test for updating root descriptors multiple times.
2017-08-11 13:58:04 +02:00
Józef Kucia
e01cc64d82
libs/vkd3d: Fix d3d12_device_GetCopyableFootprints() for 3D textures.
2017-08-09 19:38:06 +02:00
Józef Kucia
9110b16e7d
tests: Pass read range to ID3D12Resource_Map().
...
Avoids D3D12 Debug Layer warnings.
2017-08-09 18:44:16 +02:00
Józef Kucia
9d234e454c
tests: Use check_readback_data_float() in more places.
2017-08-09 18:44:16 +02:00
Sven Hesse
2f5ba3509d
tests: Add tests for GetCopyableFootprints with DIMENSION_TEXTURE3D.
2017-08-09 15:37:47 +02:00
Sven Hesse
0a87657e04
tests: Add tests for GetCopyableFootprints with DIMENSION_TEXTURE1D.
2017-08-09 15:37:44 +02:00
Sven Hesse
fd0dc1b7ce
tests: Add tests for GetCopyableFootprints with DIMENSION_BUFFER.
2017-08-09 15:19:27 +02:00
Józef Kucia
0c41cea4a1
tests: Introduce update_buffer_data() helper function.
2017-08-08 17:09:35 +02:00
Józef Kucia
942ca6b2bd
tests: Fix shader code indentation.
2017-08-08 17:09:35 +02:00
Józef Kucia
94e2c424e9
tests: Add test for texture UAV writes.
2017-08-08 17:09:35 +02:00
Józef Kucia
ca6b265e66
tests: Use reset_command_list() in more places.
2017-08-07 14:53:51 +02:00
Józef Kucia
6a8b99527a
tests: Add test showing that block compressed texture sizes must be aligned.
2017-08-07 14:53:51 +02:00
Józef Kucia
ba91aeb720
tests: Add test for descriptor tables.
2017-08-04 17:06:33 +02:00
Sven Hesse
6165df4c5c
tests: Don't test GetCopyableFootprints on unaligned compressed textures.
...
Compressed texture sizes must be correctly aligned to the block size.
2017-08-04 13:52:26 +02:00
Sven Hesse
6e601b1d0f
tests: Calculate texture total size using row count, not height.
...
Because the row_pitch and row_size sizes are in terms of rows, not
texel lines. Otherwise, the calculation for compressed textures is
off.
2017-08-04 13:49:47 +02:00
Sven Hesse
3bf82279e9
tests: create_root_signature() can also return E_INVALIDARG.
...
The Nvidia drivers on Windows do that.
2017-08-03 16:31:57 +02:00
Sven Hesse
ea652cb0e4
tests: Create RTV and DSV descriptor heaps with FLAG_NONE.
...
FLAG_SHADER_VISIBLE isn't supposed to apply to RTV and DSV heaps.
2017-08-03 14:41:34 +02:00
Józef Kucia
573460550e
libs/vkd3d: Do not assume CBV root parameter index is equal to Vulkan descriptor binding.
2017-08-02 15:30:15 +02:00
Józef Kucia
c9b05f68b5
tests: Add test for accessing constant buffers from compute shaders.
2017-08-02 15:30:15 +02:00
Józef Kucia
a8b64aeede
tests: Add test for creating unordered access views.
2017-08-02 15:30:15 +02:00
Sven Hesse
8f250bf471
tests: Add tests for GetCopyableFootprints() with compressed formats.
2017-08-02 14:04:35 +02:00
Józef Kucia
26133bd801
tests: Add test for nested switch instructions.
2017-08-01 13:55:49 +02:00
Józef Kucia
e7d3897797
tests: Add test for D3D12_SHADER_VISIBILITY_ALL root constants.
2017-08-01 10:51:45 +02:00
Józef Kucia
94b616d670
tests: Add test for multiple root constants.
2017-08-01 10:51:45 +02:00
Józef Kucia
6478dea0d1
tests: Add test for GPU virtual addresses.
2017-07-28 12:56:18 +02:00
Józef Kucia
4d7a86295d
tests: Add basic test for root constants.
2017-07-28 10:19:37 +02:00
Józef Kucia
4d8dea80ae
tests: Add test for overlapping root descriptors.
2017-07-27 17:35:24 +02:00
Józef Kucia
dc598ccbc8
tests: Add test for creating root signatures with root constants.
2017-07-27 17:35:24 +02:00
Józef Kucia
2ba76ceb02
tests: Do not assign specific shader registers in test_texture().
...
It is not needed since we have a basic mapping for D3D12 shader
registers.
2017-07-26 14:50:39 +02:00
Józef Kucia
ac9abe7740
tests: Avoid unused shader outputs.
...
Fixes Vulkan validation layers performance warnings.
2017-07-25 14:23:27 +02:00
Józef Kucia
97e79e28cf
tests: Add test for typed buffer UAVs.
2017-07-25 12:50:14 +02:00
Józef Kucia
23fa2ca599
tests: Add simple test for creating compute command queue.
2017-07-21 22:29:12 +02:00
Józef Kucia
c790aabb4d
tests: Add additional test for loops.
2017-07-21 14:14:42 +02:00
Józef Kucia
465f1c449e
tests: Add test for udiv instruction.
2017-07-21 14:14:42 +02:00
Józef Kucia
28285d2f18
tests: Add test for rcp instruction.
2017-07-21 14:14:42 +02:00
Józef Kucia
67d001c287
tests: Add test for imul instruction.
2017-07-21 14:14:42 +02:00
Józef Kucia
04672dc64c
tests: Add test for imad instruction.
2017-07-21 14:14:42 +02:00
Józef Kucia
9e6bd63058
tests: Add test for log instruction.
2017-07-20 17:40:45 +02:00
Józef Kucia
530d1306e9
tests: Add test for exp instruction.
2017-07-20 17:40:45 +02:00
Józef Kucia
554321a23c
tests: Add test for frc instruction.
2017-07-20 17:40:45 +02:00
Józef Kucia
d25df67f9c
tests: Add test for integer comparison instructions.
2017-07-20 17:40:45 +02:00
Józef Kucia
e0d95289cd
tests: Add test for umin and umax instructions.
2017-07-20 17:40:45 +02:00
Józef Kucia
c9d9763190
tests: Add test for round_{ni,pi} instructions.
2017-07-20 17:40:45 +02:00
Józef Kucia
d6853dcc20
tests: Add test for loop instructions.
2017-07-20 13:32:40 +02:00
Józef Kucia
465b0b998f
tests: Add test for nested if instructions.
2017-07-20 13:32:40 +02:00
Józef Kucia
171ad02aa8
tests: Add test for movc instruction.
2017-07-18 17:32:26 +02:00
Józef Kucia
332da87f08
tests: Add test for swapc instruction.
2017-07-18 13:31:46 +02:00
Józef Kucia
da6c724c3b
tests: Add test for texturing.
2017-07-17 16:25:29 +02:00
Józef Kucia
091ac41f79
libs/vkd3d: Partially handle descriptor table root parameters.
2017-07-17 16:25:29 +02:00
Józef Kucia
f79ecfc608
tests: Add test for ID3D12Device_GetCopyableFootprints().
2017-07-13 11:56:30 +02:00
Józef Kucia
9e18111027
tests: Add test for creating samplers.
2017-07-12 13:10:44 +02:00
Józef Kucia
85b7dd6d73
tests: Introduce check_sub_resource_vec4() helper.
2017-07-11 17:23:02 +02:00
Józef Kucia
3be16a766f
tests: Add test for immediate constant buffer.
...
Unfortunately, the test fails on Nvidia. It seems that SPIR-V variable
initializers are ignored.
2017-07-11 17:23:02 +02:00
Józef Kucia
8c5d542950
tests: Introduce create_upload_buffer() helper.
2017-07-11 17:23:02 +02:00
Józef Kucia
8d6facabce
tests: Add test for shader interstage registers.
2017-07-10 15:33:34 +02:00
Józef Kucia
5cbf568b0b
tests: Add visual test for f32tof16 instruction.
2017-07-06 18:11:57 +02:00
Józef Kucia
a6e19e9966
tests: Add visual test for f16tof32 instruction.
2017-07-06 18:11:57 +02:00
Józef Kucia
726e94f325
tests: Add visual test for not instruction.
2017-07-06 18:11:57 +02:00
Józef Kucia
7212a74a05
tests: Add test for deserialization of root signature static samplers.
2017-07-06 10:12:22 +02:00
Józef Kucia
0699755b81
tests: Add visual test for shader register source modifiers.
2017-06-29 13:40:27 +02:00
Józef Kucia
5ae7e3d9d0
tests: Add visual test for min/max instructions.
2017-06-29 13:40:27 +02:00
Józef Kucia
5d1829329a
tests: Add visual test for _sat modifier.
2017-06-29 13:40:27 +02:00
Józef Kucia
2be7b7f7f8
tests: Store default viewport and scissor rect in test context.
2017-06-29 13:40:27 +02:00
Józef Kucia
6f83cfc03f
tests: Rename test_draw_context to test_context.
2017-06-29 13:40:27 +02:00
Józef Kucia
94d0b8a7c8
tests: Add test for scissor test.
2017-06-29 13:40:27 +02:00
Józef Kucia
b1000b73d3
tests: Add visual test for SM5 bit instructions.
2017-06-29 09:02:50 +02:00
Józef Kucia
3907daf34b
tests: Add visual tests for ishl instruction.
2017-06-29 09:02:50 +02:00
Józef Kucia
cd2e14ba22
tests: Add visual test for ushr instruction.
2017-06-29 09:02:50 +02:00
Józef Kucia
4e22eeec05
tests: Add visual test for ishr instruction.
2017-06-29 09:02:50 +02:00
Józef Kucia
6dbdb872fc
tests: Add visual tests for bitfield instructions.
2017-06-28 12:28:09 +02:00
Józef Kucia
5005e2c10d
tests: Add visual test for ftoi instruction.
2017-06-28 12:28:09 +02:00
Józef Kucia
acc854ccec
tests: Add visual test for ftou instruction.
2017-06-28 12:28:09 +02:00
Józef Kucia
0cbd632bd3
tests: Add more tests for control flow instructions.
2017-06-28 12:28:09 +02:00
Józef Kucia
19cb3aa0ed
tests: Add test for ID3D12RootSignatureDeserializer.
2017-06-27 13:16:47 +02:00
Józef Kucia
dc26657398
tests: Add visual test for eq instruction.
2017-06-26 17:03:31 +02:00
Józef Kucia
3178e25cb5
tests: Add visual test for ne instruction.
2017-06-26 17:03:31 +02:00
Józef Kucia
0f77fb3435
tests: Add visual test for if instruction.
2017-06-26 17:03:31 +02:00
Józef Kucia
2c4a4bd816
tests: Add initial visual test for shader instructions.
2017-06-23 22:24:33 +02:00
Józef Kucia
55aa937df7
tests: Make test context more flexible.
2017-06-23 22:24:33 +02:00
Józef Kucia
a646e7ed34
tests: Prefer green color for tests success.
2017-06-23 22:24:33 +02:00
Józef Kucia
fe61e0ba22
tests: Add test for fractional viewports.
2017-06-22 13:36:18 +02:00
Józef Kucia
b288c9e672
tests: Add test for fragment coordinates.
2017-06-21 22:00:19 +02:00
Józef Kucia
d35c02be8c
tests: Remove vertex shader SPIR-V code from init_draw_test_context_().
2017-06-21 12:22:20 +02:00
Józef Kucia
2c06f47432
tests: Remove fragment shader SPIR-V code from init_draw_test_context_().
2017-06-20 13:34:44 +02:00
Józef Kucia
8b416514c1
tests: Remove SPIR-V shader code from test_create_pipeline_state().
2017-06-19 19:49:11 +02:00
Józef Kucia
995720f5f5
include: Add align() helper function.
2017-06-16 22:38:21 +02:00
Józef Kucia
84889646f6
Update license to LGPL v2.1.
2017-06-16 22:11:21 +02:00
Józef Kucia
6151119eef
tests: Simplify get_refcount().
2017-05-28 11:45:50 +02:00
Henri Verbeet
0f38858996
libs/vkd3d: Implement D3D12_ROOT_PARAMETER_TYPE_CBV root signature parameters.
2016-11-13 00:44:19 +01:00
Henri Verbeet
fa4072a892
libs/vkd3d: Implement d3d12_command_list_DrawIndexedInstanced().
2016-11-10 16:49:22 +01:00
Henri Verbeet
2213e126cf
libs/vkd3d: Implement d3d12_command_list_ClearDepthStencilView().
2016-11-10 16:43:33 +01:00
Józef Kucia
3ab664c84a
tests: Enable debug layer only when tests are run with "--validate" argument.
2016-11-09 15:03:46 +01:00
Józef Kucia
2eed0e0ed3
tests: Write test name to debug output.
...
This is useful when inspecting the output of D3D12 debug layer.
2016-11-09 15:03:46 +01:00
Józef Kucia
3b748bf5fb
tests: Add basic test for texture resource barriers.
2016-10-25 13:23:18 +02:00
Józef Kucia
e987e02706
tests: Add test for bundle state inheritance.
2016-10-24 13:20:09 +02:00
Józef Kucia
53db1da082
tests: Get rid of D3D12 debug layer warning.
2016-10-24 13:20:09 +02:00
Józef Kucia
f35b311aa1
tests: Introduce "draw_test_context" for simple drawing tests.
2016-10-24 13:20:09 +02:00
Józef Kucia
eea8617b9b
libs/vkd3d: GPU virtual address for texture resources is always 0.
2016-10-24 13:20:09 +02:00
Józef Kucia
e19e428ed0
libs/vkd3d: Check if device memory is CPU accessible in d3d12_resource_Map().
2016-10-24 13:20:09 +02:00
Józef Kucia
81164d43f7
tests: Use stdbool.
2016-10-24 13:20:09 +02:00
Józef Kucia
bc1c2bcadf
tests: Separate statements by semicolon instead of comma.
2016-10-20 16:54:45 +02:00
Józef Kucia
fd9f1abb4f
libs/vkd3d: Fix command list resetting.
...
A command list can be resetted to the same command allocator when it is
in use.
2016-10-20 16:38:04 +02:00
Józef Kucia
2189859532
libs/vkd3d: Command allocator can be used with one command list at a time.
2016-10-20 16:38:04 +02:00
Józef Kucia
d3ad189be4
tests: Add test for resetting command list when it is in use.
2016-10-20 16:38:04 +02:00
Józef Kucia
f2c980af56
libs/vkd3d: Validate resource state for resource barriers.
2016-10-19 16:39:48 +02:00
Józef Kucia
34f6abc81d
tests: Add test for mapping CPU inaccessible buffers.
2016-10-19 13:10:12 +02:00
Józef Kucia
69cd100d48
libs/vkd3d: Validate initial resource state.
2016-10-19 13:10:12 +02:00
Józef Kucia
f601cbc04a
libs/vkd3d: Validate "optimized_clear_value" for buffer resources.
2016-10-19 13:10:12 +02:00
Józef Kucia
60959ecf3c
libs/vkd3d: Add partial support for D3D12_FEATURE_ARCHITECTURE.
2016-10-19 13:10:12 +02:00
Józef Kucia
6904282702
tests: Add test for D3D12_FEATURE_ARCHITECTURE.
2016-10-19 13:10:12 +02:00
Henri Verbeet
53e0839698
libs/vkd3d-utils: Naming conventions.
2016-10-19 09:47:35 +02:00
Józef Kucia
de9769151b
tests: Add test for mapping textures.
2016-10-17 14:24:22 +02:00
Józef Kucia
12211aafc7
tests: Add test for ID3D12Device_GetDeviceRemovedReason().
2016-10-17 14:24:22 +02:00
Józef Kucia
b9b459d297
tests: Add test for invalid usage of resource barriers.
2016-10-17 14:24:22 +02:00
Józef Kucia
2acd31484c
tests: Add additional resource barriers.
...
This isn't validated by the debug layers but the MSDN says that the
subresource must be in the D3D12_RESOURCE_STATE_COPY_SOURCE state.
2016-10-17 14:24:22 +02:00
Józef Kucia
d7a0cdcb54
tests: Use single command list submission in test_draw_instanced().
2016-10-17 14:24:22 +02:00
Józef Kucia
e3fb82d544
libs/vkd3d: Forbid creating textures on UPLOAD/READBACK heaps.
2016-10-17 14:24:22 +02:00
Józef Kucia
fc1c9d914d
libs/vkd3d: Validate initial resource state for UPLOAD/READBACK heaps.
2016-10-17 14:24:22 +02:00
Józef Kucia
ae27ba9601
tests: Add basic test for DrawInstanced().
2016-10-11 13:43:04 +02:00
Józef Kucia
b90676ac73
tests: Make number of ok() calls constant between test runs.
2016-10-10 11:22:50 +02:00
Józef Kucia
5f3d5a1263
tests: Include vkd3d_common.h in vkd3d_test.h.
2016-10-10 11:22:50 +02:00
Józef Kucia
a22b594c0a
libs/vkd3d: Accept D3D12_ROOT_SIGNATURE_DESC directly only when all bits of "bytecode_length" are set.
2016-10-10 11:22:50 +02:00
Józef Kucia
6330c9f46a
tests: Properly print 64-bit unsigned integers.
...
Use PRIu64 since we use C99.
2016-10-10 11:22:50 +02:00
Józef Kucia
6dcd930408
tests: Add multithreaded fence wait test.
2016-10-08 14:31:57 +02:00
Józef Kucia
4153810c00
libs/vkd3d: Partially implement d3d12_command_list_CopyTextureRegion().
2016-10-08 14:31:57 +02:00
Józef Kucia
9620873b55
tests: Add test for signalling fences on GPU.
2016-10-08 14:31:57 +02:00
Józef Kucia
3742d2381f
tests: Use single shared implementation of wait_queue_idle().
2016-10-08 14:31:57 +02:00
Józef Kucia
858e0c79f1
include: Add public header for libvkd3d-utils.
2016-10-07 13:26:39 +02:00
Józef Kucia
ee3c147f82
tests: Add test for signalling fences on CPU.
2016-10-05 15:56:27 +02:00
Józef Kucia
4e802d763c
tests: Add test for creating ID3D12Fence.
2016-09-28 15:24:03 +02:00
Henri Verbeet
baa3f71009
tests: Fix crosstests.
...
The inline wrappers for AsyncIMultiQI in mingw-w64 (mingw-w64-common 3.2.0-2)
are broken and fail to compile. Define WIDL_C_INLINE_WRAPPERS after including
vkd3d_windows.h to avoid them.
2016-09-28 15:00:03 +02:00
Józef Kucia
98a7ce8275
tests: Add test for clearing render target view.
2016-09-28 09:42:49 +02:00
Józef Kucia
09d24d6934
libs/vkd3d: Implement d3d12_command_list_Reset().
2016-09-28 09:42:49 +02:00
Józef Kucia
335bde6550
libs/vkd3d: Implement d3d12_command_allocator_Reset().
2016-09-28 09:42:49 +02:00
Józef Kucia
00fec8232b
libs/vkd3d: Track command list recording state.
2016-09-28 09:42:49 +02:00
Józef Kucia
c311a61dc9
tests: Add test for resetting command allocator.
2016-09-28 09:42:49 +02:00
Józef Kucia
8801f82626
tests: Add test for creating compute pipeline state.
2016-09-26 11:22:33 +02:00
Józef Kucia
39432ca5a3
tests: Add test for creating root signature.
2016-09-26 11:22:33 +02:00
Józef Kucia
e18c2b58f1
tests: Add test for creating descriptor heap.
2016-09-26 11:22:33 +02:00
Józef Kucia
768dffe9d6
tests: Add test for creating committed resource.
2016-09-26 11:22:33 +02:00
Józef Kucia
19eca43f2c
tests: Add test for creating command list.
2016-09-21 17:46:03 +02:00
Józef Kucia
3cde5ba56c
tests: Add test for creating command allocator.
2016-09-21 17:46:03 +02:00
Józef Kucia
ffc3fe877d
tests: Add test for creating command queue.
2016-09-21 17:46:03 +02:00
Józef Kucia
d32f7aa35a
tests: Add test for ID3D12Device_CheckFeatureSupport().
2016-09-21 17:46:03 +02:00
Józef Kucia
f9af61a1dc
tests: Add test for ID3D12Device_GetNodeCount().
2016-09-21 17:46:03 +02:00
Józef Kucia
d406723049
tests: Enable debug layer.
2016-09-21 13:19:16 +02:00
Józef Kucia
6bebee9a09
build: Add "crosstest" target for tests cross-compilation.
2016-09-21 12:57:24 +02:00
Józef Kucia
978584a238
tests: Add test for D3D12CreateDevice().
2016-09-21 12:57:24 +02:00