platform/upstream/Vulkan-Tools.git
3 years agoscripts: Fix codegen with hard-coded enum indices
Mike Schuchardt [Tue, 28 Sep 2021 16:45:09 +0000 (09:45 -0700)]
scripts: Fix codegen with hard-coded enum indices

Currently some of the generators use a fixed child index to locate
extension enums, which will break if comment blocks are added near the
top of an extension definition. This change makes the enum lookup more
robust by searching for the expected enum name instead of using a
hard-coded offset.

3 years agobuild: Update update_deps
Charles Giessen [Tue, 28 Sep 2021 19:25:26 +0000 (13:25 -0600)]
build: Update update_deps

Bring forward the update_deps script in this repo to match VVL

3 years agoci: Add android build to github actions
Mike Schuchardt [Thu, 23 Sep 2021 17:44:34 +0000 (10:44 -0700)]
ci: Add android build to github actions

Change-Id: I1ef9815548f7483ddc712c76210cf938e70c3eae

3 years agobuild: Remove unused components from android build
Mike Schuchardt [Wed, 22 Sep 2021 22:20:31 +0000 (15:20 -0700)]
build: Remove unused components from android build

When Vulkan-Tools split off from Vulkan-LoaderAndValidationLayers it
inherited the android build scripts, most of which are not relevant to
the projects left in this repo. Also update BUILD.md with latest android
toolchain and remove references to the validation layers.

Change-Id: If982829fc20e14156c52a8f364ef7294733f62cd

3 years agoscripts: Use f-strings in vulkaninfo generator
Charles Giessen [Fri, 17 Sep 2021 20:06:29 +0000 (14:06 -0600)]
scripts: Use f-strings in vulkaninfo generator

f-strings are a python feature which allow more natural formatting of text, making
the code easier to read and work with.

3 years agovulkaninf: Support 64 bit flags
Charles Giessen [Fri, 17 Sep 2021 19:43:50 +0000 (13:43 -0600)]
vulkaninf: Support 64 bit flags

64 bit flags use the bitvalues field instead of the requires field in the XML
to specify the flagbits name. Thus the autogen needed to account for that.
In addition, if a flag was promoted to core, the autogen didn't use the core
version, this commit also fixes that.

3 years agobuild: Update to header 1.2.193
Mike Schuchardt [Tue, 21 Sep 2021 17:50:43 +0000 (10:50 -0700)]
build: Update to header 1.2.193

- Update known-good
- Generate source

3 years agobuild: Update to header 1.2.192
Mike Schuchardt [Wed, 15 Sep 2021 16:23:07 +0000 (09:23 -0700)]
build: Update to header 1.2.192

- Update known-good
- Generate source

3 years agoscripts: Ignore compatibility constants in wrapper
Mike Schuchardt [Wed, 15 Sep 2021 15:53:19 +0000 (08:53 -0700)]
scripts: Ignore compatibility constants in wrapper

When the working group changes the name of a constant:

  VK_KHR_MAINTENANCE1_SPEC_VERSION ->
  VK_KHR_MAINTENANCE_1_SPEC_VERSION

they will still #define the original name to maintain backward
compatibility with existing code that uses it:

  #define VK_KHR_MAINTENANCE_1_SPEC_VERSION 2
  #define VK_KHR_MAINTENANCE_1_EXTENSION_NAME "VK_KHR_maintenance1"
  #define VK_KHR_MAINTENANCE1_SPEC_VERSION  VK_KHR_MAINTENANCE_1_SPEC_VERSION
  #define VK_KHR_MAINTENANCE1_EXTENSION_NAME VK_KHR_MAINTENANCE_1_EXTENSION_NAME

In this case, we need to ignore the non-numeric _SPEC_VERSION and
unquoted _EXTENSION_NAME constants because they don't define a separate
extension.

3 years agobuild: Update to header 1.2.191
Mike Schuchardt [Wed, 8 Sep 2021 22:24:35 +0000 (15:24 -0700)]
build: Update to header 1.2.191

- Update known-good
- Generate source

3 years agovulkaninfo: Fix error message when gpus.size()==0
Vladimir Panteleev [Sat, 4 Sep 2021 06:16:46 +0000 (06:16 +0000)]
vulkaninfo: Fix error message when gpus.size()==0

Avoid an amusing and slightly misleading error message:

"The selected gpu (0) is not a valid GPU index. The available GPUs are
in the range of 0 to 18446744073709551615."

3 years agoUpdate known good to the latest MoltenVK tag
Richard S. Wright Jr [Fri, 3 Sep 2021 20:46:26 +0000 (16:46 -0400)]
Update known good to the latest MoltenVK tag

