platform/upstream/Vulkan-Tools.git
2 years agobump to 1.2.179 59/259359/2 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.223648 accepted/tizen/unified/20210609.140543 submit/tizen/20210604.110910 submit/tizen/20210607.072910 submit/tizen_6.5/20211028.163301 tizen_6.5.m2_release
SooChan Lim [Sun, 6 Jun 2021 23:08:37 +0000 (08:08 +0900)]
bump to 1.2.179

Change-Id: I6c381678675343b7980d7bd27ae406220afea829
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
2 years agoscripts: change time to time_process
SooChan Lim [Tue, 12 Jan 2021 01:18:58 +0000 (10:18 +0900)]
scripts: change time to time_process

It fixes build break due to python upgrade.

Change-Id: I0f354983142e33eb908a23f7f6eb232d63cab040

2 years agoadd the spec file
SooChan Lim [Fri, 30 Nov 2018 05:27:50 +0000 (14:27 +0900)]
add the spec file

2 years agobuild: Update to header 1.2.179 upstream/1.2.179
Mike Schuchardt [Mon, 24 May 2021 15:39:00 +0000 (09:39 -0600)]
build: Update to header 1.2.179

- Update known-good
- Generate source

Change-Id: Ib8666fe063852297f746dbea1b8b34346000b13d

2 years agovulkaninfo: Update License and Refactor AppGpu
Charles Giessen [Tue, 18 May 2021 20:47:20 +0000 (14:47 -0600)]
vulkaninfo: Update License and Refactor AppGpu

* Simplify AppQueuefamilyProperties
* Create and store AppQueueFamilyProperties in AppGpu instead of creating them
on the fly
* Make all uses of 2 struct's use the original struct where appropriate
  * This means the printers will use props.limits instead of props2.limits
* Remove unused functions
* Remove unused variables
* Add sparseBinding to enabled features (previously there were none)
* make_vulkan_version function introduced

Change-Id: I872dd060dbf709b5b39610775fb88718ff8b19a5

2 years agovulkaninfo: Remove redundant platform guards
Charles Giessen [Tue, 18 May 2021 19:22:18 +0000 (13:22 -0600)]
vulkaninfo: Remove redundant platform guards

Change-Id: Id53c7c1cbee21f7113a8e82f64711915119d1d54

2 years agovulkaninfo: Tidy up code
Charles Giessen [Tue, 18 May 2021 19:18:39 +0000 (13:18 -0600)]
vulkaninfo: Tidy up code

* Initialize many variables
* Add const where appropriate
* Use any_of instead of a raw for loop

Change-Id: I7d0c1ff8c1798d7ff589b4d6a641dba32966a5e8

2 years agovulkaninfo: use trivial_optional type instead of pair
Charles Giessen [Tue, 18 May 2021 19:17:09 +0000 (13:17 -0600)]
vulkaninfo: use trivial_optional type instead of pair

Replace the ad-hoc pair with a bool and a type with a proper class that
makes the interface clear. The `util::trivial_optional<T>`
type requires T to be trivially copyable and constructable, but otherwise
follows the conventions of C++17's <optional>.

Change-Id: I5b3b981be0af2ecd4b05380a5d030b9ecc0be1d0

2 years agovulkaninfo: Add check for printing memory budget
Jeremy Kniager [Mon, 17 May 2021 20:57:47 +0000 (14:57 -0600)]
vulkaninfo: Add check for printing memory budget

Added check for the `VK_EXT_memory_budget` before printing memory usage
and memory budget under VkPhysicalDeviceMemoryProperties.

Change-Id: I98bd22ede919087700950e67a206303026540d3a

2 years agoicd:Consider DS when setting format bits
Tobin Ehlis [Fri, 25 Sep 2020 22:03:40 +0000 (16:03 -0600)]
icd:Consider DS when setting format bits

When setting device format properties, don't set color attachment-
related bits for DS formats and don't set DS attachment bit for
color formats.

Fixes #445

2 years agobuild: Update to header 1.2.178
Mike Schuchardt [Tue, 11 May 2021 18:47:39 +0000 (11:47 -0700)]
build: Update to header 1.2.178

- Update known-good
- Generate source

Change-Id: Iecb34b6221526dc5c6153c736fce894488989066

