Hans-Kristian Arntzen
5ef3d4bff9
tests: Move test implementations to appropriate files.
...
Avoids crippling 50+ ksloc files which are impossible to navigate
efficiently. IDEs tend to give up on files these large and editors start
to chug hard.
This commit is essentially pure cut 'n paste, which is why it's all in
one large commit. There is little to no reason to attempt to split this
up into multiple smaller commits.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
Hans-Kristian Arntzen
1a7ea5e0a6
tests: Make tests extern.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
Hans-Kristian Arntzen
195e1a3447
tests: Declare test prototypes in separate header.
...
Allows for moving test implementations to their own translation units.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
Hans-Kristian Arntzen
9d5cf16fc3
tests: Move common test code to its own file.
...
Some ifdef jank required since the various headers declare the main function.
Some additional jank with INITGUID, otherwise we get multiple
declaration errors.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
Hans-Kristian Arntzen
f589462ab5
tests: Move math MATH defines to d3d12_crosstest.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
Hans-Kristian Arntzen
aaaac271bd
tests: Make other entry points extern.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
Hans-Kristian Arntzen
8c89dacf76
tests: Make common test functionality extern.
...
Prepares for a situation where tests can be spread across multiple
translation units.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-08-26 14:05:23 +02:00
David McCloskey
155195ef99
tests: Adding test for crash caused by CopyTextureRegion with null source box from larger texture to smaller.
...
Signed-off-by: David McCloskey <davmcclo@gmail.com>
2021-07-29 17:28:52 +02:00
Hans-Kristian Arntzen
3f3162ab5f
tests: Add test for fence signal with NULL event.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-29 17:21:20 +02:00
Hans-Kristian Arntzen
88978ab059
tests: Add SM 6.5 wave intrinsics test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-29 16:58:07 +02:00
Hans-Kristian Arntzen
a7e77fa777
tests: Add test for SM 6.4 packed arithmetic instructions.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-28 15:28:19 +02:00
Hans-Kristian Arntzen
4d97efc9d4
tests: Add test for SM 6.2 FP32 denorm attribute.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-28 15:28:19 +02:00
Hans-Kristian Arntzen
760e8e1565
tests: Add tests for FP16 and how features are handled.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-28 15:28:19 +02:00
Hans-Kristian Arntzen
229db9008a
tests: Add test for SV_Barycentrics.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-21 14:34:29 +02:00
Hans-Kristian Arntzen
4ed8931401
tests: Add test for ResolveSubresourceRegion.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-08 13:54:05 +02:00
Hans-Kristian Arntzen
c29a2d1fa8
tests: Add test for COLOR -> DEPTH copies.
...
Only had DEPTH -> COLOR.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-07 15:31:52 +02:00
Hans-Kristian Arntzen
fbe6f4a210
tests: Make sure that we exercise separate DS clears in test suite.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-07 15:31:52 +02:00
Hans-Kristian Arntzen
a87d086a39
tests: Update min_lod test with TODO which reflect existing impl.
...
An extension should be able to remove all the TODOs.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-07 12:50:23 +02:00
Joshua Ashton
a361bcb0f8
tests: Add a test for MinLODClamp
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-07 12:20:24 +02:00
Hans-Kristian Arntzen
1e4628376f
tests: Add test for VBV stride edge cases.
...
Verifies that AMD native driver behaves oddly with stride < offset
cases.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-06 15:29:51 +02:00
Hans-Kristian Arntzen
55bbea5d29
tests: Test depth-stencil discards as well.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-02 15:18:16 +02:00
Hans-Kristian Arntzen
33edd1b926
tests: Ensure we hit viewport count 0 case in test suite.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-07-01 13:53:19 +02:00
Hans-Kristian Arntzen
8a82b718e4
tests: Remove TODO in stencil_export test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-24 16:22:24 +02:00
Hans-Kristian Arntzen
0a732a3b27
tests: Add DXIL path to test_atomic_instructions.
...
It exercises root descriptor atomics, so it's useful.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-24 15:23:52 +02:00
Hans-Kristian Arntzen
7ab0846242
tests: Add test for placed resource runtime validation.
...
Runtime validates resource size.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-17 15:53:35 +02:00
Philip Rebohle
6d1d60e898
tests: Test tile mappings for 3D textures.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-06-14 15:53:33 +02:00
Philip Rebohle
14617a7bb2
tests: Test resource tiling for 3D textures.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-06-14 15:53:33 +02:00
Hans-Kristian Arntzen
fda8cba2b8
tests: Add missing resource barrier to some tests.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-10 13:57:32 +02:00
Hans-Kristian Arntzen
8056a71415
tests: Fix wrong resource state in test_bufinfo_instruction.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-10 13:57:32 +02:00
Hans-Kristian Arntzen
3c6174cafc
tests: Fix type mismatch in test_draw_uav_only.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-10 13:57:32 +02:00
conor42
2ad16f89d3
tests: Modify dadd test to use a double2 vector.
...
Tests a codepath in vkd3d_dxbc_compiler_get_constant() where
component_count != 1.
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
2021-06-09 20:54:02 -07:00
Hans-Kristian Arntzen
a09819250f
tests: Add null descriptor mismatch type test.
...
Verifies that we splat null descriptors appropriately.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-07 13:21:31 +02:00
Hans-Kristian Arntzen
47f978fec3
tests: Test clearing a NULL UAV.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-06-07 13:21:31 +02:00
Hans-Kristian Arntzen
582138b063
tests: Fix Clear UAV test constant.
...
Was using 0x8000 / 0xffff instead of 0x200 / 0x3ff, rounded differently
on NV.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-05-28 17:42:00 +02:00
Hans-Kristian Arntzen
616538aa47
tests: Add missing UAV barrier in bindless counter test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-05-28 15:56:18 +02:00
Hans-Kristian Arntzen
1a7b470681
tests: Add clear UAV test for RGB10A2 format.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-05-27 15:34:53 +02:00
Hans-Kristian Arntzen
32a2bd65f9
tests: Remove TODOs in ClearUAV.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-05-27 15:34:53 +02:00
Hans-Kristian Arntzen
47cae1095e
tests: Test copying depth-stencil to color.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-05-05 00:11:10 +02:00
Hans-Kristian Arntzen
afb2067d72
tests: Test that we can safely read ClipDistance in DS.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-04-19 12:38:37 +01:00
Joshua Ashton
1761cf3aa1
tests: Add a SV_ClipDistance in HULL shader test
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-19 13:19:44 +02:00
Hans-Kristian Arntzen
4925495e0a
tests: Verifies behavior if we pass mismatching stages.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-04-15 16:24:05 +02:00
Hans-Kristian Arntzen
70f3f769a5
tests: Add test which verifies what happens with missing RS bindings.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-04-15 16:24:05 +02:00
Philip Rebohle
48536b2222
tests: Test command allocator reset behaviour with bundles.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-04-14 16:24:55 +02:00
Philip Rebohle
3fbce3c450
tests: Do not skip test_bundle_state_inheritance test.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-04-14 16:24:55 +02:00
Joshua Ashton
bc87d60ad8
tests: Add a test for RSSetShadingRateImage
...
Passes on D3D12 and VKD3D-Proton.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-12 13:22:01 +02:00
Joshua Ashton
3284f062de
tests: Fix comparisons in test_vrs
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-12 13:22:01 +02:00
Joshua Ashton
82a1dc22a2
tests: Add a SV_ShadingRate test
...
Tests both VS primitive rate and the PS input.
Fails currently on Windows as both vendors have broken combiner
logic in their D3D12 drivers right now.
NV: Fails right now on Min/Max when mixing 2x1 and 1x2.
AMD: Everything is broken. Did they even test this?
Tests pass with Vulkan/vkd3d-proton and the expected values
are based on the D3D12 spec/docs around VRS.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-12 13:22:01 +02:00
Joshua Ashton
14cef6cf3f
tests: Enable D3D12ExperimentalShaderModels
...
We need these for VRS shader tests and probably also for RT.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-12 13:22:01 +02:00
Philip Rebohle
a0a04f9488
tests: Test root signature priority.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-04-06 11:13:35 +02:00
Philip Rebohle
9c8377c2d4
tests: Add test for conservative rasterization.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-03-25 18:00:59 +01:00