3 years agocubepp: Fix gitlab 828.
Jeremy Hayes [Tue, 31 Aug 2021 00:04:09 +0000 (18:04 -0600)]
cubepp: Fix gitlab 828.

Expect and deny negative window dimensions.

3 years agobuild: Update to header 1.2.190
Mike Schuchardt [Mon, 30 Aug 2021 16:19:23 +0000 (09:19 -0700)]
build: Update to header 1.2.190

- Update known-good
- Generate source

3 years agobuild: Update to header 1.2.189
Mike Schuchardt [Tue, 17 Aug 2021 19:57:01 +0000 (12:57 -0700)]
build: Update to header 1.2.189

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

3 years agobuild: Update to header 1.2.188
Mike Schuchardt [Tue, 10 Aug 2021 19:44:35 +0000 (12:44 -0700)]
build: Update to header 1.2.188

- Update known-good
- Generate source

3 years agoscripts: Use altlen instead of parsing latexmath
Mike Schuchardt [Tue, 10 Aug 2021 19:43:16 +0000 (12:43 -0700)]
scripts: Use altlen instead of parsing latexmath

KhronosGroup/Vulkan-ValidationLayers switched to this method a while ago
and this syncs the KhronosGroup/Vulkan-Tools version of
helper_file_generator.py to match.

3 years agobuild: Update to header 1.2.187
Mike Schuchardt [Tue, 3 Aug 2021 22:22:43 +0000 (15:22 -0700)]
build: Update to header 1.2.187

- Update known-good
- Generate source

3 years agobuild: Update to header 1.2.186
Mike Schuchardt [Tue, 27 Jul 2021 20:29:44 +0000 (13:29 -0700)]
build: Update to header 1.2.186

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

Change-Id: I529e0a7175f18f50ae717c4caae27ef066b80839

3 years agoci: Add verification step for generated source
Mike Schuchardt [Wed, 21 Jul 2021 17:16:15 +0000 (10:16 -0700)]
ci: Add verification step for generated source

This check ensures that the committed generated source files match the
output of the committed generators. We used to have this check on
TravisCI, but it must have gotten lost in the transition to GitHub
Actions.

Change-Id: If6a27994b3bfe8dbd09a962d90cc0c528489bd93

3 years agomockicd: Commit missing generated files
Mike Schuchardt [Wed, 21 Jul 2021 17:26:41 +0000 (10:26 -0700)]
mockicd: Commit missing generated files

These changes should have gone in with the 1.2.185 header update

Change-Id: Ifeded577343a3ee6cf0ca5d14c420bc5d97b28fc

3 years agobuild: Update to header 1.2.185
Mike Schuchardt [Tue, 20 Jul 2021 17:20:43 +0000 (10:20 -0700)]
build: Update to header 1.2.185

- Update known-good
- Re-enable code generation for VK_HUAWEI_subpass_shading
- Generate source

Change-Id: Ibb8d8898c9cdbb655c8162e76b68fa465fe8f912

3 years agovulkaninfo: correct copyright date
Bob Ellison [Tue, 13 Jul 2021 22:24:30 +0000 (16:24 -0600)]
vulkaninfo: correct copyright date

The copyright date declared in vulkaninfo/vulkaninfo.rc
ends in 2020.

3 years agovulkaninfo/cube: added support for FreeBSD
Eleni Maria Stea [Sat, 3 Jul 2021 14:12:30 +0000 (17:12 +0300)]
vulkaninfo/cube: added support for FreeBSD

Made some changes for Vulkan-Tools to compile on FreeBSD.

3 years agobuild: Update to header 1.2.184
Mike Schuchardt [Tue, 6 Jul 2021 20:22:55 +0000 (13:22 -0700)]
build: Update to header 1.2.184

- Update known-good
- Generate source

Change-Id: I6f8219e31038b0efe1e141147292d041655dd640

3 years agodocs: Fix cube wsi selection variable
Tony-LunarG [Fri, 25 Jun 2021 19:54:20 +0000 (13:54 -0600)]
docs: Fix cube wsi selection variable

Change-Id: I0b4d5502d98b5602013c6d56cf9cd4ee4d55db9e

3 years agoknown_good.json updated for latest MoltenVK tag
richard-lunarg [Thu, 1 Jul 2021 22:25:48 +0000 (18:25 -0400)]
known_good.json updated for latest MoltenVK tag

3 years agobuild: Update to header 1.2.183
Mike Schuchardt [Wed, 30 Jun 2021 21:02:03 +0000 (14:02 -0700)]
build: Update to header 1.2.183

- Update known-good
- Generate source