2 years agovulkaninfo: Add pipelineUUID printing to text,html
Charles Giessen [Tue, 11 May 2021 17:14:18 +0000 (11:14 -0600)]
vulkaninfo: Add pipelineUUID printing to text,html

Change-Id: Ia9b1679188505a765c33b14aab46749f823f4a23

2 years agoUpdate known_good.json
Richard S. Wright Jr [Tue, 11 May 2021 15:59:31 +0000 (11:59 -0400)]
Update known_good.json

Updated to the latest MoltenVK tag.

2 years agovulkaninfo: Fix signed conversion warning in MSVC
Charles Giessen [Tue, 11 May 2021 16:33:01 +0000 (10:33 -0600)]
vulkaninfo: Fix signed conversion warning in MSVC

Change-Id: I0ff94c9c09707fd6a49cefa62e32e719e207b721

3 years agobuild: Update to header 1.2.177
Mike Schuchardt [Wed, 28 Apr 2021 16:28:42 +0000 (09:28 -0700)]
build: Update to header 1.2.177

- Update known-good
- Generate source

Change-Id: I8f49422f152ad353658cb753f24564b76591d415

3 years agoscripts: Switch from mkpath to makedirs
Mike Schuchardt [Wed, 28 Apr 2021 19:10:06 +0000 (12:10 -0700)]
scripts: Switch from mkpath to makedirs

distutils.dir_util.mkpath will not re-create a directory if it has been
removed with shutil.rmtree because it caches the filesystem under the
hood. This was causing the clone retry to fail on the second iteration
every time.

Switch to using os.makedirs for equivalent functionality without the
cache.

3 years agobuild: Update to header 1.2.176
Mike Schuchardt [Mon, 19 Apr 2021 15:30:33 +0000 (08:30 -0700)]
build: Update to header 1.2.176

- Update known-good
- Generate source
- Fix scripts/generate_vulkan_wrapper.py
  - Handle new version macros in vulkan_core.h
  - Recognize beta/provisional platform guard
  - Skip extensions without commands

Change-Id: Ie1518aaa6fbf6ca996023fbd82f299a48759215e

3 years agodocs: Update README to point to GitHub Actions
Jeremy Kniager [Wed, 31 Mar 2021 18:06:32 +0000 (12:06 -0600)]
docs: Update README to point to GitHub Actions

Change-Id: I143c725923e9a321df22df97510b54e8f3c05cb2

3 years agorepo: Switch to github actions for CI
Jeremy Kniager [Wed, 31 Mar 2021 14:17:37 +0000 (08:17 -0600)]
repo: Switch to github actions for CI

Change-Id: If0b16b533b03b47b5c5a415d28f0b08a71a48f0b

3 years agobuild: Update to header 1.2.174
Mike Schuchardt [Mon, 29 Mar 2021 20:09:32 +0000 (13:09 -0700)]
build: Update to header 1.2.174

- Update known-good
- Generate source (no changes)

Change-Id: Idb543c5c0b078db219c6cf60dc03f4d46460e808

3 years agobuild: Update known-good files for 1.2.173 header
Mike Schuchardt [Tue, 23 Mar 2021 23:46:37 +0000 (16:46 -0700)]
build: Update known-good files for 1.2.173 header

- Update known-good files
- Generate source code

Change-Id: I70583ff146c19cd275c6271e4f4f3ce1b93b4d0d

3 years agocube: Select phy device for DISPLAY
Tony-LunarG [Thu, 11 Mar 2021 23:28:19 +0000 (16:28 -0700)]
cube: Select phy device for DISPLAY

Change-Id: I3075c06220d9b02a3eb9b2e6846a13b9ceea1abe

3 years agobuild: Update known-good files for 1.2.172 header
Mike Schuchardt [Wed, 10 Mar 2021 17:05:29 +0000 (09:05 -0800)]
build: Update known-good files for 1.2.172 header

Changes:
- Update `known_good.json`

Change-Id: I080c0ff260ed5c43ca0228b7d88bf4232628360c

3 years agobuild: Update known-good files for 1.2.171 header
Shannon McPherson [Tue, 2 Mar 2021 22:45:13 +0000 (15:45 -0700)]
build: Update known-good files for 1.2.171 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: Id1d05f65733d366d729b7f9016a3613e7a795ec9

