platform/upstream/Vulkan-Tools.git
5 years agocube: Add subpass dependencies
Tony-LunarG [Thu, 13 Jun 2019 21:32:05 +0000 (15:32 -0600)]
cube: Add subpass dependencies

Shared depth buffer and image layout transition both
need to be accounted for

Change-Id: Id26bc47798c58e4435a5585def3161105b7fffd1

5 years agocube: Fix compiler warning
Tony-LunarG [Thu, 13 Jun 2019 22:21:57 +0000 (16:21 -0600)]
cube: Fix compiler warning

Change-Id: I8a84556cf55b03cc39402067150fc86be3ed1a0a

5 years agovulkaninfo: Fix HTML format for multi-GPU computer
Jeremy Kniager [Thu, 13 Jun 2019 16:19:03 +0000 (10:19 -0600)]
vulkaninfo: Fix HTML format for multi-GPU computer

Fixes an issue found where the device properties
and extensions would only be printed for the first GPU
on a system when printing in HTML format.

Change-Id: Id6812d7c6b14915afb87fdb740e8918f4609d662

5 years agobuild: Update known-good files glslang commit ID
Jeremy Kniager [Mon, 10 Jun 2019 20:21:20 +0000 (14:21 -0600)]
build: Update known-good files glslang commit ID

Change-Id: I5ef3ac82301d42cbdb616da4c995cf6dc53c6708

5 years agocube: Add usage message on Windows
Tony-LunarG [Tue, 4 Jun 2019 20:11:43 +0000 (14:11 -0600)]
cube: Add usage message on Windows

Change-Id: Id709544863b50def407d7e18c330914bebc9c03a

5 years agocmake: adjust cmake download process to match new design
Bob Ellison [Thu, 6 Jun 2019 16:26:48 +0000 (10:26 -0600)]
cmake: adjust cmake download process to match new design

Also took Karl off the list of e-mail addresses to be notified,
at his request.

5 years agocmake: Use CMake 3.10.2 for CI
Bob Ellison [Thu, 23 May 2019 17:43:54 +0000 (11:43 -0600)]
cmake: Use CMake 3.10.2 for CI

These changes ensure that the Travis and AppVeyor
builds use a known version of CMake.

5 years agobuild: Update known-good files for 1.1.108 header
Shannon McPherson [Wed, 29 May 2019 16:22:32 +0000 (10:22 -0600)]
build: Update known-good files for 1.1.108 header

Change-Id: Ifc19c0e0fcb36f9a5009a73979eb20069e9db463

5 years agovulkaninfo: Run clang-format
Jeremy Kniager [Mon, 13 May 2019 15:23:38 +0000 (09:23 -0600)]
vulkaninfo: Run clang-format

Change-Id: I956d5777b657a25edb7f289047f320345af5cc44

5 years agovulkaninfo: VK_KHR_surface_protected_capabilities
Jeremy Kniager [Mon, 29 Apr 2019 22:03:56 +0000 (16:03 -0600)]
vulkaninfo: VK_KHR_surface_protected_capabilities

Added output for the following structures from
extension VK_KHR_surface_protected_capabilities:

        VkSurfaceProtectedCapabilitiesKHR

Change-Id: I5fb89b8118abbdb3876463f2ff5f96c08221781b

5 years agovulkaninfo: Add VK_EXT_host_query_reset
Jeremy Kniager [Mon, 29 Apr 2019 20:38:50 +0000 (14:38 -0600)]
vulkaninfo: Add VK_EXT_host_query_reset

Added output for the following structures from
extension VK_EXT_host_query_reset:

        VkPhysicalDeviceHostQueryResetFeaturesEXT

Change-Id: Ibc3dce6261ff5e46926d4f969562d377c74f23f5

5 years agovulkaninfo: Add VK_EXT_ycbcr_image_arrays
Jeremy Kniager [Mon, 29 Apr 2019 20:30:06 +0000 (14:30 -0600)]
vulkaninfo: Add VK_EXT_ycbcr_image_arrays

Added output for the following structures from
extension VK_EXT_ycbcr_image_arrays:

        VkPhysicalDeviceYcbcrImageArraysFeaturesEXT

Change-Id: I0f10ae006e99fff5192729ac32bafae2d9170d0c

5 years agoupdate_deps: make --clean-repo switch work in all cases
Bob Ellison [Wed, 8 May 2019 17:32:08 +0000 (11:32 -0600)]
update_deps: make --clean-repo switch work in all cases

--clean-repo right now will raise an exception if the repository
directory was not present.  This makes it work in all cases.

