Commit Graph

696 Commits

Author SHA1 Message Date
Tony Barbour
62da8e0073 Cmake: Add files needed to build with Mir
Change-Id: I640e45db5d586a379674fb209e38075ba7f0cf29
2016-12-09 11:48:58 -07:00
Tony Barbour
f38413e531 Cmake: Move WSI compile decision to subdirectories
Change-Id: I61ac8910200a1751a23aa92fe0e7d955ee9e03e5
2016-12-09 11:48:58 -07:00
Mark Lobodzinski
e9c569b75a tests: Add CMake copy of def files to build dir
Change-Id: I39ceb220d0a3466227f0ae9c987aca5094db6d47
2016-12-08 14:52:38 -07:00
Mark Lobodzinski
e9859bb733 tests: Check in Windows def files
Change-Id: Ib2ab6332887c8232b042e3e5c1668e780f1f13f3
2016-12-08 14:52:38 -07:00
Mark Lobodzinski
c9924182fb tests: Tabs to spaces in cmakelists.txt
Change-Id: I5c128e585f1d47a3d38022b8b2944c4ee1c05a1b
2016-12-08 14:51:11 -07:00
Mark Lobodzinski
b3c5d955b0 tests: Enable new dispatch_table_helper generation
Change-Id: Ided624d0509dffd7cb1b004846449ac5c411247b
2016-12-08 14:51:11 -07:00
Mark Lobodzinski
9a05e77e15 build: Move codegen scripts into scripts dir
- Set SCRIPTS_DIR in root CMakeLists.txt
- Update android-generate.bat and android-generate.sh
- Updated layer/loader/tests CMakeLists.txt files for new path
- Updated test layer doc scripts for new location

Change-Id: I2d519ec40883ebeec4e9daab8641ad65515bb08c
2016-11-21 12:06:12 -07:00
Tony Barbour
00f921e169 demos: Enable building combinations of xcb and xlib
Change-Id: I055c12e8c93d05db747239df46611386eb8b8278
2016-11-15 13:04:56 -07:00
Lenny Komow
ca76234922 build: Allow the use of a custom-named vulkan dll
Change-Id: Ibeae30386ca2a91717d6b4c3039ada884003a1a4
2016-11-08 09:07:28 -07:00
Mark Lobodzinski
59f41efd65 scripts: Build single dispatch table helper
Modified layers and tests/layers to use 'AllPlatforms' param
instead of displayserver.

Change-Id: I39d53e3991aab4f01854b227e1f6eb030850473d
2016-11-01 08:46:07 -06:00
Mike Stroyan
981318f232 tests: Get run_wrap_objects_tests.sh working.
Fail from run_loader_tests.sh if run_wrap_objects_tests.sh fails.

Don't run tests in parallel to avoid hangs on some devices.

Filter out new "Unexpected:" lines from vk_layer_validation_tests.
Those lines include varying details that never pass a diff.
2016-10-12 13:48:42 -06:00
Cody Northrop
381fdf099d tests: Remove document validation test
This test requires files outside of the build directory, which
doesn't work when distributing build results.  It will soon be
superseded by a new test for valid enums.  It is still covered
by Linux run_all_tests.sh
2016-10-11 21:56:16 -06:00
Mike Stroyan
e20837d60b Revert "build: Restore default symbol visibility to layers/tests"
This reverts commit dd96dd21b438d48aa78e9de60ad0c550c856cf29.
2016-10-03 16:35:05 -06:00
Karl Schultz
30ca53a076 build: gh52-CMake changes to enable make install on Linux
See BUILD.md for details.

Change-Id: Ide1f635a57b57af384d9d1baac20c2256629f812
2016-10-03 08:35:01 -06:00
Karl Schultz
5fd05fa704 build: gh27 Allow builds in paths with spaces
Add quotes around shell var expansions in the update_external_sources scripts.

For Windows, remove the cmake directives to add a linker option for the DEF
files.  These were redundant with the DEF files getting added via the
cmake add_library() directive.  They were also causing difficult-to-fix
problems with paths that have spaces in them.

