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
Joshua Ashton
1970051e7a
tests: Use vkGetPhysicalDeviceProperties2 in d3d12_crosstest
...
We require Vulkan 1.1.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-20 18:25:41 +02:00
Joshua Ashton
a3ad7cae90
vkd3d-shader: Remove type/next from interface structures
...
This was never really used for anything useful.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-20 18:25:41 +02:00
Joshua Ashton
3e4a8b1504
vkd3d: Remove type/next from vkd3d device/instance structures
...
There's really no reason to overcomplicate adding optional extensions this way.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-20 18:25:41 +02:00
Joshua Ashton
bd988f2b74
vkd3d: Remove vkd3d_optional_device_extensions_info
...
Roll this into vkd3d_device_create_info, no need for this to be a pNext thing.
Additionally, fix some memory leaks on device creation failure.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-20 18:25:41 +02:00
Joshua Ashton
59148c1932
vkd3d: Remove vkd3d_optional_instance_extensions_info
...
Roll this into vkd3d_instance_create_info, no need for this to be a pNext thing.
Additionally, fix some memory leaks on instance creation failure.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-04-20 18:25:41 +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
Hans-Kristian Arntzen
bd16d1a88d
vkd3d: Support RTPSO object collections.
...
This is quite complicated, but we can use VK_KHR_pipeline_library
to implement this functionality.
2021-03-23 18:35:35 +01:00
Hans-Kristian Arntzen
89679cbff1
tests: Test local definition exports.
...
Attempts to create a hit group out of shaders found in collection objects.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-23 18:35:35 +01:00
Hans-Kristian Arntzen
b306d605f3
tests: Add basic RT collection test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-23 18:35:35 +01:00
Joshua Ashton
b71bc5ef6b
tests: Don't crash if WRITE_WATCH is broken
...
This can happen under Wine.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-18 16:56:36 +01:00
Joshua Ashton
4b6a1ef40d
tests: Add a WRITE_WATCH test
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-18 16:10:05 +01:00
Hans-Kristian Arntzen
102ea2211b
vkd3d: Ignore IASetVertexBuffers for NULL pViews.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-15 14:55:53 +00:00
Hans-Kristian Arntzen
4f40a5a6d2
tests: Tests multiple local root signatures.
...
Runtime behavior here is extremely weird and contradicts spec wording in
many ways:
- Default local root signatures can override explicit ones.
- Runtime silently fails if the associated subobject is not part of the
PSO array.
- Order of default local root signatures doesn't appear to matter at
all.
All in all, very confusing, and there is zero help from validation
layer, so we'll have to deduce this from whatever applications want.
Hopefully they are somewhat sane, and don't try to rely on very awkward
matching rules.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-11 13:57:55 +01:00
Hans-Kristian Arntzen
369f48e499
tests: Add test for RTAS update.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-10 11:46:22 +01:00
Hans-Kristian Arntzen
56e7cbec80
test: Test CBV table hoisting.
...
Adds some spicy edge cases with array size of 1 w/ nonuniform access, etc.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-10 11:46:05 +01:00
Hans-Kristian Arntzen
38bb845800
tests: Refactor raytracing test to be a bit more extensible.
...
Fixes a lot of the worst hardcoding, test different IBO / VBO formats.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-04 16:30:29 +01:00
Hans-Kristian Arntzen
f2c5a6561c
tests: Test RTAS clone and compact.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-03-04 16:30:29 +01:00
Joshua Ashton
64a6bae1a0
vkd3d: Remove vkd3d_application_info structure
...
This thing has no right to exist.
We don't get this information in D3D12 and it's getting in the way of me refactoring config flags.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-03-02 11:09:29 +01:00
Hans-Kristian Arntzen
91fad86e4d
tests: Test that root parameters are correctly invalidated.
...
When emitting push constants for graphics, these should invalidate push
constants for compute and vice versa. In Vulkan, vkCmdPushConstants is
not tied to a bind point.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-26 17:06:18 +01:00
Joshua Ashton
29b410928b
tests: Add a suite of tests for SetName
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-25 21:51:43 +01:00
Hans-Kristian Arntzen
96b44fddbc
tests: Remove some todo/is_bug()s for RADV.
...
Some tests are now passing.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-25 18:28:06 +01:00
Hans-Kristian Arntzen
d88ce7cdea
tests: Test post-build info output.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-25 16:14:16 +01:00
Hans-Kristian Arntzen
d6d8e70955
tests: Add image placement alignment test.
...
Validates that we can create RTVs at 64k alignment without issues.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-19 13:19:51 +01:00
Hans-Kristian Arntzen
e228367e98
tests: Allow SetPipelineStackSize to propagate properly.
...
AMD and NV driver behaviors don't agree here, choose NV behavior as it
makes more sense.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-18 14:16:31 +01:00
Hans-Kristian Arntzen
3a48b97dd1
tests: Clean up some manual WCHAR strings.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-18 14:16:31 +01:00
Hans-Kristian Arntzen
20c4dfc685
tests: Add multithreaded suballocation test.
...
Also stresses VA mapping.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-18 14:16:31 +01:00
Hans-Kristian Arntzen
da06323b87
tests: Add test which stresses suballocation implementation.
...
Designed to stress internal implementation details for memory rewrite.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-16 14:27:06 +01:00
Hans-Kristian Arntzen
dc1b4b56ed
tests: Fix build with vkd3d-utils Windows test suite.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-16 14:27:06 +01:00
Joshua Ashton
a0f9891b11
tests: Fix -Wincompatible-pointer-types warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
b168a9278b
tests: Fix missing hresult check in RTV descriptor copy test
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
485399ff81
tests: Fix -Wenum-conversion warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
3bd5ba0681
tests: Fix -Wunused-variable warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
2e1a5e75ac
tests: Fix -Wabsolute-value warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
b91568b717
tests: Fix -Wdeclaration-after-statement warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
b6444b4728
tests: Fix -Wunused-function warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
9b2841b50f
tests: Fix -Wsign-compare warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
f32a2d5c70
tests: Fix -Wmissing-brace warnings
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-15 17:54:54 +01:00
Joshua Ashton
7bb8346553
tests: Add test for Variable Rate Shading TIER_1
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-12 13:39:05 +01:00
Joshua Ashton
fccbd3b5e2
vkd3d: Eliminate wchar_size, use UTF-16 string literals
...
Achieves this with C standard stuff alone, and no compiler hacks.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-02-09 11:26:28 +01:00
Hans-Kristian Arntzen
6e9bd28481
tests: Test more raytracing PSO details.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-05 10:05:07 +01:00
Hans-Kristian Arntzen
b41d01d580
tests: Verify refcount semantics for ID3D12StateObjectProperties.
...
The refcount is shared.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-05 10:05:07 +01:00
Hans-Kristian Arntzen
547867d505
tests: Make raytracing test robust against stubbed implementation.
...
Don't crash if some things are not implemented fully.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-02-05 10:05:07 +01:00
Philip Rebohle
c5958d36bc
tests: Add test to stress-test virtual query implementation.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-01-19 14:11:46 +01:00
Hans-Kristian Arntzen
6e50aaf11f
tests: Modify typed_as_untyped test to test copies.
...
Verifies that copying multiple descriptors works as expected.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-01-14 15:34:20 +01:00
Hans-Kristian Arntzen
57f2124721
tests: Remove todo on typed_as_untyped test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2021-01-14 15:34:20 +01:00
Philip Rebohle
29e3d292ae
tests: Mark sparse depth image test as TODO on RADV.
...
Currently, RADV does not support sparse depth images.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2021-01-11 14:46:07 +01:00
Hans-Kristian Arntzen
c2f1596b3e
tests: Add test for reading typed R32 buffer as untyped.
...
Invokes undefined behavior that many games rely on by accident.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-12-11 11:20:55 +01:00
Hans-Kristian Arntzen
e2185df7de
tests: Remove is_bug for MSAA clear test.
...
Fixed on Mesa master now (FMASK bug).
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-12-07 20:56:48 +01:00
Hans-Kristian Arntzen
4fa24bb4ee
tests: Remove old is_bug for conditional rendering.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-12-07 14:10:51 +01:00
Philip Rebohle
8c0958824a
tests: Remove todo from 64-bit predicate test.
...
This is supported properly now as long as the device supports
buffer_device_address.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-11-27 12:43:39 +01:00
Hans-Kristian Arntzen
c0b34fdb7b
tests: Add unaligned VBO read test.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-11-24 15:07:29 +01:00
Philip Rebohle
ced72326be
tests: Test f32tof16 behaviour with infinity and high numbers.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-11-23 15:46:55 +01:00
Philip Rebohle
35f6aa22c7
tests: Remove todo for binary occlusion query test.
...
This test passes correctly now.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-11-19 22:08:42 +01:00
Philip Rebohle
5a288b7d0f
tests: Adjust todos in some query tests.
...
Query init changes broke unissued timestamp queries, but
test_resolve_query_data_in_reordered_command_list passes.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-11-18 15:45:28 +01:00
Philip Rebohle
10e82fa7a0
tests: Add missing UAV barriers in test_cs_uav_store.
...
Fixes some random test failures.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-11-18 15:05:29 +01:00
Philip Rebohle
a1198f2af8
tésts: Add test for creating pipeline states with a null root signature.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-11-05 15:21:16 +01:00
Georg Lehmann
98f005116b
build: Replace enable_standalone_d3d12 with tristate enable_d3d12.
...
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
2020-11-04 23:38:02 +00:00
Hans-Kristian Arntzen
f37254e6b6
tests: Add test for many typed buffers.
...
Verifies that can we can spam unique typed views without problems ...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-11-04 19:05:28 +01:00
Joshua Ashton
f50c897868
build: Merge vkd3d_headers into vkd3d_common
...
Fixes MSVC build.
Closes : #343
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-11-03 09:37:24 +01:00
Philip Rebohle
624f96e820
tests: Add test for RTV descriptor copies.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-10-30 17:02:17 +01:00
Philip Rebohle
13a95bb7bc
tests: Add test for NULL RTV creation.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-10-30 17:02:17 +01:00
Hans-Kristian Arntzen
3f0d2f3362
tests: Use more precise todo_if in buffer feedback tests.
...
We should still pass typed buffer tests.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
f6fa91ae5d
tests: Remove marked bug which appears to be fixed.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
64adb271a1
tests: Fix some UNORM precision inconsistencies.
...
NV rounds down to 0.5 - epsilon where AMD rounds up. Use a stable value
for UNORM8/16 testing.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
cd416a866e
tests: Do not test so many queues.
...
AMD Windows will actually fail eventually since we're trying to create
too many queues.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
cf7ac276d6
tests: Skip calibrated timestamp test on Linux.
...
Meaningless to test and triggers errors.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
4b5b14ca4b
tests: Mark buffer feedback as TODO.
...
With SSBOs we cannot implement sparse buffer feedback.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
8c24e2c5c5
tests: Mark stencil export as TODO on DXIL.
...
Not implemented yet, but will not crash.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
dba2812998
tests: Skip bindless bufinfo tests for now on RADV.
...
Can hang system in the worst case.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
922a67f910
tests: Mark MSAA array clear test as buggy on RADV.
...
See Mesa issue #3710 .
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
10d13dd2c1
tests: Fix up some TODO is dual_source_blending test.
...
Some calls are apparently supposed to fail, and we were not cleaning up
handles correctly if the calls succeeded.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
4ed553acc4
tests: Mark patch constant test as bug on RADV.
...
Don't see anything obviously wrong with the test or implementation.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
0db76f85a4
tests: Unmark some signed atomic tests as TODO.
...
They pass on RADV.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
ddbdd81675
tests: Mark some multisample tests as TODO on RADV.
...
Likely a mismatch in sample positions?
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
00ccf0b2d3
tests: Fix test sync bug in draw_uav_only.
...
Test was missing a UAV barrier, which triggered "bug" on RADV.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Hans-Kristian Arntzen
f9679e9e8d
tests: Remove RGB9E5 from todo condition.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-30 08:16:16 +01:00
Joshua Ashton
c72fb12353
build: Only generate headers once
...
This makes headers a dependency rather than a generator target.
This also means we get proper dependency tracking of them between projects.
Supercedes: #225
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-10-29 10:02:48 +01:00
Hans-Kristian Arntzen
bbdbc40359
build: Do not install test binaries.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-28 14:39:09 +01:00
Hans-Kristian Arntzen
3772e706a6
tests: Add exhaustive OOB test for UAV writes.
...
Tests and verifies behavior for writing out-of-bounds.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-26 13:16:09 +01:00
Joshua Ashton
c3e3965797
tests: Add some simple double float tests
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-10-23 12:40:38 +02:00
Joshua Ashton
c319a95d4e
tests: Remove lingering INITIAL_STATE_TRANSITION
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-10-22 09:30:24 +02:00
Joshua Ashton
4fb3e277f1
vkd3d: Remove VKD3D_RESOURCE_PRESENT_STATE_TRANSITION
...
All this flag does is make resource creation fail.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2020-10-22 09:30:24 +02:00
Hans-Kristian Arntzen
463d398c74
tests: Don't crash in buffer_feedback test.
...
With SSBOs enabled, sparse feedback won't work.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-21 14:34:37 +02:00
Hans-Kristian Arntzen
5b115b1f89
tests: Don't return garbage in create_*_state on failure.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-21 14:34:37 +02:00
Hans-Kristian Arntzen
9a8d2a1ac5
tests: Add a test for rendering with NULL index buffer.
...
This is well-defined in D3D12 for some reason.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-16 12:27:20 +02:00
Hans-Kristian Arntzen
de3f572c8b
tests: Add test for bindless bufinfo/resinfo.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-10-16 11:43:35 +02:00
Hans-Kristian Arntzen
1b2e190877
tests: Clean up misc warnings from tests.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-09-11 15:20:52 +02:00
Hans-Kristian Arntzen
a015ab04cd
tests: Cleanup warnings in pipeline library tests.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-09-11 15:20:52 +02:00
Philip Rebohle
6ba9656b12
tests: Add tests for GetCachedBlob and pipeline libraries.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-09-08 12:31:32 +02:00
Philip Rebohle
630b70cbbd
tests: Remove todos from test_write_buffer_immediate.
...
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-08-28 17:27:05 +02:00
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