5 years agoscripts: Temporary workaround for python2
Mike Schuchardt [Mon, 22 Apr 2019 18:19:54 +0000 (11:19 -0700)]
scripts: Temporary workaround for python2

Temporarily patch abc module with ABC helper class until upstream
conventions.py script stops using it.

5 years agobuild: Add GN build
Mike Schuchardt [Sat, 20 Apr 2019 01:09:30 +0000 (18:09 -0700)]
build: Add GN build

Add support for GN, Google's meta-build system for Ninja:
https://gn.googlesource.com/gn/

Pull BUILD.gn and script dependencies from
https://chromium.googlesource.com/angle/angle

Add build_overrides for this project to enable both standalone and
component builds using GN.

Add GN configuration to Travis CI

5 years agoscripts: Update known good for 107 header update
Shannon McPherson [Fri, 3 May 2019 20:24:00 +0000 (14:24 -0600)]
scripts: Update known good for 107 header update

Updated:
- `build-android/vulkan-headers_revision_android`
- `scripts/known_good.json`

Change-Id: Ibf9d23645407e78805b8b8192a35338452baaf18

5 years agoFix memory leak in `vkcube`.
Jason Chen [Thu, 4 Apr 2019 04:45:29 +0000 (12:45 +0800)]
Fix memory leak in `vkcube`.

5 years agovulkaninfo: Fix crash at Presentable Surface
Jeremy Kniager [Wed, 1 May 2019 20:32:43 +0000 (14:32 -0600)]
vulkaninfo: Fix crash at Presentable Surface

Checks to make sure surface extensions were enabled
neglected to leave important struct variables outside
the if statements.

This resulted in these variables becoming uninitialized
and causing undefined behaviour.

Change-Id: Ice27314aa1d6520fc83c14726e2075a8574ba883

5 years agovulkaninfo: Check support for surface extensions before using them
Gabríel Arthúr Pétursson [Fri, 19 Apr 2019 13:35:24 +0000 (13:35 +0000)]
vulkaninfo: Check support for surface extensions before using them

Not all ICDs support all the surface extensions that vulkaninfo
enumerates.

For example, on Linux with an ICD that only support VK_KHR_xcb_surface,
vulkaninfo crashes:

Presentable Surfaces:
=====================
ERROR: VK_KHR_xlib_surface extension not enabled.  vkCreateXlibSurfaceKHR not executed!

vulkaninfo/vulkaninfo.c:1427: failed with VK_ERROR_EXTENSION_NOT_PRESENT

5 years agoUpdate CMakeLists.txt
Cody Jackson [Wed, 24 Apr 2019 18:00:17 +0000 (11:00 -0700)]
Update CMakeLists.txt

Adds Control Flow Guard compiler flag to vulkaninfo

Control Flow Guard (CG) protects against some forms of memory corruption.
See https://docs.microsoft.com/en-us/windows/desktop/secbp/control-flow-guard for details.

This compiler flag enables CFG on vulkaninfo. (CFG is already enabled on the Cube project.)

Enabling CFG is a low-risk, "set and forget" low hanging fruit for security hardening.

5 years agoknown_good: Update MoltenVK known_good version ID
Jeremy Kniager [Wed, 17 Apr 2019 15:21:06 +0000 (09:21 -0600)]
known_good: Update MoltenVK known_good version ID

Updated the MoltenVK version in known_good.json to
"v1.0.34"

Change-Id: I81bfec2e80f724815c4e9576386d00a96b784a48

5 years agotest: Update cloud CI to use known_good.json
Jeremy Kniager [Mon, 22 Apr 2019 19:33:59 +0000 (13:33 -0600)]
test: Update cloud CI to use known_good.json

Updates to other repos can cause errors to propagate
from changes that have nothing to do with PRs on
Vulkan-Tools.

This commit changes cloud CI systems to build with
known_good.json in Vulkan-Tools so that issues
affecting other repos do not prevent PRs in Vulkan-Tools
from getting merged.

Change-Id: Iad4907c0bf07322c9b02477e09fed9fd5b72b631

5 years agocube: fix scoping of some variables.
Dave Airlie [Fri, 12 Apr 2019 07:04:48 +0000 (17:04 +1000)]
cube: fix scoping of some variables.

use_invalid: Using "present.pNext", which points to an out-of-scope variable "regions".

In theory these local vars are out of scope when they are used later.

Pointed out by coverity