3 years agoscripts: Update copyright in `common_codegen.py`
Shannon McPherson [Tue, 2 Mar 2021 22:46:47 +0000 (15:46 -0700)]
scripts: Update copyright in `common_codegen.py`

Change-Id: I485d3f9a893cb9f869d11fb487f986c42db9b88d

3 years agobuild: Update known-good files for 1.2.170 header
Mike Schuchardt [Tue, 16 Feb 2021 17:20:12 +0000 (09:20 -0800)]
build: Update known-good files for 1.2.170 header

- Update `known_good.json`
- Generate new source files

3 years agobuild: Update known-good files for 1.2.169 header
Shannon McPherson [Tue, 9 Feb 2021 17:19:34 +0000 (10:19 -0700)]
build: Update known-good files for 1.2.169 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I5eaeea833fb6f3921c64308edeee6e33440eebea

3 years agovkcube: Fix compiler warning
Tony-LunarG [Fri, 22 Jan 2021 22:35:02 +0000 (15:35 -0700)]
vkcube: Fix compiler warning

Change-Id: Ib7f338d1aac2212d9b3278c2c58c9742d97aae79

3 years agovkcube: Add options --width and --height to specify width and height
Nicolas Caramelli [Fri, 8 Jan 2021 16:46:07 +0000 (17:46 +0100)]
vkcube: Add options --width and --height to specify width and height

Change-Id: Ie2533ad22e4bf9672f749138baddc0313169d09b

3 years agovulkaninfo: Fix spelling in FindPhysicalDevices
Charles Giessen [Fri, 15 Jan 2021 17:05:14 +0000 (10:05 -0700)]
vulkaninfo: Fix spelling in FindPhysicalDevices

Change-Id: I0ab7bf0e4bc9a532aee55925e95c11aea936845e

3 years agobuild: Update known-good files for 1.2.166 header
Shannon McPherson [Tue, 12 Jan 2021 22:39:31 +0000 (15:39 -0700)]
build: Update known-good files for 1.2.166 header

Changes:
- Updated `known_good.json`

Change-Id: Id323bc01fcd97672ef31c73021e683d56a5f2cd5

3 years agovkcube: Improve GPU auto-selection
Witold Baryluk [Thu, 7 Jan 2021 19:03:02 +0000 (19:03 +0000)]
vkcube: Improve GPU auto-selection

Instead of selecting GPU 0, prefer dGPU, iGPU, vGPU, CPU, OTHER.
In that order.

If user selects specific gpu_number (including 0), use only
that and don't fallback to anything else, even when incorrect.

3 years agoDocument Vulkan Info for iOS
Richard S. Wright Jr [Mon, 11 Jan 2021 22:49:19 +0000 (17:49 -0500)]
Document Vulkan Info for iOS

3 years agovkcube: portabilty extension as text so it builds on all platforms
Richard S. Wright Jr [Wed, 6 Jan 2021 21:02:12 +0000 (16:02 -0500)]
vkcube: portabilty extension as text so it builds on all platforms

3 years agoDefined VK_ENABLE_BETA_EXTENSIONS so that VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME...
Richard S. Wright Jr [Wed, 6 Jan 2021 20:12:19 +0000 (15:12 -0500)]
Defined VK_ENABLE_BETA_EXTENSIONS so that VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME would be defined

3 years agovkcube: Updated to support portability extension properly
Richard S. Wright Jr [Wed, 6 Jan 2021 18:03:18 +0000 (13:03 -0500)]
vkcube: Updated to support portability extension properly

3 years agobuild: Update known-good files for 1.2.165 header
Shannon McPherson [Tue, 22 Dec 2020 23:27:35 +0000 (16:27 -0700)]
build: Update known-good files for 1.2.165 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I83402ae9bf0495e1105d124feedfa2ced92a9647

3 years agoVulkaninfo for iOS devices
richard-lunarg [Tue, 22 Dec 2020 21:50:21 +0000 (16:50 -0500)]
Vulkaninfo for iOS devices

3 years agoMake getTimeInNanoseconds get time in nanoseconds
Joe Hermaszewski [Sat, 5 Dec 2020 07:01:11 +0000 (15:01 +0800)]
Make getTimeInNanoseconds get time in nanoseconds

Previously it was returning the time in microseconds.

This also fixes the use of VK_GOOGLE_display_timing which requires a
time in nanoseconds.