Change-Id: I741bac31bbf27deae59031b6aa916c6ab48383a6
2016-09-28 18:12:19 -06:00
Robert Bragg
b573d3ae19 build: include tests/layers build dir for vk_dispatch_table_helper.h
Signed-off-by: Robert Bragg <robert.bragg@intel.com>
2016-09-27 21:35:56 +01:00
Mike Stroyan
f0e3a2f039 build: Fix parallel build of layers tests
Make json copy targets depend on layer targets to first create destination directory.
Make header generation go through a custom target.
2016-09-26 12:58:43 -06:00
Norbert Nopper
2233bb009b Fix, that display only build under Linux works 2016-09-12 11:55:47 -06:00
Mark Lobodzinski
b67054c27d tests: Clang-format loader_validation_tests.cpp
Change-Id: If4f446cc8499bf0c894735923b7661c8e3aa0ae2
2016-09-08 10:44:56 -06:00
Mark Lobodzinski
30b6bc412e tests: Clang-format test_common.h
Change-Id: I9ed4992a3f4cc8215de805d1f984ac9b5300a974
2016-09-08 10:44:56 -06:00
Mark Lobodzinski
26ba91a308 tests: Add clang-format config file
Change-Id: I265cffaf708244d5b268018aa47fc869facce6fd
2016-09-08 10:44:56 -06:00
Karl Schultz
c9131946dd build: Restore default symbol visibility to layers/tests
Layer tests broke with a previous commit to fix CXX
flags inheritance.  This commit repairs the problem.

Change-Id: Id54cfb737f32b6f11a4146225cc22e0b155ba2ba
2016-09-02 11:13:16 -06:00
Karl Schultz
eff15fc378 build: gh672 Fix CMake CXX_FLAGS inheritance
Some sub-projects were overwriting CMAKE_CXX_FLAGS instead of
inheriting from the parent.  This keeps any user settings outside
or above the top CMakeLists.txt file from reaching these sub-projects.

These fixes include preserving the inheritance, adding extra flags
to turn off warnings (mostly in autogen code) because the top
level turns on Wall, and trivial code fixes to avoid the need to
add a setting to turn off a warning for those trivial fixes.

These changes should have no impact on Windows.

Change-Id: I0c3c175cb5058f26a259ee3f4fde9fdaf3e6b00d
2016-09-02 10:17:05 -06:00
Jeremy Hayes
168edf4c17 tests: remove bad tests
These were not supposed to be included in my last commit.

Change-Id: I5b6d6c415c80273dbda824479a71190cbdf4d507
2016-08-19 09:59:57 -06:00
Jeremy Hayes
49d00c651f tests: add implicit layer tests
Change-Id: I84e70b2eaafc59fa8d2c3642c87f3b908532445a
2016-08-18 16:07:12 -06:00
Jeremy Hayes
151e72ebb1 tests: test loader enumeration
Change-Id: I6c469e7f863f48fc2655de835c0b54eb928ee653
2016-07-27 10:10:09 -06:00
Mark Young
38bdf75ef1 layers : gh682 move gipa dispatch table init
Move the GIPA setup of the dispatch tables for layers into
the layer_init_device_dispatch_table call since we're already
doing a majority of it there.  This removes the need to separately
setup the WSI extension entry-points.

Additionally, memset the table to 0, just to make sure anything
that gets added in the future is obvoiusly not set.

Change-Id: I63c7c107cd9f7957e2766fdbeb8a06bc1ae0eda6
2016-07-21 13:24:20 -06:00
Mark Lobodzinski
bebf064ad4 tests: Remove device_limits layer
Change-Id: I482e3fa6b959983d427caef4de7d703b6f7003c2
2016-07-06 09:51:11 -06:00
Jeremy Hayes
cb64ed140f tests: test loader insertion via create-instance
Change-Id: Ifb3a2aa8bfcd7619bdeca54ac8237b267daf7f27
2016-06-30 13:54:48 -06:00
Jeremy Hayes
dfd51c688b tests: test layer insertion
Change-Id: I315a7312514fba817906facf42597c858e2fecd9
2016-06-29 13:01:48 -06:00
Dustin Graves
4893af6f83 tests: Fix Wayland/Mir build
Fix undefined variable issue in the Wayland/Mir
presentation support query functions where 'inst'
needs to be 'phys_dev->inst'