5 years agocube: remove unused validation_layer_count.
Dave Airlie [Fri, 12 Apr 2019 06:59:23 +0000 (16:59 +1000)]
cube: remove unused validation_layer_count.

This is assigned but never used.

Pointed out by coverity.

5 years agovulkaninfo: use correct type in malloc sizing.
Dave Airlie [Fri, 12 Apr 2019 06:58:03 +0000 (16:58 +1000)]
vulkaninfo: use correct type in malloc sizing.

warning: Result of 'malloc' is converted to a pointer of type 'VkPresentModeKHR', which is incompatible with sizeof operand type 'VkPresentInfoKHR'

Pointed out by coverity.

5 years agovulkaninfo: handle NULL layer_name.
Dave Airlie [Fri, 12 Apr 2019 06:53:19 +0000 (16:53 +1000)]
vulkaninfo: handle NULL layer_name.

Earlier we check for a NULL layer name but not here.

Vulkan-Tools-sdk-1.1.101.0/vulkaninfo/vulkaninfo.c:4403: var_deref_model: Passing null pointer "layer_name" to "strcmp", which dereferences it.

Pointed out by coverity.

5 years agovulkaninfo: handle html output file open failure.
Dave Airlie [Fri, 12 Apr 2019 06:50:27 +0000 (16:50 +1000)]
vulkaninfo: handle html output file open failure.

Vulkan-Tools-sdk-1.1.101.0/vulkaninfo/vulkaninfo.c:5008: dereference: Dereferencing a pointer that might be "NULL" "out" when calling "PrintHtmlHeader".

Pointed out by coverity.

5 years agocube.cpp: fix uninit non-static member.
Dave Airlie [Fri, 12 Apr 2019 06:47:29 +0000 (16:47 +1000)]
cube.cpp: fix uninit non-static member.

This was pointed out by coverity.

5 years agovulkaninfo: Fix HTML output
Jeremy Kniager [Fri, 12 Apr 2019 16:45:03 +0000 (10:45 -0600)]
vulkaninfo: Fix HTML output

Fixed the HTML output for the
VkPhysicalDeviceDepthStencilResolvePropertiesKHR
structure.

HTML output was being sent to the terminal instead of
the HTML file.

Change-Id: I26daa670aa732c0c758dbbc48c1fcdc02e2da38b

5 years agoscripts: Update known good for 106 header update
Shannon McPherson [Fri, 5 Apr 2019 16:46:16 +0000 (10:46 -0600)]
scripts: Update known good for 106 header update

Changes:
- Integrate upstream script changes: We have to plumb-through the new
conventions object to continue using the makeCParamDecl utility function
- Add GGP to available platforms
- Define `VULKAN_HPP_TYPESAFE_CONVERSION` in `cube.cpp` to avoid build
errors concerning explicit/implicit casting in `vulkan.hpp`
- Update known-good files

Updated:
- `build-android/vulkan-headers_revision_android`
- `cube/cube.cpp`
- `scripts/common_codegen.py`
- `scripts/known_good.json`
- `scripts/kvt_genvk.py`
- `scripts/mock_icd_generator.py`
- `scripts/vulkan_tools_helper_file_generator.py`

Change-Id: Ie9deb9f088d666195bcb987e30974f274d33fc85

5 years agocube: Update cube apps to use Khronos val layer
Mark Lobodzinski [Wed, 27 Mar 2019 18:37:30 +0000 (12:37 -0600)]
cube: Update cube apps to use Khronos val layer

5 years agoformat: Run clang-format
Jeremy Kniager [Thu, 28 Mar 2019 23:01:58 +0000 (17:01 -0600)]
format: Run clang-format

Run clang-format to reformat appropriate changes.

Change-Id: I0e8bd083806f5da81d889d306e1802621d4bf7b3

5 years agovulkaninfo: Add VK_KHR_depth_stencil_resolve
Jeremy Kniager [Wed, 27 Mar 2019 21:09:56 +0000 (15:09 -0600)]
vulkaninfo: Add VK_KHR_depth_stencil_resolve

Added output for the following structure from
extension VK_KHR_depth_stencil_resolve:

        VkPhysicalDeviceDepthStencilResolvePropertiesKHR

Change-Id: Ib997c0c8d8f35be14cd611e6b6473accc28a2985

5 years agovulkaninfo: Add VK_EXT_buffer_device_address
Jeremy Kniager [Wed, 27 Mar 2019 17:34:46 +0000 (11:34 -0600)]
vulkaninfo: Add VK_EXT_buffer_device_address