3 years agovulkaninfo: Fix win32 fullscreen pnext chain
Charles Giessen [Wed, 9 Dec 2020 22:14:22 +0000 (15:14 -0700)]
vulkaninfo: Fix win32 fullscreen pnext chain

vulkaninfo was triggering
VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-02671 by not adding a
VkSurfaceFullScreenExclusiveWin32InfoEXT in the pNext chain of
VkSurfaceCapabilitiesFullScreenExclusiveEXT. This commit fixes it by adding
the struct and filling in HMONITOR with the 'current monitor' as gotten by
MonitorFromWindow with a default of using the primary monitor.

Change-Id: I025f66ef8e2d47ebb29ccd7361d3d162c644de09

3 years agobuild: Update known-good files for 1.2.162 header
Shannon McPherson [Mon, 23 Nov 2020 15:48:45 +0000 (08:48 -0700)]
build: Update known-good files for 1.2.162 header

Changes:
- Updated `known_good.json`
- Generated new source files
- Updated `generate_vulkan_wrapper.py` and generated new
  `vulkan_wrapper.cpp` and `vulkan_wrapper.h`

Change-Id: Idbce5923b21947d2121ed66159c7bd96ae7d0c8a

3 years agovulkaninfo: clang-format cleanup
richard-lunarg [Mon, 23 Nov 2020 18:17:24 +0000 (13:17 -0500)]
vulkaninfo: clang-format cleanup

3 years agovulkaninfo: clang-format cleanup
richard-lunarg [Mon, 23 Nov 2020 17:18:47 +0000 (12:18 -0500)]
vulkaninfo: clang-format cleanup

3 years agovulkaninfo: cleanup and comments
Richard S. Wright Jr [Fri, 20 Nov 2020 02:38:50 +0000 (21:38 -0500)]
vulkaninfo: cleanup and comments

3 years agovulkaninfo: Fix to pass appveyor tests
Richard S. Wright Jr [Thu, 19 Nov 2020 21:24:25 +0000 (16:24 -0500)]
vulkaninfo: Fix to pass appveyor tests

3 years agovulkaninfo: WIP: Modified for use from iOS
Richard S. Wright Jr [Wed, 18 Nov 2020 23:45:57 +0000 (18:45 -0500)]
vulkaninfo: WIP: Modified for use from iOS

3 years agoscripts: Remove assert for nested array types
Mike Schuchardt [Tue, 7 Jul 2020 00:15:17 +0000 (17:15 -0700)]
scripts: Remove assert for nested array types

Multi-dimensional are already in the specification and don't cause any
issues for vulkaninfo

3 years agobuild: Update known-good files for 1.2.161 header
Shannon McPherson [Wed, 18 Nov 2020 01:37:35 +0000 (18:37 -0700)]
build: Update known-good files for 1.2.161 header

Changes:
- Updated `known_good.json`

Change-Id: I7cd06612c06213138173fb2b26f558313aa4b975

3 years agovulkaninfo: add option to always open details for HTML
Charles Giessen [Tue, 17 Nov 2020 18:30:08 +0000 (11:30 -0700)]
vulkaninfo: add option to always open details for HTML

Doesn't alter current behavior.

Change-Id: I76cb0c4395741848667b2687d722b9b2245fb296

3 years agovulkaninfo: Make json output print extensions
Charles Giessen [Thu, 12 Nov 2020 21:28:32 +0000 (14:28 -0700)]
vulkaninfo: Make json output print extensions

The json schema includes an array of extensions, yet vulkaninfo was not
printing them. This commit remedies that.

Change-Id: I4ae8627660f16d7c831704ba4b082870b5e62bb5

3 years agobuild: Update known-good files for 1.2.160 header
Shannon McPherson [Thu, 12 Nov 2020 02:15:39 +0000 (19:15 -0700)]
build: Update known-good files for 1.2.160 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I6a07892e429a0b81c82ac26bed465caa04d7fb01

3 years agocmake: Silence warnings.
orbea [Mon, 9 Nov 2020 17:55:02 +0000 (09:55 -0800)]
cmake: Silence warnings.

3 years agobuild: Update known-good files for 1.2.159 header
Shannon McPherson [Wed, 4 Nov 2020 22:41:43 +0000 (15:41 -0700)]
build: Update known-good files for 1.2.159 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I944e4a38d50935b9078ea9c11cbd467c5e621f53