Change-Id: Idd87f69c520cd4ef34a1b9d205f79f7c1c7d9e05

3 years agowindows: updated copyright notices
Bob Ellison [Tue, 29 Jun 2021 21:04:04 +0000 (15:04 -0600)]
windows: updated copyright notices

Updated the master copyright (for Khronos, Valve, and LunarG) to 2021.

Also identified that the four files containing the MIT copyrights were
last updated by LunarG in 2017, so updated those copyrights (again for
Khronos, Valve, and LunarG) accordingly.

I also corrected the spelling of "open-source".

3 years agovulkaninfo: Fix device version check
Xiaolei Yu [Mon, 28 Jun 2021 04:07:57 +0000 (12:07 +0800)]
vulkaninfo: Fix device version check

am 72c2d5f0b0e59bf429144d2e60d8fd6ce1710887

3 years agovulkaninfo: Fix image format query arguments
Charles Giessen [Mon, 21 Jun 2021 20:14:41 +0000 (14:14 -0600)]
vulkaninfo: Fix image format query arguments

The VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT and
VK_IMAGE_CREATE_SPARSE_BINDING_BIT were swapped, causing erroneous output
and validation messages.

Change-Id: Iff61c379f66aedb14e27e7f422516e1469274248

3 years agovkcube: Remove unused variable from Wayland build
Tony-LunarG [Wed, 23 Jun 2021 15:59:49 +0000 (09:59 -0600)]
vkcube: Remove unused variable from Wayland build

Change-Id: Iedc4929547cd58063481e0cf19dda6ba38846a16

3 years agobuild: Update to header 1.2.182
Mike Schuchardt [Mon, 21 Jun 2021 17:10:48 +0000 (10:10 -0700)]
build: Update to header 1.2.182

- Update known-good
- Add support for printing `int64_t` in `scripts/vulkaninfo_generator.py`
- Disable codegen for VK_HUAWEI_subpass_shading
  KhronosGroup/Vulkan-Docs#1564
- Generate source

Change-Id: I4417e99ed37da510bfaf94d676e22ac3fb088d5d

3 years agocube: Handle occlusion where currentExtent == 0xFFFFFFFF
Joshua Ashton [Thu, 17 Jun 2021 17:30:14 +0000 (18:30 +0100)]
cube: Handle occlusion where currentExtent == 0xFFFFFFFF

The Vulkan spec states that: "On some platforms, it is normal that maxImageExtent may become (0, 0), for example when the window is minimized. In such a case, it is not possible to create a swapchain due to the Valid Usage requirements."

Yet vkcube previously only handled this path for platforms where currentExtent != 0xFFFFFFFF.

3 years agocube: Don't constantly call vkAllocateCommandBuffers and vkBeginCommandBuffer when...
Joshua Ashton [Thu, 17 Jun 2021 18:05:16 +0000 (19:05 +0100)]
cube: Don't constantly call vkAllocateCommandBuffers and vkBeginCommandBuffer when minimised

Before this, vkcube would leak these crash when minimised for long periods of time.

3 years agovkcube: Remove unused variable
Tony-LunarG [Wed, 16 Jun 2021 21:48:00 +0000 (15:48 -0600)]
vkcube: Remove unused variable

Change-Id: I8064d5e97700cb1a233b61d37aba92ca5f752560

3 years agovulkaninfo: Dont print None in vkconfig output
Charles Giessen [Mon, 14 Jun 2021 21:30:37 +0000 (15:30 -0600)]
vulkaninfo: Dont print None in vkconfig output

vkconfig prints arrays as it finds them, even if there is only a "None"
element in it. This commit prevents this element from being printed,
removing confusing results where there is a `count = 1` but contains "None".

Change-Id: I1ef8c63458728a9fd3dc531dc9983f309c851034

3 years agovkcube: Fix alpha enum type
Tony-LunarG [Tue, 15 Jun 2021 19:14:06 +0000 (13:14 -0600)]
vkcube: Fix alpha enum type

Change-Id: Id85e0228aeb834de37586fa5d8d334ddc1c7371e

3 years agovkcube: fix crash on exit from double delete
richard-lunarg [Tue, 15 Jun 2021 20:49:50 +0000 (16:49 -0400)]
vkcube: fix crash on exit from double delete

3 years agobuild: Update to header 1.2.181
Mike Schuchardt [Mon, 14 Jun 2021 18:32:44 +0000 (11:32 -0700)]
build: Update to header 1.2.181

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

Change-Id: Ibfdf958ca32779f7635c324af3ed4146186b27c9