Added output for the following structure in the
VK_EXT_buffer_device_address extension:

        VkPhysicalDeviceBufferAddressFeaturesEXT

Change-Id: I04f18b62ccc485ea98522bafc01d9d3f15d19ac2

5 years agovulkaninfo: Add VK_EXT_memory_budget output
Jeremy Kniager [Mon, 25 Mar 2019 21:29:57 +0000 (15:29 -0600)]
vulkaninfo: Add VK_EXT_memory_budget output

Added output for the following structures provided
by VK_EXT_memory_budget:

        VkPhysicalDeviceMemoryBudgetPropertiesEXT

Change-Id: I442675019ca7b3fbdbed7cd52ac1843f3de341f2

5 years agovulkaninfo: Add VK_EXT_memory_priority Output
Jeremy Kniager [Mon, 25 Mar 2019 16:39:27 +0000 (10:39 -0600)]
vulkaninfo: Add VK_EXT_memory_priority Output

Added out put for the following structure from extension
VK_EXT_memory_priority:

        VkPhysicalDeviceMemoryPriorityFeaturesEXT

Change-Id: I5c32039e878dff7b4323d143830ae7515733f74b

5 years agovulkaninfo: Run clang-format
Jeremy Kniager [Thu, 21 Mar 2019 18:04:05 +0000 (12:04 -0600)]
vulkaninfo: Run clang-format

Change-Id: I9fc6732e87c71061c0cabb6b46022b525cf5c84b

5 years agovulkaninfo: Fix HTML output warnings and errors
Jeremy Kniager [Thu, 21 Mar 2019 17:12:50 +0000 (11:12 -0600)]
vulkaninfo: Fix HTML output warnings and errors

Updated vulkaninfo HTML output to fix errors and
warnings output by https://validator.w3.org.

Change-Id: Ic84cc71467e69a33d2c816e8e79b918006c3194e

5 years agodocs: Update GOVERNANCE
Jeremy Kniager [Fri, 22 Mar 2019 16:38:17 +0000 (10:38 -0600)]
docs: Update GOVERNANCE

Updated GOVERNANCE.md to better reflect the
KhronosGroup/Vulkan-Tools repo.

Change-Id: I74a609324e2e2e24c303d180dde4ba165ed2575a

5 years agodeps: allow a --generator switch to update_deps.py
Bob Ellison [Tue, 19 Mar 2019 23:19:34 +0000 (17:19 -0600)]
deps: allow a --generator switch to update_deps.py

This allows you to use any CMake generator available
on your system to configure the dependent repositories,
allowing you to match the same generator being used by
the project build.

update_deps.py:
- Take a parameter to specify a CMake generator, and pass it to CMake
  if present
- Allow the user to reduce the count of parallel make jobs that can
  happen at one time
- remove an unnecessary semicolon

5 years agodocs: Update CONTRIBUTING.md for CI process
Mike Weiblen [Thu, 21 Mar 2019 20:34:58 +0000 (14:34 -0600)]
docs: Update CONTRIBUTING.md for CI process

Change-Id: Iaca18022e840df01fd73654630e3f6377b4af2a7

5 years agodocs: Update BUILD.md for CMake versions
Mike Weiblen [Thu, 21 Mar 2019 18:51:57 +0000 (12:51 -0600)]
docs: Update BUILD.md for CMake versions

5 years agobuild: Update CMake version
Jeremy Kniager [Thu, 21 Mar 2019 15:48:32 +0000 (09:48 -0600)]
build: Update CMake version

Updated suggested CMake version for platforms in
BUILD.md.

Added CMake version output on Travis and AppVeyor.

Change-Id: I128b17c85a8e4c8a5c1f334b818ea8171d9a7143

5 years agovulkaninfo: Fix compiler warnings
Petr Kraus [Mon, 18 Mar 2019 18:59:32 +0000 (19:59 +0100)]
vulkaninfo: Fix compiler warnings

5 years agovulkaninfo: Report images compatible with memory type
Petr Kraus [Sun, 10 Mar 2019 23:54:40 +0000 (00:54 +0100)]
vulkaninfo: Report images compatible with memory type

5 years agovulkaninfo: Remove invalid json for present_support
Petr Kraus [Tue, 12 Mar 2019 19:59:11 +0000 (20:59 +0100)]
vulkaninfo: Remove invalid json for present_support

5 years agodocs: Update CONTRIBUTING.md
Jeremy Kniager [Thu, 14 Mar 2019 15:24:05 +0000 (09:24 -0600)]
docs: Update CONTRIBUTING.md