3 years agomockicd: Remove VK_KHR_portability_subset
Nathaniel Cesario [Mon, 2 Nov 2020 18:33:45 +0000 (11:33 -0700)]
mockicd: Remove VK_KHR_portability_subset

Don't report VK_KHR_portability_subset as being supported.

Change-Id: I84fa925cee23d3a28ca2726972cb9820c03c619c

3 years agobuild: Update known-good files for 1.2.158 header
Shannon McPherson [Thu, 29 Oct 2020 16:20:18 +0000 (10:20 -0600)]
build: Update known-good files for 1.2.158 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I2f782250bff8bedda4991c45278adf1bf2ae0261

3 years agobuild: Update known-good files for 1.2.157 header
Shannon McPherson [Thu, 15 Oct 2020 19:44:49 +0000 (13:44 -0600)]
build: Update known-good files for 1.2.157 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I14bda6d91e80d48602697f64fdc8bdf4651580e9

3 years agobuild: Update known-good files for 1.2.156 header
Shannon McPherson [Tue, 6 Oct 2020 16:59:49 +0000 (10:59 -0600)]
build: Update known-good files for 1.2.156 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I0186805bc6848e1f7912ede85ea8045be82beaec

3 years agovulkaninfo: Add more portability macro guards
Charles Giessen [Thu, 1 Oct 2020 21:16:34 +0000 (15:16 -0600)]
vulkaninfo: Add more portability macro guards

Previous commit didn't contain all that were necessary.

Change-Id: I0983beb06d95dd316ece5b7ba52754e4ad180cbd

3 years agovulkaninfo: properly macro guard the portability features.
Charles Giessen [Wed, 30 Sep 2020 22:54:40 +0000 (16:54 -0600)]
vulkaninfo: properly macro guard the portability features.

Whlie the main bits were properly guarded, several places should of
been which weren't, including a VK_EXT_NAME which caused compilation
to fail if VK_ENABLE_BETA_EXTENSIONS wasn't defined.

Change-Id: Ifa40f903c4affbf0c169076d9fe5dca522f82db4

3 years agobuild: Fix linux/windows build in single directory
Nathaniel Cesario [Wed, 23 Sep 2020 23:46:04 +0000 (17:46 -0600)]
build: Fix linux/windows build in single directory

Allows a single worktree to be used by multiple platforms for builds.

Change-Id: I5078eaee6f62757ebb431fdc22405cab77d2356e

3 years agoUpdate known_good.json for MoltenVK
richard-lunarg [Tue, 29 Sep 2020 01:42:37 +0000 (21:42 -0400)]
Update known_good.json for MoltenVK

3 years agoFixed paths for MoltenVK changes
richard-lunarg [Mon, 28 Sep 2020 18:56:44 +0000 (14:56 -0400)]
Fixed paths for MoltenVK changes

3 years agovulkaninfo: Add json output for portability subset
Charles Giessen [Tue, 22 Sep 2020 23:39:45 +0000 (17:39 -0600)]
vulkaninfo: Add json output for portability subset

Print the Properties and Features of the KHR_porability_subset.
Requires a driver which supports the extension to get any usable
output.

Change-Id: I45d0d63108f0542868207247d0e6ec42b5a84b67

3 years agobuild: Update known-good files for 1.2.154 header
Shannon McPherson [Tue, 22 Sep 2020 16:55:55 +0000 (10:55 -0600)]
build: Update known-good files for 1.2.154 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I80afb66d2c1153fe06a1bb6098d0c33c27d40d25

3 years agobuild: Update known-good files for 1.2.153 header
Shannon McPherson [Thu, 10 Sep 2020 18:07:53 +0000 (12:07 -0600)]
build: Update known-good files for 1.2.153 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I8899510f2c954d91a39241c88ae8371f4f973384

3 years agobuild: Update known-good files for 1.2.152 header
Shannon McPherson [Mon, 7 Sep 2020 19:47:22 +0000 (13:47 -0600)]
build: Update known-good files for 1.2.152 header

Changes:
- Updated `known_good.json`

Change-Id: Ia5b8ab0d3d0e0d822fac1aa34d600d8ef0e26699

3 years agoandroid: NDK 21d
Bob Ellison [Fri, 28 Aug 2020 00:10:42 +0000 (18:10 -0600)]
android: NDK 21d

