platform/upstream/Vulkan-Tools.git
4 years agocube: Workaround macOS cube issue
Mike Schuchardt [Fri, 26 Jul 2019 14:56:30 +0000 (07:56 -0700)]
cube: Workaround macOS cube issue

Latest version of MoltenVK behaves in an apparently non-conformant way
by not allowing some linear images to be mapped to memory with
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT.  This change sidesteps the issue
by forcing the use of staging buffer for loading textures.

5 years agowinrt: Correct `VulkanRT-License.txt` typo
Shannon McPherson [Wed, 24 Jul 2019 16:08:14 +0000 (10:08 -0600)]
winrt: Correct `VulkanRT-License.txt` typo

Change-Id: I26c1fbdddc8d6f6fc344164de2cc7cfa74c08919

5 years agodoc: Update docs with codegen instructions
Mike Schuchardt [Tue, 23 Jul 2019 20:06:42 +0000 (13:06 -0700)]
doc: Update docs with codegen instructions

5 years agoCI: Add codegen consistency check
Mike Schuchardt [Tue, 23 Jul 2019 18:52:40 +0000 (11:52 -0700)]
CI: Add codegen consistency check

5 years agobuild: CMake/GN changes for pre-generated source
Mike Schuchardt [Tue, 23 Jul 2019 18:12:29 +0000 (11:12 -0700)]
build: CMake/GN changes for pre-generated source

5 years agoicd: Add generated source to repo
Mike Schuchardt [Mon, 22 Jul 2019 23:58:50 +0000 (16:58 -0700)]
icd: Add generated source to repo

5 years agoscripts: Port codegen script from VVL
Mike Schuchardt [Mon, 22 Jul 2019 23:57:15 +0000 (16:57 -0700)]
scripts: Port codegen script from VVL

5 years agoscripts: Fix mock_icd_generator syntax warnings
Mike Schuchardt [Mon, 22 Jul 2019 23:52:06 +0000 (16:52 -0700)]
scripts: Fix mock_icd_generator syntax warnings

5 years agobuild: Update glslang commit ID in known-good
Jeremy Kniager [Mon, 22 Jul 2019 15:01:52 +0000 (09:01 -0600)]
build: Update glslang commit ID in known-good

Change-Id: I7d1031909f91dc14471d41e33bf50bafffaa7c58

5 years agoscripts: Add required depth/stencil resolve props
Mike Schuchardt [Sun, 21 Jul 2019 21:18:44 +0000 (14:18 -0700)]
scripts: Add required depth/stencil resolve props

Spec mandates that at least VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR be
supported for supportedDepthResolveModes and
supportedStencilResolveModes

5 years agobuild: Update known-good files for 1.1.114 header
Shannon McPherson [Mon, 8 Jul 2019 17:00:24 +0000 (11:00 -0600)]
build: Update known-good files for 1.1.114 header

Change-Id: I8dcbd49e7ccc07f0c891d9c303e1dc0d8445f9e8

5 years agobuild: Update cmake_minimum_required(VERSION 3.10.2)
Mike Weiblen [Tue, 16 Jul 2019 21:12:26 +0000 (15:12 -0600)]
build: Update cmake_minimum_required(VERSION 3.10.2)

Change-Id: I193d23da109a81e0b385a3d9fc54a6d266b6d026

5 years agovulkaninfo: Add descriptor indexing feats/props
Tony-LunarG [Tue, 2 Jul 2019 19:40:06 +0000 (13:40 -0600)]
vulkaninfo: Add descriptor indexing feats/props

Change-Id: I7863fb44fbc1e2c7f7833580799db6b8fb229afe

5 years agodocs: Improve instructions for using update_deps.
Jeremy Kniager [Tue, 2 Jul 2019 19:34:43 +0000 (13:34 -0600)]
docs: Improve instructions for using update_deps.
[ci skip]

Same change as KhronosGroup/Vulkan-ValidationLayers#955