Updated CONTRIBUTING.md to link to instructions
about validating vulkaninfo JSON output.

5 years agovulkaninfo: Make present support 1\0 in json
Petr Kraus [Wed, 6 Mar 2019 19:49:40 +0000 (20:49 +0100)]
vulkaninfo: Make present support 1\0 in json

5 years agovulkaninfo: Fix missing struct declaration (warning)
Petr Kraus [Wed, 6 Mar 2019 01:25:13 +0000 (02:25 +0100)]
vulkaninfo: Fix missing struct declaration (warning)

5 years agovulkaninfo: Restructure present support output of multi-platform case
Petr Kraus [Wed, 6 Mar 2019 01:09:48 +0000 (02:09 +0100)]
vulkaninfo: Restructure present support output of multi-platform case

5 years agovulkaninfo: Convert surface dynamic array to a linked list
Petr Kraus [Wed, 6 Mar 2019 00:10:51 +0000 (01:10 +0100)]
vulkaninfo: Convert surface dynamic array to a linked list

5 years agovulkaninfo: Prevent surface creation silent failure
Petr Kraus [Wed, 6 Mar 2019 00:09:58 +0000 (01:09 +0100)]
vulkaninfo: Prevent surface creation silent failure

5 years agovulkaninfo: Fix uninitialized VkDevice pQueuePriorities
Jeremy Kniager [Wed, 6 Mar 2019 00:07:58 +0000 (01:07 +0100)]
vulkaninfo: Fix uninitialized VkDevice pQueuePriorities

5 years agovulkaninfo: Fix window\surface lifetime
Petr Kraus [Tue, 5 Mar 2019 02:40:12 +0000 (03:40 +0100)]
vulkaninfo: Fix window\surface lifetime

5 years agovulkaninfo: Revert "Fix Issue 136"
Jeremy Kniager [Mon, 25 Feb 2019 20:29:36 +0000 (13:29 -0700)]
vulkaninfo: Revert "Fix Issue 136"

This reverts commit 607c301efbb2ee5228f8ddc8eb7500f11dedecbd.

5 years agovulkaninfo: create JSON validation process doc
Mike Weiblen [Thu, 7 Mar 2019 01:45:00 +0000 (18:45 -0700)]
vulkaninfo: create JSON validation process doc

5 years agobuild: Correct Metal platform name
Shannon McPherson [Wed, 6 Mar 2019 18:25:56 +0000 (11:25 -0700)]
build: Correct Metal platform name

In `common_codegen.py` the Metal platform was defined without the "_EXT"
suffix

Change-Id: Ib36778735c09ae54d0e4a9bb0d7aa2fcec26b985

5 years agobuild: Update known-good for 1.1.102 header
Shannon McPherson [Tue, 5 Mar 2019 21:06:10 +0000 (14:06 -0700)]
build: Update known-good for 1.1.102 header

Additionally, updated copyright dates and added Metal to the platform
list

Updated:
- `build-android/vulkan-headers_revision_android`
- `scripts/common_codegen.py`
- `scripts/known_good.json`

Change-Id: I161f2dfaf8fafd25be50e09b8c6e7da13d9ad9b3

5 years agovulkaninfo: Fix Issue 136
Jeremy Kniager [Mon, 25 Feb 2019 20:29:36 +0000 (13:29 -0700)]
vulkaninfo: Fix Issue 136

Added listing for all present extensions and
listing for present support for each extension on
GPU queue families.

Change-Id: I3ad18bb346ff50b6dfa141cebb58155f59fd754c

5 years agomacos: Change LunarG Icons to Vulkan Logo
Jeremy Kniager [Fri, 1 Mar 2019 17:48:58 +0000 (10:48 -0700)]
macos: Change LunarG Icons to Vulkan Logo

Replaced LunarGIcon.icns with VulkanIcon.icns as part
of rebranding initiative.

Change-Id: I582b5d057f9177940c3f959a87a304c74993dec2

5 years agovulkaninfo: fix nesting of HTML output
Bob Ellison [Fri, 1 Mar 2019 01:57:51 +0000 (18:57 -0700)]
vulkaninfo: fix nesting of HTML output

Four extensions, if supported on a device, didn't emit the proper "</details>"
closing tag.  This caused the nesting to be incorrect while viewing the HTML output.

5 years agovulkaninfo: Update `vulkaninfo.rc` copyright dates
Shannon McPherson [Fri, 1 Mar 2019 03:37:05 +0000 (20:37 -0700)]
vulkaninfo: Update `vulkaninfo.rc` copyright dates