3 years agobuild: Add Werror and warning flags to builds
Jeremy Kniager [Thu, 10 Jun 2021 21:00:11 +0000 (15:00 -0600)]
build: Add Werror and warning flags to builds

Added the Werror, Wall, and Wextra flags to builds in CMake.

Change-Id: I58ff7c7d175b512906141b0e691f42b8eb4bf68f

3 years agocube: Port Wayland impl from wl-shell to xdg-shell
Manuel Stoeckl [Thu, 27 Jun 2019 00:55:53 +0000 (20:55 -0400)]
cube: Port Wayland impl from wl-shell to xdg-shell

This change ports vkcube in both C and C++ versions to use the stable
xdg-shell protocol for Wayland compositors. The original wl-shell
protocol has been deprecated and is being removed from major compositor
libraries; wlroots has already dropped support.

New cmake modules have been added to look for Wayland-Protocols
(containing XML descriptions of all common protocols) and
`wayland-scanner`, the tool used to convert the XML files to a usable C
interface.

The change also adds support for the xdg-decoration protocol, which for
some compositors is provided and needed to let them know that they
should draw a titlebar, borders with resize controls, and other standard
features.

Change-Id: I39bedda93a7c5d0aeeb59c68023552723b413567

3 years agovulkaninfo: Improve formatting of surface caps
Charles Giessen [Thu, 10 Jun 2021 22:19:21 +0000 (16:19 -0600)]
vulkaninfo: Improve formatting of surface caps

VkSurfaceCapabilities has the width & height way out to the right
while the rest of the structure doesn't. This makes it look inconsistent.

This PR also changes the layout of the flag and flagbit printers to return
earlier if possible.

Change-Id: I1b478838b3c95e33354d3daf13040e891454324e

3 years agovulkaninfo: Use autogen supportedSurfaceCounters
Charles Giessen [Thu, 10 Jun 2021 21:57:15 +0000 (15:57 -0600)]
vulkaninfo: Use autogen supportedSurfaceCounters

Change-Id: I65056198dfe1c9a10c9f04f09f9bdb11d4ff903e

3 years agovulkaninfo: Fix compiler warnings
Charles Giessen [Thu, 10 Jun 2021 21:37:25 +0000 (15:37 -0600)]
vulkaninfo: Fix compiler warnings

Fixes the implicit conversion of int to size_t and hidden declarations.

Change-Id: I98a3eeb76acfc4dffa0c6a06bb6e72931e4e16d6

3 years agovkcube: Fix compilier warnings
Tony-LunarG [Fri, 11 Jun 2021 18:00:30 +0000 (12:00 -0600)]
vkcube: Fix compilier warnings

Change-Id: I199d4064f0e034cb747a87844c250203fcf22157

3 years agobuild: Update to header 1.2.180
Mike Schuchardt [Mon, 7 Jun 2021 20:44:49 +0000 (13:44 -0700)]
build: Update to header 1.2.180

- Update known-good
- Generate source

Change-Id: I41d51ecab3257530ad733fe977f92d9c482543e6

3 years agovkcube: Resize on SUBOPTIMAL if necessary
Tony-LunarG [Fri, 4 Jun 2021 21:12:55 +0000 (15:12 -0600)]
vkcube: Resize on SUBOPTIMAL if necessary

Change-Id: I6421c661880695ba359969fb5e8752e2140167f5

3 years agovkcube: Fix disturbed rotation after many iterations
Arman Uguray [Tue, 25 May 2021 07:07:24 +0000 (00:07 -0700)]
vkcube: Fix disturbed rotation after many iterations

vkcube computes the model matrix for the cube by repeatedly multiplying
a rotation matrix with it. After a sufficient number of iterations the
matrix becomes disturbed (likely due to numerical errors) and stops
being orthogonal and the cube vertices start scaling increasingly on the
XY plane.

* Orthonormalize the model matrix after each multiplication to prevent
the scaling.
* Use mat4x4_rotate_Y() instead of mat4x4_rotate() as it is less
verbose.
* Remove unused duplicate vkcube_vs_uniform struct.

3 years agoTrigger demo quit from applicationWillTerminate
Jake Turner [Tue, 18 May 2021 04:55:51 +0000 (05:55 +0100)]
Trigger demo quit from applicationWillTerminate

Allows for a clean shutdown of the rendering thread (CVDisplayLink) whilst the main thread is exiting

3 years agotests: Run update on Linux before tests
Jeremy Kniager [Fri, 28 May 2021 20:12:54 +0000 (14:12 -0600)]
tests: Run update on Linux before tests

Change-Id: I523972dd44236659764e12d00ebf2ccb2568d5a6

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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.

3 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

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