Update the Travis configuration to use the most recently available
Android NDK, 21d (i.e. 21.3.6528147).

3 years agoUpdate GN to include header dependencies.
Jamie Madill [Thu, 27 Aug 2020 02:46:52 +0000 (22:46 -0400)]
Update GN to include header dependencies.

These missing header dependencies were picked up by ANGLE's export
targets script.

3 years agocube: satisfy clang-format
Biswapriyo Nath [Tue, 25 Aug 2020 18:19:34 +0000 (23:49 +0530)]
cube: satisfy clang-format

3 years agovulkaninfo: Check if NOMINMAX is already defined
Biswapriyo Nath [Mon, 24 Aug 2020 20:19:05 +0000 (01:49 +0530)]
vulkaninfo: Check if NOMINMAX is already defined

3 years agocube: Check _MSC_VER instead of _WIN32 for pragma directive
Biswapriyo Nath [Mon, 24 Aug 2020 20:17:41 +0000 (01:47 +0530)]
cube: Check _MSC_VER instead of _WIN32 for pragma directive

3 years agoCMake: Check MSVC while deciding MSVC_VERSION
Biswapriyo Nath [Mon, 24 Aug 2020 20:15:53 +0000 (01:45 +0530)]
CMake: Check MSVC while deciding MSVC_VERSION

3 years agoBump mock ICD surface max extents.
Jamie Madill [Mon, 17 Aug 2020 02:43:50 +0000 (22:43 -0400)]
Bump mock ICD surface max extents.

This allows for rotated width/height and also other non-standard
surface dimensions.

Fixes #436

Change-Id: I3d800c075f11a8d439e329c359ea73a7c33c1073

3 years agobuild: Update known-good files for 1.2.151 header
Shannon McPherson [Tue, 18 Aug 2020 03:43:44 +0000 (21:43 -0600)]
build: Update known-good files for 1.2.151 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I499ac301dc89aadb9881700a0b6ce83cb4b82ec4

3 years agobuild: Update MoltenVK version in known-good.json
Jeremy Kniager [Fri, 7 Aug 2020 20:10:58 +0000 (14:10 -0600)]
build: Update MoltenVK version in known-good.json

Increased MoltenVK version in known-good.json from:
v.1.0.43 -> v1.0.44

Change-Id: I910ee0a939623b87ec9df23227014192f088af32

3 years agoFix formatting errors
Nicolas Caramelli [Mon, 13 Jul 2020 16:10:07 +0000 (18:10 +0200)]
Fix formatting errors

3 years agoAdd support for VK_EXT_directfb_surface extension
Nicolas Caramelli [Mon, 13 Jul 2020 15:22:09 +0000 (17:22 +0200)]
Add support for VK_EXT_directfb_surface extension

3 years agovulkaninfo: add `--summary` option that shows basic system info
Charles Giessen [Thu, 19 Mar 2020 23:00:11 +0000 (17:00 -0600)]
vulkaninfo: add `--summary` option that shows basic system info

Shows the instance version, instance extensions, available layers, and for each
physical device on the system, it shows the VkPhysicalDeviceProperties and driver
properties if its supported.

Change-Id: Iccf721af9b8a7da9b008d8879212fa1125dd0d2e

3 years agovulkaninfo: fix device ext list having bad items
Charles Giessen [Tue, 28 Jul 2020 20:29:09 +0000 (14:29 -0600)]
vulkaninfo: fix device ext list having bad items

vkconfig exposed an issue in the vulkan-loader which resulted in two different sizes
returned from vkEnumerateDeviceExtensionProperties(). A full fix requires a change to
the loader, but this commit stops the issue from happening in vulkaninfo.

Change-Id: I808d1fd13868711675aae5c91ea5100ec8cbc316

3 years agobuild: Update known-good files for 1.2.148 header
Shannon McPherson [Mon, 20 Jul 2020 20:47:26 +0000 (14:47 -0600)]
build: Update known-good files for 1.2.148 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I5a2769c0f2634e460260c281eebb4a947c2e50d9

3 years agocube: Add option to select phys device
Tony-LunarG [Thu, 16 Jul 2020 20:26:03 +0000 (14:26 -0600)]
cube: Add option to select phys device

Change-Id: Ic6ff0210b586e03597aa3418b45bf0fa57b1157c