Change-Id: I9eadccd98083d7e77b74a5bcfe832745cb13701a

5 years agoAdd librt when necessary
Tony-LunarG [Tue, 26 Feb 2019 21:44:32 +0000 (14:44 -0700)]
Add librt when necessary

Change-Id: Ie4b3fdec4d61a52e82880308bb567f2f22c6c273

5 years agobuild: Update glslang known-good for 101 SDK
Shannon McPherson [Tue, 26 Feb 2019 16:07:32 +0000 (09:07 -0700)]
build: Update glslang known-good for 101 SDK

Change-Id: Ib28abfe172079ad60ea5bfcbbb922990e302b135

5 years agoMake copyright internal to the file
KarenGhavam-lunarG [Fri, 22 Feb 2019 21:51:00 +0000 (14:51 -0700)]
Make copyright internal to the file

5 years agobuild: Update known-good to 1.1.101 header
Shannon McPherson [Wed, 20 Feb 2019 22:55:22 +0000 (15:55 -0700)]
build: Update known-good to 1.1.101 header

Change-Id: Ifedc7998fbf520f48748b646307071c07c58e627

5 years agodocs: Add vulkaninfo.md
Jeremy Kniager [Fri, 15 Feb 2019 20:20:07 +0000 (13:20 -0700)]
docs: Add vulkaninfo.md

Added vulkaninfo.md

Change-Id: Ie190cf31f34bff649b36be977a1334e22a3e89e7

5 years agoFix the build error on Android
Jiayuan Ren [Fri, 15 Feb 2019 00:11:59 +0000 (16:11 -0800)]
Fix the build error on Android

Currently, the vulkaninfo is not supported on Android.
But someone might use the vulkaninfo with their own makefiles
crossing all the platforms including Android.

This change fixed the compiling error on Android platform.

5 years agoknown-good: Update Vulkan-Tools to 1.1.100 Header
Jeremy Kniager [Thu, 14 Feb 2019 22:02:54 +0000 (15:02 -0700)]
known-good: Update Vulkan-Tools to 1.1.100 Header

Updated the the Vulkan-Headers tag in known-good.json
to point to the Vulkan 1.1.100 headers.

Change-Id: Ib641abeb75da36504537bfc29d0cb05dc1109612

5 years agovkcube: Implement key events in Windows
Petr Kraus [Wed, 23 Jan 2019 17:45:04 +0000 (18:45 +0100)]
vkcube: Implement key events in Windows

5 years agovulkaninfo: print VK_MEMORY_PROPERTY_PROTECTED_BIT
Jiayuan Ren [Thu, 14 Feb 2019 01:04:43 +0000 (17:04 -0800)]
vulkaninfo: print VK_MEMORY_PROPERTY_PROTECTED_BIT

Adding the VK_MEMORY_PROPERTY_PROTECTED_BIT in the printing.

5 years agobuild: Revert known-good to 1.1.97 header
Shannon McPherson [Mon, 11 Feb 2019 21:26:51 +0000 (14:26 -0700)]
build: Revert known-good to 1.1.97 header

Reverting known-good files to 1.1.97 due to a spec bug introduced in the
1.1.99 header

Change-Id: Ie9f91658cc9a22021a7c85a0734f325ec1c63c72

5 years agovulkaninfo: Reintroduce vkCreateInstance pNext debug report callback
Petr Kraus [Wed, 6 Feb 2019 23:00:39 +0000 (00:00 +0100)]
vulkaninfo: Reintroduce vkCreateInstance pNext debug report callback

5 years agovulkaninfo: Rewrite instance creation
Petr Kraus [Fri, 25 Jan 2019 16:08:44 +0000 (17:08 +0100)]
vulkaninfo: Rewrite instance creation