Change-Id: I8fe874acdd66e9a650029ad4f239596f5ae76df7
2016-06-28 17:06:00 -06:00
Rene Lindsay
adf93aa2d0 tests: Ensure deprecated device layers are ignored.
LX535 / MI-76
For backwards compatibility, a device-layer list may still be passed to vkCreateDevice, but must be ignored, and not trigger any errors.
Change-Id: I00000000000000decaf15bad0000000000000076
2016-06-28 10:48:03 -06:00
Jeremy Hayes
4aa4bfbf4e tests: enable sign compare
Change-Id: Ib316109ef38617df9ce7bcc2851354cdf14e192a
2016-06-21 13:33:04 -06:00
Jeremy Hayes
2bf75db226 tests: fix sign comparison warning
Change-Id: Ic87376dc1211c3f9a074353c49bbce24886915ec
2016-06-21 13:32:56 -06:00
Jeremy Hayes
4ce7689f63 tests: test layer and ext not present
Change-Id: Ibf6314a5362423af47e655afc34df0da011b7483
2016-06-20 18:58:08 -06:00
Karl Schultz
7014a81a78 tests: remove unreferenced variables. 2016-06-15 10:37:06 -06:00
Mark Young
f1d3f0d401 tests: Fix type mismatch in wrap_objects
Change-Id: I4544293ae03565f345650a2dd41c8e36b5ab8205
2016-06-14 11:48:50 -06:00
Mark Mueller
76e15d7ff5 layers: Fix CMakeLists.txt for non-MSVC Win builds
Fix a recent change broke windows builds that don't use the VC IDE or
decorate build trees like VC does

Change-Id: I93c8a559c4255408a6fa890b2a3e4d81822d1cea
2016-06-14 08:17:40 -06:00
Jeremy Hayes
8ca7a8b0b4 tests: remove unused flags
Change-Id: I41ffcd1b89d7e18eb4bab3a1cdfb5e92dff017cb
2016-06-13 17:30:42 -06:00
Jon Ashburn
d445a66c39 tests: add dispatchable object wrapping layer
Change-Id: I181fd9b4363d98d4da63017b8bdce68e86e8aefc
2016-06-13 14:25:52 -06:00
Mark Lobodzinski
9dc6de4eb9 tests: Fix line-endings in powershell scripts
Change-Id: Ibf90d79a93cc0689e647942271d86faade0bb1ca
2016-06-09 13:55:12 -06:00
Cody Northrop
0c914c7766 windows: Allow run_all_tests.ps1 to skip tests
Use -TestExceptions to filter out tests with known problems.
Test list should follow a space, separated by a colon, i.e.

powershell -command .\run_all_tests.ps1 -TestExceptions ^
VkLayerTest.RequiredParameter:^
VkLayerTest.UnrecognizedValue
2016-06-03 11:41:26 -06:00
Cody Northrop
208cc78394 windows: Enable vk_loader_validation_tests
Tested and passed on Windows Skylake
2016-06-03 11:41:26 -06:00
Cody Northrop
2429641367 windows: Return exit status from test script 2016-06-03 11:41:26 -06:00
Ian Elliott
d79d353b94 tests: PR512 Start testing enabled WSI extensions (just XCB/Linux now).
The new VkWsiEnabledLayerTest.TestEnabledWsi test is a start at testing many of
the errors in the swapchain layer, when the WSI extensions are enabled.  More
work is needed, with code comments stating some of the obvious work that's
needed.  In addition, the only platform currently supported is Linux/XCB.
2016-05-13 12:44:16 -06:00
Dustin Graves
8e6216bfcc cmake: Fix Windows test script copy
- CMake was configured to copy _run_all_tests.ps1 to
  _vkvalidatelayerdoc.ps1, resulting in _run_all_tests.ps1
  effectively calling itself in an infinte loop.
- Drop the _ prefix from the _run_all_tests.ps1 and
  _vkvalidatelayerdoc.ps1 when copying to build.

Change-Id: I4c682bebe786ef0f2f66ce2eeb9e8174eea83e6f
2016-05-06 14:19:18 -06:00
Jon Ashburn
ecb524fff3 tests: Add loader test to the run_all_test on Linux
Change-Id: Ifb85c25af3be6985ff286ee05d43de76a4e510bc
2016-04-28 17:21:08 -06:00
Tobin Ehlis
e98874fd17 android: Move vulkan_wrapper to common (from Cody) 2016-04-28 14:01:42 -06:00
Cody Northrop
77f1c6e0ca android: Add support for C linkage in vulkan_wrapper 2016-04-28 14:01:42 -06:00
Jeremy Hayes
c087cc4cc4 loader: fix LX475
Silently ignore VK_NULL_HANDLE in DestroyInstance/Device.

Change-Id: I96305088db75932b6f3f824852db9c72b8352120
2016-04-21 15:26:36 -06:00