Change-Id: Ifdc30a41f4d7f1e4ad9bc887df6f43f5caaa69f9

5 years agobuild: Fix LunarXchange Issue 862
Jeremy Kniager [Tue, 2 Jul 2019 15:47:29 +0000 (09:47 -0600)]
build: Fix LunarXchange Issue 862

Modified MoltenVK build arguments for MacOS from
`MVK_LOGGING_ENABLED=0` to `MVK_CONFIG_LOG_LEVEL=1`.

This allows users to set the logging information they
want when an application is run using MoltenVK.

By default, only errors are logged.

Change-Id: I471fa28e68b5dc68b10ae17858475981158b2a86

5 years agobuild: Update known-good files for 1.1.113 header
Shannon McPherson [Mon, 1 Jul 2019 21:46:44 +0000 (15:46 -0600)]
build: Update known-good files for 1.1.113 header

Change-Id: I3151722ccb8f3c5d918db8ffd701661a33dcf3b6

5 years agocube: Fix DbgMsg() use of varargs
Mike Weiblen [Thu, 27 Jun 2019 21:18:32 +0000 (15:18 -0600)]
cube: Fix DbgMsg() use of varargs

vprintf (not printf) must be used with va_list.

Also moved flush() outside the va_list's scope.

Change-Id: Ib82b9f7e7ec1f954619c3eadb8dcaeb08abf113a

5 years agovulkaninfo: Add more descriptive error message
Jeremy Kniager [Wed, 26 Jun 2019 16:55:29 +0000 (10:55 -0600)]
vulkaninfo: Add more descriptive error message

Issue #207 mentions that one of the main problems users
encounter when troubleshooting is a failure to create a
Vulkan instance, and suggests that a statement be added
to this error message that describes the most common
causes of this problem.

This commit adds this additional statement to the current
error message.

Change-Id: I2fccf00a8d9895a602fad40913f2380fc1c0a862

5 years agobuild: Update known-good files for 1.1.112 header
Shannon McPherson [Tue, 25 Jun 2019 19:08:41 +0000 (13:08 -0600)]
build: Update known-good files for 1.1.112 header

Change-Id: Ibf447e4f562d49bda5ab60b1bdf4ebf71678a6ae

5 years agovulkaninfo: Fix issue 195
Jeremy Kniager [Tue, 25 Jun 2019 15:21:08 +0000 (09:21 -0600)]
vulkaninfo: Fix issue 195

It was suggested that `maxComputeSharedMemorySize`
from VkPhysicalDeviceLimits be displayed as a decimal
instead of a hex number.

Change-Id: I4b5cb61d56adea4e4d8d33619fabc37e359b8e4a

5 years agovulkaninfo: Fix issue 202
Jeremy Kniager [Mon, 17 Jun 2019 20:04:38 +0000 (14:04 -0600)]
vulkaninfo: Fix issue 202

Vulkaninfo was replacing function `snprintf`
with function `_snprintf` on windows.

This seems to be for backwards compatiblity
with VS2013.

`_snprintf` is considered deprecated in VS2015
as `snprintf` is properly implemented.

Since we are dropping compatibility with VS2013 it
seems like this replacement should be removed.

Due to AppVeyor failing to build when this pre-processor
command is removed entirely, the command has been modified
to replace `snprintf` with `_snprintf_s`.

This command should hopefully be removed entirely in a future
commit.

Change-Id: I85f726fcb0a1cfcc902487100d35dc63d2ba00d8

5 years agobuild: Update MoltenVK in known_good.json
Jeremy Kniager [Mon, 17 Jun 2019 15:51:13 +0000 (09:51 -0600)]
build: Update MoltenVK in known_good.json

Updated MoltenVK version in known_good.json
from 1.0.34v -> 1.0.35v

Change-Id: I3c574d22ab98fcf0e3bd0c718a1a3f5a69287b42

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