Commit Graph

874 Commits

Author SHA1 Message Date
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
Philip Rebohle e7711d2926 tests: Add test for sampler border colors.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-05-05 11:39:25 +02:00
Philip Rebohle d742918353 tests: Fix compiler warning.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Philip Rebohle 642538e0a9 tests: Add test for UpdateTileMappings and CopyTileMappings.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Philip Rebohle 367895ebfa tests: Add test for GetResourceTiling.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Philip Rebohle c564d3eb1d tests: Expand test_create_reserved_resource.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-30 18:08:25 +02:00
Hans-Kristian Arntzen e5267713ef tests: Add basic DXR bringup test.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-04-22 18:03:05 +02:00
Hans-Kristian Arntzen 02fb0d2974 vkd3d: Functions take void as argument type in C.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-04-22 16:26:59 +02:00
Hans-Kristian Arntzen 4d602d1958 vkd3d: Fix compilation warnings in d3d12-test.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-04-17 17:03:40 +02:00
Philip Rebohle cc4762935f tests: Test GetResourceAllocationInfo1.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-14 16:27:08 +02:00
Philip Rebohle ecc46fe1ec tests: Add test for exporting SV_StencilRef from PS.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-06 11:53:09 +02:00
Philip Rebohle 0873f15f2e tests: Add test for exporting SV_RenderTargetArrayIndex from VS.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-06 11:53:09 +02:00
Philip Rebohle b6b4f7e8d5 tests: Add test for ID3D11Device2::CreatePipelineState.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2020-04-01 10:35:40 +02:00
Hans-Kristian Arntzen 3b9f1f8a9c vkd3d: Use monotonically increasing fence values in test suite.
Microsoft documentation says that fences are monotonically increasing
values.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-31 12:51:05 +02:00
Hans-Kristian Arntzen 1030989973 vkd3d: Fix integer cast warning in d3d12.c.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-26 12:17:55 +01:00
Hans-Kristian Arntzen 89cefd87d5 vkd3d: Add test for bindless UAV counters.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-25 14:42:32 +01:00
Hans-Kristian Arntzen 2d83388313 vkd3d: Add test for bindless UAV.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-25 14:42:32 +01:00
Hans-Kristian Arntzen e21d077a04 vkd3d: Workaround CBV bindless test.
DXC is bugged and does not emit the NonUniformResourceIndex qualifier
in DXIL, and thus we expect this test to fail on AMD (it works just fine
on NV though). Only check the first lane of the workgroup for
correctness.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-18 10:58:17 +01:00
Hans-Kristian Arntzen a6b61fbc1d vkd3d: Add bindless CBV test for DXIL.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 12:01:23 +01:00
Hans-Kristian Arntzen 8fff9c3028 vkd3d: Add bindless samplers test for DXIL.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 12:01:23 +01:00
Hans-Kristian Arntzen 9ebb14727d vkd3d: Add bindless SRV test for DXIL.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 12:01:23 +01:00
Hans-Kristian Arntzen 912840351f vkd3d: Add test for bindless CBV.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-12 11:11:25 +01:00
Hans-Kristian Arntzen fee9b2bb05 vkd3d: Implement RS 1.0 volatile for packed descriptor set.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-11 12:20:00 +01:00
Hans-Kristian Arntzen ae2a2bdbe8 vkd3d: Fix DXIL check in test_coverage.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-03-06 17:15:38 +01:00
Hans-Kristian Arntzen b04c2361e2 vkd3d: Add test for bindless samplers.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:33 +01:00
Hans-Kristian Arntzen 687b072b16 vkd3d: Upgrade SRV bindless test to include textures.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:33 +01:00
Hans-Kristian Arntzen 7c10922aac vkd3d: Add bindless test where root parameter space is exhausted.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:33 +01:00
Hans-Kristian Arntzen abb2ef8572 vkd3d: Add test for bindless SRV buffers in SM 5.1.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:33 +01:00
Hans-Kristian Arntzen fe1d958802 vkd3d: Add static sampler to SM 5.1 register space test.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 20:50:05 +01:00
Hans-Kristian Arntzen fd33aee854 vkd3d: Don't crash if SM 6.0 is not supported in constant buffer test.
Something must have gone wrong in rebase.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 13:00:48 +01:00
Hans-Kristian Arntzen d638a60776 vkd3d: Add DXIL test for vertex ID.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen c534737a3f vkd3d: Add DXIL test for instance_id.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 2ef0e43dce vkd3d: Add DXIL test for eval attribute.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 827adfc5c5 vkd3d: Add DXIL test for combined ClipCull.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen aae5564f4d vkd3d: Add DXIL test for clip distance.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 965a82c22d vkd3d: Add DXIL test for rasterizer sample count.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen cf3d3bb60b vkd3d: Add DXIL test for shader_sample_position.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen d208bc7417 vkd3d: Add DXIL test for coverage.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen a898760946 vkd3d: Add DXIL test for sample mask.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 8f413b3656 vkd3d: Add DXIL test for render_target_a8.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 7ce68df015 vkd3d: Add DXIL test for face culling.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 39eb4f7270 vkd3d: Add DXIL test for dual source blending.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 7758997e30 vkd3d: Add DXIL test for constant buffers (root const/desc).
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen f003b6a84b vkd3d: Add DXIL test for register spaces.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen a43acfce16 vkd3d: Add DXIL test for bufinfo.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 4b6b7cb831 vkd3d: Add DXIL test for stream output.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 1adf73abcf vkd3d: Add DXIL test for line tessellation.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 1496ea85f2 vkd3d: Add DXIL test for tess fork phase.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 71f432e000 vkd3d: Add DXIL test for tess control point phase.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 562e990c38 vkd3d: Add DXIL test for quad_tessellation.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 38e9422f35 vkd3d: Add DXIL test for ps_layer.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 1ff7940739 vkd3d: Add DXIL test for layered rendering.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 727215958a vkd3d: Add DXIL test for geometry shader.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-26 10:19:46 +01:00
Hans-Kristian Arntzen 0d5ccda21c vkd3d: Add create_pipeline_state_dxil test utility.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-25 13:54:40 +01:00
Hans-Kristian Arntzen 8b7b37bb71 vkd3d: Add helper test function to set up a default pipeline with DXIL.
In a pipeline, it is not possible to mix and match DXIL and DXBC.
D3D12 debug layer will complain, although vkd3d does not care about
this.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-25 13:54:40 +01:00
Hans-Kristian Arntzen a7ac017bdd vkd3d: Add test helper function to determine if DXIL is supported.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-25 13:54:40 +01:00
Hans-Kristian Arntzen 7a341a4fc3 vkd3d: Add test case for root constants in SM 5.1.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-24 12:32:29 +01:00
Hans-Kristian Arntzen 70006b7129 vkd3d: Add test case for SM 5.1 register spaces.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-24 12:32:29 +01:00
Hans-Kristian Arntzen 96925f8a70 vkd3d: Load d3d12 dynamically in d3d12 tests.
MinGW does not ship d3d12 properly, so link against d3d12.dll
dynamically instead.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-24 11:53:29 +01:00
Hans-Kristian Arntzen 00eec801de vkd3d: Load Vulkan dynamically in d3d12 test app.
On Windows, it is not ideal to rely on Vulkan being available as a
linkable library as a full install of the Vulkan SDK must be present and
set up, be friendly and load Vulkan dynamically instead.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-24 11:53:29 +01:00
Hans-Kristian Arntzen 369f6790d7 vkd3d: Support using vkd3d-utils path when testing on Windows.
When testing vkd3d on Windows, we were only able to use the native D3D12
path. Add an ifdef to configure this.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-24 11:53:29 +01:00
Hans-Kristian Arntzen 968131ca4d vkd3d: Fix MSVC build for UAV clear tests.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-24 11:53:29 +01:00
Hans-Kristian Arntzen 3d20375953 vkd3d: The line tessellation test now works again.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-12 14:15:55 +01:00
Hans-Kristian Arntzen 796c6843df vkd3d: Add test for reading packed tesslevel in DS.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-12 14:15:55 +01:00
Hans-Kristian Arntzen 66e92ded64 vkd3d: Make a basic repro case for vertex input in patch constant phase.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
2020-02-12 14:15:55 +01:00
Conor McCarthy 91555883ac vkd3d: Add stub for ID3D12GraphicsCommandList2::WriteBufferImmediate().
ID3D12GraphicsCommandList2 and WriteBufferImmediate() are used by
Hitman 2, but implementing the function on top of an AMD extension has
no effect on game behaviour. It's commonly used to write debug info.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-06 20:11:15 +01:00
Conor McCarthy 0d43c776c5 vkd3d/tests: Add tests for ID3D12GraphicsCommandList2::WriteBufferImmediate().
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-06 20:11:13 +01:00
Conor McCarthy a303482acc vkd3d/tests: Add and modify tests for GetResourceAllocationInfo().
Test large DepthOrArraySize for small resources, and test compressed
textures at the 64KB limit.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-27 22:08:39 +01:00
Conor McCarthy 23c4dc26e2 vkd3d/tests: Add tests for block-compressed texture dimensions.
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-27 22:08:35 +01:00
Conor McCarthy e783784cac vkd3d: Return valid node masks in external resource heap properties.
Hitman 2 calls GetHeapProperties() for each swapchain buffer and checks if
the creation node mask is 1. If not then it fails to store the resource
pointers for later rendering.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 16:07:11 +01:00
Conor McCarthy 5366d405e9 vkd3d: Add tests for external resource heap properties.
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 16:07:09 +01:00