3 years agoscripts: fix update_deps retry clone
Bob Ellison [Wed, 15 Jul 2020 21:15:28 +0000 (15:15 -0600)]
scripts: fix update_deps retry clone

There was a subtle bug in the original change; "git fetch"
would retry correctly, but "git clone" failed because the
destination directory was missing (after having been removed,
to ensure a clean clone operation).

The test case that was used (hundreds of times) happened to
provoke an error on the "git fetch" path; I was unaware that
the "git clone" failure path had never been exercised.

3 years agobuild: Update known-good files for 1.2.147 header
Shannon McPherson [Wed, 15 Jul 2020 01:21:22 +0000 (19:21 -0600)]
build: Update known-good files for 1.2.147 header

Changes:
- Updated `known_good.json`
- Generated new source files

Change-Id: I51ec7fd4b512ba9fc5955ef4eb229838bf5c3951

3 years agoscripts: udpate_deps retry on clone or fetch failure
Bob Ellison [Mon, 13 Jul 2020 17:19:54 +0000 (11:19 -0600)]
scripts: udpate_deps retry on clone or fetch failure

Duplicate change from commit b636386a7824eb4e6a0d99962e1491ac68d3a295
on KhronosGroup/Vulkan-ValidationLayers, to keep update_deps.py
in sync across all repos.  Original commit message is:

We see spurious failures to connect to github when trying to
run update_deps.py (up to 7% of runs, depending on the machine).
This is an annoyance when running by hand, but a headache and
a serious resource waste when running in automation (as a single
broken "git clone" or "git fetch" can cause the whole run to fail).

These changes allow update_deps.py to automatically retry
"git fetch" and "git clone" operations on failure.

These changes will be duplicated in follow-on PRs to the
other repositories that include "update_deps.py", to keep
them all in sync. These are KhronosGroup/Vulkan-Tools,
KhronosGroup/Vulkan-Loader, LunarG/VulkanSamples, and
LunarG/VulkanTools.

I'm also including a "technical debt" update here, because
VulkanTools/scripts/update_deps.py had diverged from the other
"update_deps.py" versions, to add a way to avoid building a
dependency if that dependency is not supported on the current
build platform. This should be harmless to the other
repositories (though potentially useful in the future). The
original commit was aaabc9df034f1fdf9a976a6293d0983b079143ee
with description:

    In update deps, this will check that a dependency is actually supported
    on the platform being built. This is needed because the loader is a
    dependency on all platforms other than Windows.

3 years agobuild: Update known-good files for 1.2.146 header
Shannon McPherson [Mon, 6 Jul 2020 17:29:34 +0000 (11:29 -0600)]
build: Update known-good files for 1.2.146 header

Changes:
- Updated `known_good.json`
- Added directfb to platform dictionary in `common_codegen.py`
- Generated new source files

Change-Id: I8dcc87d22036b2df068da0c5220a5e1158bbe07c

3 years agobuild: Update MoltenVK version in known-good.json
Jeremy Kniager [Thu, 25 Jun 2020 19:17:31 +0000 (13:17 -0600)]
build: Update MoltenVK version in known-good.json

Updated MoltenVK version in known-good.json from v1.0.41
to v.1.0.43

Change-Id: Iff1af627abcc544c58577a200312ea2ca819e557

3 years agobuild: Update known-good files for 1.2.145 header
Shannon McPherson [Wed, 24 Jun 2020 21:20:01 +0000 (15:20 -0600)]
build: Update known-good files for 1.2.145 header

Changes:
- Updated known-good files
- Propogate genvk changes to `lvl_genvky.py`
- Generated new source files

Change-Id: I0391d9804c229e077e28fc3af8fe1da1dd806a2e

3 years agoscripts: Use named params for generator options
Shannon McPherson [Fri, 19 Jun 2020 22:27:10 +0000 (16:27 -0600)]
scripts: Use named params for generator options

When calling in the vulkan header python generator the options have
changed in 1.2.142 which causes the options passed by the tools to be
off by one. This ends up setting the emitExtensions to the value of the
sortProcedure and eventually causes the script to fail.

This CL updates the tools to used named parameters for the generator so
that the addition of the genpath does not throw off the parameter
positioning.

Change-Id: I580d5f07ec3ff9e523dbf738561c2e53cfd42796