1) localize `VkPhysicalDeviceSurfaceInfo2KHR (and remove from instance creation)
2) Remove debug callback. We are not even using layers...
3) Enable all supported instance extensions. Close #100.
4) Prettify instance command loader
5) other esthetics

5 years agobuild: Update known-good for 1.1.99 header
Shannon McPherson [Tue, 5 Feb 2019 22:45:54 +0000 (15:45 -0700)]
build: Update known-good for 1.1.99 header

Updated:
- `build-android/vulkan-headers_revision_android`
- `scripts/known_good.json`
- `scripts/kvt_genvk.py`

Change-Id: Ibd1a61c359a417a90bdde6327536fc8d890f3734

5 years agomacos: Update known-good.json
Jeremy Kniager [Mon, 28 Jan 2019 16:44:26 +0000 (09:44 -0700)]
macos: Update known-good.json

Updated the commit ID for MoltenVK in
known-good.json.

Change-Id: I0658c7499021836a4baa7c78f4f16fb3e525629f

5 years agovulkaninfo: Remove clang-format off
Jeremy Kniager [Thu, 24 Jan 2019 22:26:21 +0000 (15:26 -0700)]
vulkaninfo: Remove clang-format off

It doesn't make sense to enforce clang-format rules
and then turn it off for more than half of the file.

Removed clang-format off from vulkaninfo.c and ran
clang-format to clean up the code.

Change-Id: Id9358d8272568314c57dd861a954a2247320b36f

5 years agovulkaninfo: Check VkResult of vkGetPhysicalDeviceSurfaceSupportKHR
Petr Kraus [Thu, 24 Jan 2019 16:57:39 +0000 (17:57 +0100)]
vulkaninfo: Check VkResult of vkGetPhysicalDeviceSurfaceSupportKHR

patch #125

5 years agoissue 126: fix vulkaninfo segfault on 1.0 devices
Bob Ellison [Tue, 22 Jan 2019 22:32:24 +0000 (15:32 -0700)]
issue 126: fix vulkaninfo segfault on 1.0 devices

We didn't quite get the check on whether a format can be legally
queried on a particular GPU quite right.  We were checking against
the instance version only.  We need to check agains the driver's
supported API version as well.

5 years agovulkaninfo: shorten format dump in console
Petr Kraus [Mon, 21 Jan 2019 23:12:29 +0000 (00:12 +0100)]
vulkaninfo: shorten format dump in console

5 years agovulkaninfo: Make queue families report present support
Petr Kraus [Tue, 22 Jan 2019 02:17:48 +0000 (03:17 +0100)]
vulkaninfo: Make queue families report present support

5 years agovulkaninfo: Properly check vk command error codes
Petr Kraus [Tue, 22 Jan 2019 01:17:50 +0000 (02:17 +0100)]
vulkaninfo: Properly check vk command error codes

5 years agovulkaninfo: Remove non-existent device extension
Petr Kraus [Tue, 22 Jan 2019 01:16:50 +0000 (02:16 +0100)]
vulkaninfo: Remove non-existent device extension

5 years agowinrt: Update runtime license dates
Lenny Komow [Mon, 21 Jan 2019 22:44:05 +0000 (15:44 -0700)]
winrt: Update runtime license dates

5 years agowinrt: Update runtime license
Lenny Komow [Wed, 16 Jan 2019 23:24:52 +0000 (16:24 -0700)]
winrt: Update runtime license

5 years agobuild: Update version in manifest JSON files
Shannon McPherson [Tue, 15 Jan 2019 22:31:44 +0000 (15:31 -0700)]
build: Update version in manifest JSON files

Change-Id: I9616bc29dda4680007da5b4e23fa3c6252401da8

5 years agobuild: Update known good glslang revision
Lenny Komow [Tue, 15 Jan 2019 21:22:04 +0000 (14:22 -0700)]
build: Update known good glslang revision

Change-Id: I09db85f27310a012c177555eed87722cc3e15adc

5 years agoRemove COPYRIGHT.txt
Mark Young [Thu, 10 Jan 2019 00:16:10 +0000 (17:16 -0700)]
Remove COPYRIGHT.txt

This file was not kept up to date.  Any items added that aren't
Apache 2.0 will have their own LICENSE in their source tree.

Change-Id: I8492cabd3f5cc0f52f3d83f004fe52ab49fd5f25

5 years agobuild: Update known-good for 1.1.97 header
Shannon McPherson [Wed, 9 Jan 2019 23:35:43 +0000 (16:35 -0700)]
build: Update known-good for 1.1.97 header

Updated:
- `build-android/vulkan-headers_revision_android`
- `scripts/known_good.json`
- `scripts/kvt_genvk.py`

Change-Id: Ifa3f61bfd50fb15bff122f51edb63108511922d9

5 years agovulkaninfo: Update copyright date to 2019
Jeremy Kniager [Wed, 9 Jan 2019 16:09:02 +0000 (09:09 -0700)]
vulkaninfo: Update copyright date to 2019

Change-Id: Ie4f1aefae4603e6b27ec75b7d7b6a36f8cd94bc3

5 years agovulkaninfo: Add VK_EXT_fragment_density_map
Jeremy Kniager [Mon, 7 Jan 2019 20:27:24 +0000 (13:27 -0700)]
vulkaninfo: Add VK_EXT_fragment_density_map

Added output for the following structures from
extension VK_EXT_fragment_density_map:

    VkPhysicalDeviceFragmentDensityMapFeaturesEXT
    VkPhysicalDeviceFragmentDensityMapPropertiesEXT

Change-Id: I6d9a09a3a1bf889c5e44ac0eff66cdcf572f7b19

5 years agovulkaninfo: Add VK_EXT_scalar_block_layout
Jeremy Kniager [Mon, 7 Jan 2019 18:31:19 +0000 (11:31 -0700)]
vulkaninfo: Add VK_EXT_scalar_block_layout

Added output for the following structure from
extension VK_EXT_scalar_block_layout:

    VkPhysicalDeviceScalarBlockLayoutFeaturesEXT

Change-Id: I63cf81d7f690060a3d1b81c57ac0dc4e3cda457e

5 years agovulkaninfo: Add VK_EXT_transform_feedback
Jeremy Kniager [Thu, 3 Jan 2019 20:12:40 +0000 (13:12 -0700)]
vulkaninfo: Add VK_EXT_transform_feedback

Added output for the following structures from
extension VK_EXT_transform_feedback:

    VkPhysicalDeviceTransformFeedbackFeaturesEXT
    VkPhysicalDeviceTransformFeedbackPropertiesEXT

Change-Id: I60c907a26071ddc315d588b9cdc395f4d3bc446d

5 years agovulkaninfo: Add VK_KHR_shader_atomic_int64
Jeremy Kniager [Thu, 3 Jan 2019 18:10:41 +0000 (11:10 -0700)]
vulkaninfo: Add VK_KHR_shader_atomic_int64

Added output for the following structure from
extension VK_KHR_shader_atomic_int64:

    VkPhysicalDeviceShaderAtomicInt64FeaturesKHR

Change-Id: I2979e656db9268c5a11290bb5c77e1ebd3059ea1

5 years agoicd: Return better size in GetBufferMemoryReq
Karl Schultz [Mon, 31 Dec 2018 18:58:18 +0000 (11:58 -0700)]
icd: Return better size in GetBufferMemoryReq

Track the buffer create info from CreateBuffer so that
GetBufferMemoryRequirements can return an actual size
instead of a hard-coded guess.

Needed to survive VLT setup during GPU validation testing.

5 years agovulkaninfo: minor fix after review
Bob Ellison [Fri, 21 Dec 2018 18:46:44 +0000 (11:46 -0700)]
vulkaninfo: minor fix after review

Changed
    for (unsigned int i = 0,...)
to
    for (uint32_t i i = 0,...)

for consistency with the rest of the file.

5 years agovulkaninfo: only query supported formats
Bob Ellison [Thu, 20 Dec 2018 23:47:38 +0000 (16:47 -0700)]
vulkaninfo: only query supported formats

vulkaninfo must not query formats that are not supported on a
given instance, as this provokes undefined behavior (it could
appear to work, or it could segfault in the driver).

These changes ensure that a format is only queried if it
is supported in either the base Vulkan instance or, if it is an
extension format, if that extension is supported by the Vulkan
instance.

- Moved instance version information to the AppInstance struct
  (initialized by AppCreateInstance()), which makes sense and
  allows lower-level code to determine whether a format is
  supported on the current instance version
- Formats are now encoded with their owning Vulkan version
  and extension name, so they can be checked for validity
  before making a query.

Note that this change can cause behavior changes; instances
that didn't crash on unsupported formats (and thus appeared to
support more formats than they actually did) will no longer
report those formats.  Instances that would segfault when
an unsupported formatn was queried should no longer crash.

5 years agovulkaninfo: Fix merge conflicts in PR #98
Jeremy Kniager [Tue, 18 Dec 2018 17:06:03 +0000 (10:06 -0700)]
vulkaninfo: Fix merge conflicts in PR #98

Fixed some merge conflicts in PR #98 so that it
can be added to vulkaninfo

Change-Id: I24c7110ec77c8b9dabd371dd8435c3d25db24928

5 years agovulkaninfo: Update enums to 1.1.89 headers
Jeff Smith [Wed, 14 Nov 2018 14:37:33 +0000 (08:37 -0600)]
vulkaninfo: Update enums to 1.1.89 headers

5 years agovulkaninfo: Update enums to 1.1.74 headers
Jeff Smith [Wed, 14 Nov 2018 14:24:54 +0000 (08:24 -0600)]
vulkaninfo: Update enums to 1.1.74 headers

Fixes #72