Commit Graph

253 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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