3 years agovulkaninfo: fix ordering issues in generated code
Charles Giessen [Mon, 22 Jun 2020 17:50:24 +0000 (11:50 -0600)]
vulkaninfo: fix ordering issues in generated code

Previously the codegen would reorder structs as it pleased
This commit fixed several instances of bad ordering or lack thereof.

Change-Id: Ieda89c64f7400b807407c2fd26660fea10e2bb59

3 years agovulkaninfo: add more asserts to catch bad formatting
Charles Giessen [Thu, 18 Jun 2020 23:20:15 +0000 (17:20 -0600)]
vulkaninfo: add more asserts to catch bad formatting

Change-Id: I923e6fee647edf40d1720ce5f1736b2672059b71

3 years agovulkaninfo: fix output style for memory types
Charles Giessen [Thu, 18 Jun 2020 22:46:20 +0000 (16:46 -0600)]
vulkaninfo: fix output style for memory types

Made the 'usable for' auto expand in html as well.

Change-Id: I97d22fc6b8f603be314e13b46fe675a199c8b7eb

3 years agoicd: Cleanup supported VK API version
Tobin Ehlis [Fri, 5 Jun 2020 03:31:45 +0000 (21:31 -0600)]
icd: Cleanup supported VK API version

Use a single constant, kSupportedVulkanAPIVersion, everwhere
that supported API version is referenced. Current value is
VK_API_VERSION_1_1.

3 years agoicd:Correctly Support Vulkan 1.1
Tobin Ehlis [Thu, 4 Jun 2020 21:54:56 +0000 (15:54 -0600)]
icd:Correctly Support Vulkan 1.1

Mock ICD supports Vulkan 1.1 but was only returning 1.0.
Fixing this.

3 years agovulkaninfo: fix indent with for present support
Charles Giessen [Tue, 2 Jun 2020 17:20:12 +0000 (11:20 -0600)]
vulkaninfo: fix indent with for present support

Change-Id: I6fafdfac5d508cb02026c4cf1d1dbf7adf866bd4

3 years agoscripts: Add default arg for kvt_genvk directory
Charles Giessen [Tue, 26 May 2020 23:35:18 +0000 (17:35 -0600)]
scripts: Add default arg for kvt_genvk directory

Change-Id: I5b932dc1743e78830467dac4783ac3731accb9e0

3 years agobuild: Update known-good files for 1.2.141 header
Shannon McPherson [Tue, 26 May 2020 18:33:45 +0000 (12:33 -0600)]
build: Update known-good files for 1.2.141 header

Changes:
- Updated known-good files
- Generated new source files

Change-Id: I1db35b33b349d9717ccbdd7ec196c1d84707b280

3 years agovulkaninfo: use generate_source.py for autogen
Charles Giessen [Sun, 26 Apr 2020 00:53:21 +0000 (18:53 -0600)]
vulkaninfo: use generate_source.py for autogen

Previously, to update the autogen for vulkaninfo required running a
separate cmake target. This commit puts it all into the same target
for ease of maintenance.

Change-Id: I98e35b01ee164e9917564f6b603e4a78c6138041

3 years agovulkaninfo: correct memory for linear tiled images
Charles Giessen [Mon, 27 Apr 2020 20:23:28 +0000 (14:23 -0600)]
vulkaninfo: correct memory for linear tiled images

Previously vulkaninfo would always add the
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT for linearly tiled images, which is
not supported by the spec. Vulkaninfo will now not query support for
linear tiled images that are of the color format and no longer adds the
aformentioned image usage flag, instead using the
VK_IMAGE_USAGE_TRANSFER_SRC_BIT.

Change-Id: Ida71b738060e893b7e270005e358d51622ee0c4f

3 years agovulkaninfo: Refactor Supported Memory Image Types
Charles Giessen [Fri, 17 Apr 2020 21:50:28 +0000 (15:50 -0600)]
vulkaninfo: Refactor Supported Memory Image Types

The current code was a hold over from the previous iteration of
vulkaninfo and now is more in line with the style of the rest of
vulkaninfo.

Change-Id: I18a62294c3a1f2ba9bd34d814819ba774ae87a67

3 years agofix README on Windows Runtime Installer folder
Ivan Le Lann [Mon, 18 May 2020 16:16:58 +0000 (18:16 +0200)]
fix README on Windows Runtime Installer folder