Commit Graph

289 Commits

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