platform/upstream/Vulkan-Tools.git
6 years agoandroid: Removed building of struct_size helpers
Mark Lobodzinski [Thu, 8 Mar 2018 21:29:38 +0000 (14:29 -0700)]
android: Removed building of struct_size helpers

Change-Id: I2e3fee12a8b25f5ae3251687b64d7359a6572db6

6 years agolayers: Removed build of struct_size helpers
Mark Lobodzinski [Thu, 8 Mar 2018 21:07:22 +0000 (14:07 -0700)]
layers: Removed build of struct_size helpers

These are no longer used in this repository.

Change-Id: I07c5402d3e7f9b4578eabe274d0e7b6b76ca6186

6 years agolayers:Check secondary command buffer renderArea
Tobin Ehlis [Mon, 12 Mar 2018 17:26:39 +0000 (11:26 -0600)]
layers:Check secondary command buffer renderArea

Fixes #2480
Fixes #1501

Add delayed function call to verify secondary command buffer renderArea
against vkCmdClearAttachments() rects at vkCmdExecuteCommands() time.

Updated the lambda function container for delayed secondary command
buffer checks to include a reference to the primary command buffer.
Add lambda call at vkCmdClearAttachments() for secondary command buffer
and pass in primary command buffer reference so that area restriction
can be appropriately checked at vkCmdExecuteCommands() time when
renderArea of renderPass is known.

6 years agolayers:Consistent parens for function names
Tobin Ehlis [Mon, 12 Mar 2018 14:19:33 +0000 (08:19 -0600)]
layers:Consistent parens for function names

Add "()" where missing on a couple of output strings for
vkCmdClearAttachments function.

6 years agolayers: Downgrade maxResourceSize check to warning
Petr Kraus [Wed, 14 Mar 2018 18:53:58 +0000 (19:53 +0100)]
layers: Downgrade maxResourceSize check to warning

6 years agolayers: Update VkViewport check to 1.1
Petr Kraus [Sat, 10 Mar 2018 01:39:47 +0000 (02:39 +0100)]
layers: Update VkViewport check to 1.1

6 years agoloader: Remove old declaration for KHX extension
Lenny Komow [Fri, 9 Mar 2018 17:18:32 +0000 (10:18 -0700)]
loader: Remove old declaration for KHX extension

6 years agoscripts: helper_file_generator.py cleanup
Mike Schuchardt [Fri, 9 Mar 2018 16:02:56 +0000 (09:02 -0700)]
scripts: helper_file_generator.py cleanup

- Remove list as set anti-pattern
- Remove conditional that could never evaluate to False

6 years agoscripts: Merge upstream verbosity changes
Mike Schuchardt [Fri, 9 Mar 2018 15:39:43 +0000 (08:39 -0700)]
scripts: Merge upstream verbosity changes

From Vulkan-Docs /src/spec/genvk.py

6 years agodemos: Fix cube build on android
Mike Schuchardt [Thu, 8 Mar 2018 19:57:02 +0000 (12:57 -0700)]
demos: Fix cube build on android

- Add generated files to include path
- Use messageSeverity to determine android log priority
- Prefix ANativeWindow with struct to match vulkan_android.h

Change-Id: I1c29c41a95614701455074cdf7be49f47505a0fc

6 years agoheader: 1.1.70 update
Mike Schuchardt [Wed, 7 Mar 2018 23:19:13 +0000 (16:19 -0700)]
header: 1.1.70 update

Change-Id: Ifa07a957e3c0e51c9b5c00b6c9d7fff04905c8ab

6 years agoscripts: Roundup strings sizes in struct to multiple of 4
David Pinedo [Wed, 28 Feb 2018 23:20:42 +0000 (16:20 -0700)]
scripts: Roundup strings sizes in struct to multiple of 4

vktrace layer needs strings sizes to be multiple of 4 for
data alignment in the trace file.

6 years agolayers: Fix CmdDispatchBaseKHX rename in PV
Mark Lobodzinski [Thu, 1 Mar 2018 15:50:21 +0000 (08:50 -0700)]
layers: Fix CmdDispatchBaseKHX rename in PV

6 years agolayers: Update unique_objects changes for 1.1
Mark Lobodzinski [Wed, 28 Feb 2018 21:04:56 +0000 (14:04 -0700)]
layers: Update unique_objects changes for 1.1

6 years agolayers: Make unique_objects ID map global
Mark Lobodzinski [Wed, 28 Feb 2018 20:38:45 +0000 (13:38 -0700)]
layers: Make unique_objects ID map global

Increasingly, instance objects are referenced by device-level APIs.
Made unique ID map global, shared across all instances and devices.

Change-Id: I5b62e7b95ec25a2a8b390d46024b43c29f2199ce

6 years agoscripts: Remove unreleased extension names
Mike Schuchardt [Wed, 28 Feb 2018 21:24:26 +0000 (14:24 -0700)]
scripts: Remove unreleased extension names

Change-Id: Ia0270edcd17a8b8a33e390f781b7357208e7a676

6 years agobuild: Avoid using CMAKE_BINARY_DIR
Lenny Komow [Mon, 26 Feb 2018 22:29:58 +0000 (15:29 -0700)]
build: Avoid using CMAKE_BINARY_DIR

Using CMAKE_BINARY_DIR was breaking the use of this repo as a
submodule because the top level binary directory is different when
build as part of another repo.

6 years agolayers: Fix typo in CV downchain call
Mike Schuchardt [Fri, 23 Feb 2018 22:29:23 +0000 (15:29 -0700)]
layers: Fix typo in CV downchain call

Change-Id: I8d7ecbb1f4e63b9c4bc1ee9b53ea65c34fb2352d

6 years agodemos: Fix cube note building on windows
Lenny Komow [Fri, 23 Feb 2018 23:18:36 +0000 (16:18 -0700)]
demos: Fix cube note building on windows

6 years agolayers: Add remaining core_validation aliases
Mike Schuchardt [Fri, 23 Feb 2018 21:14:28 +0000 (14:14 -0700)]
layers: Add remaining core_validation aliases

vkBindBufferMemory2
vkGetBufferMemoryRequirements2
vkGetImageMemoryRequirements2
vkGetImageSparseMemoryRequirements2
vkGetPhysicalDeviceSparseImageFormatProperties2
vkBindImageMemory2

Change-Id: I1fb1a476e680c2d601a9b72029358b8b42950ed1

6 years agodemos: Fix compile error in cube.c
Mike Schuchardt [Fri, 23 Feb 2018 19:44:05 +0000 (12:44 -0700)]
demos: Fix compile error in cube.c

Change-Id: I9ff2429f6f2b79795bbc57e376decae8c0dae630

6 years agohelper: Fix compilation warning
Mark Young [Wed, 21 Feb 2018 22:30:27 +0000 (15:30 -0700)]
helper: Fix compilation warning

Adding vk_enum_string_helper.h produced a warning that
GetPhysDevFeatureString was unused.  Made it inline (as all
the other commands are in that header) and it made the compiler
happy.

Change-Id: I9452ddfc8de4af4c88b95e380b9520d9f59796da

6 years agocube: Use string_VkObjectType
Mark Young [Wed, 21 Feb 2018 22:29:41 +0000 (15:29 -0700)]
cube: Use string_VkObjectType

Use the existing string_VkObjectType utility found in
vk_enum_string_helper.h instead of the manually defined
DebugAnnotObjectToString function.

Change-Id: I9e9ecfc1c512ec1b9b98cce2f846c565ac98ecbf

6 years agocube: Update to use VK_EXT_debug_utils
Mark Young [Fri, 10 Nov 2017 17:05:14 +0000 (10:05 -0700)]
cube: Update to use VK_EXT_debug_utils

Update cube to use VK_EXT_debug_utils instead of
VK_EXT_debug_report.

Change-Id: I238072855abdf09c9d33a66b3a7cc0beecc0e8c7

6 years agolayers: Update VUIDs for 1.1
Mike Schuchardt [Thu, 22 Feb 2018 17:46:31 +0000 (10:46 -0700)]
layers: Update VUIDs for 1.1

- Add new VUIDs to database and vuid_mapping.py
- Remove deleted VUIDs from database
- Update vuid_mapping.py to disregard KHR/KHX suffix
- Update spec.py json comparison to update more fields from existing
  VUIDs and delete entries for removed VUIDs
- Update layers and tests that were pointing to deleted VUIDs to use
  replacements
- Revert vuid_mapping.py and run_all_tests.sh workarounds for undefined
  private VUIDs

Change-Id: Ie6c5b01237d5917be66a35337e3dbaf42fea3b00

6 years agoRevert "loader: Only return ext pointers if ext is enabled"
Lenny Komow [Fri, 23 Feb 2018 18:28:38 +0000 (11:28 -0700)]
Revert "loader: Only return ext pointers if ext is enabled"

This reverts commit 4537090525b430e2bc059cc59c7de3c80a7e7e6e.

6 years agolayers: Bump layer json files to 1.1.69
Lenny Komow [Thu, 22 Feb 2018 20:05:55 +0000 (13:05 -0700)]
layers: Bump layer json files to 1.1.69

6 years agoloader: Fix debug_report not returning NULL
Lenny Komow [Thu, 22 Feb 2018 18:54:18 +0000 (11:54 -0700)]
loader: Fix debug_report not returning NULL

Fix a bug where debug_report would be treated as an unknown extension
if it was used without being enabled.

6 years agoloader: Only return ext pointers if ext is enabled
Lenny Komow [Thu, 22 Feb 2018 18:28:16 +0000 (11:28 -0700)]
loader: Only return ext pointers if ext is enabled

The loader previously returned valid pointers to functions from
VK_KHR_swapchain and VK_KHR_display_swapchain even if the extensions
weren't enabled. This change fixed that.

6 years agoheader: Update to 1.1.69 private header
Mike Schuchardt [Wed, 21 Feb 2018 22:59:17 +0000 (15:59 -0700)]
header: Update to 1.1.69 private header

Change-Id: If9fc0f065f77ecff14123f665e603e6f2595d571

6 years agolayers: add GetDeviceQueue2() support
Yiwei Zhang [Wed, 14 Feb 2018 22:39:46 +0000 (14:39 -0800)]
layers: add GetDeviceQueue2() support

This change add GetDeviceQueue2() support to object tracker and core
validation layers.

6 years agolayers: Fix wrong format specifier in layer log
Lenny Komow [Thu, 15 Feb 2018 18:35:59 +0000 (11:35 -0700)]
layers: Fix wrong format specifier in layer log

6 years agoloader: Fix MSVC uninitialize variable warning
Lenny Komow [Wed, 14 Feb 2018 00:35:28 +0000 (17:35 -0700)]
loader: Fix MSVC uninitialize variable warning

6 years agoloader: Extend pre-instance intercepts for 1.1
Lenny Komow [Tue, 13 Feb 2018 22:58:47 +0000 (15:58 -0700)]
loader: Extend pre-instance intercepts for 1.1

Add the ability to intercept vkEnumerateInstanceVersion through the
pre-instance intercept mechanism

6 years agoscripts: Fix xlib_xrandr platform name
Mike Schuchardt [Wed, 7 Feb 2018 21:47:01 +0000 (14:47 -0700)]
scripts: Fix xlib_xrandr platform name

Change-Id: I3aa8e929d394322ebfcfbf2a59846b2adae057e3

6 years agoDevice group extension rename
Mike Schuchardt [Tue, 6 Feb 2018 23:56:31 +0000 (16:56 -0700)]
Device group extension rename

VK_KHX_device_group/VK_KHX_device_group_creation are now KHR

Change-Id: I2ade2e7162718a4683c9365ae177891285f177b4

6 years agoscripts: Update codegen to work with new aliasing
Mike Schuchardt [Thu, 28 Dec 2017 18:23:48 +0000 (11:23 -0700)]
scripts: Update codegen to work with new aliasing

Change-Id: I3739f7b7b6eb17a5e3e1bc9cc18e74569cb50f95

6 years agoFix vkGetDeviceQueue2 segfault when returned vkQueue is VK_NULL_HANDLE
Tom Cooper [Thu, 25 Jan 2018 14:07:53 +0000 (14:07 +0000)]
Fix vkGetDeviceQueue2 segfault when returned vkQueue is VK_NULL_HANDLE

This affects the Loader.

Change-Id: I05a3feb87781be773f30327601a2bf86a53ae115

6 years agoImplement initial VK_EXT_debug_utils changes
Mark Young [Thu, 9 Nov 2017 17:37:04 +0000 (10:37 -0700)]
Implement initial VK_EXT_debug_utils changes

This affects the loader, scripts, and layers and introduces the
changes to support the VK_EXT_debug_utils extension.

Change-Id: Ia5336f63e85b00f1e59416c06aacd4ae331fd692

6 years agobuild: Bump linux loader version to 1.1
Lenny Komow [Wed, 8 Nov 2017 22:11:00 +0000 (15:11 -0700)]
build: Bump linux loader version to 1.1

6 years agodocs: Update loader doc for 1.0 ICD handling
Lenny Komow [Tue, 7 Nov 2017 18:26:49 +0000 (11:26 -0700)]
docs: Update loader doc for 1.0 ICD handling

The 1.1 loader has to handle 1.0 ICDs specially during instance
creation. This commit documents that behavior.

6 years agoloader: Update 1.0 checking mechanism
Lenny Komow [Tue, 7 Nov 2017 17:42:19 +0000 (10:42 -0700)]
loader: Update 1.0 checking mechanism

The loader will now get vkEnumerateInstanceVersion from the ICD by
calling the ICD's GetInstanceProcAddr function.

6 years agoloader: Disable emulation for 1.1 core functions
Lenny Komow [Fri, 3 Nov 2017 20:37:11 +0000 (14:37 -0600)]
loader: Disable emulation for 1.1 core functions

Disable emulation for physical device functions when they are used
as core 1.1. The emulation will still be used if they are used as the
original instance extensions.

6 years agoloader: Check vkEnumerateInstanceVersion in ICD
Lenny Komow [Fri, 3 Nov 2017 19:14:32 +0000 (13:14 -0600)]
loader: Check vkEnumerateInstanceVersion in ICD

The loader will now check vkEnumerateInstanceVersion in each ICD
before creating an instance to determine if the loader needs to
change the apiVersion field.

6 years agodemos: Update Vulkan Instance Version reporting
Shannon McPherson [Mon, 30 Oct 2017 22:36:40 +0000 (16:36 -0600)]
demos: Update Vulkan Instance Version reporting

6 years agolayers: Enable 1.0 exts moved to 1.1 core
Mark Lobodzinski [Fri, 27 Oct 2017 19:22:23 +0000 (13:22 -0600)]
layers: Enable 1.0 exts moved to 1.1 core

Also plumbed api_version into CV and PV for validation and enabling
the appropriate 1.0 extensions by default in 1.1.

6 years agolayers: Update core_validation for aliases
Mark Lobodzinski [Wed, 25 Oct 2017 22:41:20 +0000 (16:41 -0600)]
layers: Update core_validation for aliases

Also refactored for pre/post architecture.

CreateDescriptorUpdateTemplate[KHR]
DestroyDescriptorUpdateTemplate[KHR]
UpdateDescriptorSetWithTemplate[KHR]
GetPhysicalDeviceQueueFamilyProperties2[KHR]
EnumeratePhysicalDeviceGroups[KHR]

6 years agolayers: Updated unique objects layer for aliases
Mark Lobodzinski [Wed, 25 Oct 2017 22:56:42 +0000 (16:56 -0600)]
layers: Updated unique objects layer for aliases

UpdateDescriptorSetWithTemplate[KHR]
CreateDescriptorUpdateTemplate[KHR]
DestroyDescriptorUpdateTemplate[KHR]

6 years agolayers: Updated Object Tracker layer for aliases
Mark Lobodzinski [Wed, 25 Oct 2017 22:57:04 +0000 (16:57 -0600)]
layers: Updated Object Tracker layer for aliases

GetPhysicalDeviceQueueFamilyProperties2[KHR]

6 years agolayers: Handle aliasing in parameter validation
Mark Lobodzinski [Wed, 25 Oct 2017 21:26:28 +0000 (15:26 -0600)]
layers: Handle aliasing in parameter validation

6 years agoloader: Remove repeated function from vulkan.def
Lenny Komow [Thu, 26 Oct 2017 17:08:27 +0000 (11:08 -0600)]
loader: Remove repeated function from vulkan.def

6 years agoloader: Re-add old 1.1 loader work
Lenny Komow [Wed, 25 Oct 2017 21:26:15 +0000 (15:26 -0600)]
loader: Re-add old 1.1 loader work

vkEnumerateInstanceVersion got removed, as did the checks for layer
versions when we rebased off of github. This adds them back in.

6 years agoloader: Fix crash in VK_KHR_surface
Lenny Komow [Wed, 11 Oct 2017 21:39:38 +0000 (15:39 -0600)]
loader: Fix crash in VK_KHR_surface

The VkSurfaceKHR object in vkGetDeviceGroupSurfacePresentModesKHR was
not getting properly unwrapped. As a result, an invalid surface handle
was being passed to the drivers (usually resulting in a crash).

6 years agoloader: Fix loader using stale VkApplicationInfo
Lenny Komow [Wed, 11 Oct 2017 19:39:33 +0000 (13:39 -0600)]
loader: Fix loader using stale VkApplicationInfo

Fix a bug where the loader could crash because it used a
VkApplicationInfo struct after the struct had gone out of scope.

6 years agoloader: Remove version check from vkCreateInstance
Lenny Komow [Wed, 11 Oct 2017 15:25:19 +0000 (09:25 -0600)]
loader: Remove version check from vkCreateInstance

6 years agoloader: Fix crash with null VkApplicationInfo
Lenny Komow [Wed, 11 Oct 2017 15:20:52 +0000 (09:20 -0600)]
loader: Fix crash with null VkApplicationInfo

Fix a crash when creating an instance where
pCreateInfo->pApplicationInfo is set to null.

6 years agoloader: Fix crash in aliased extensions
Lenny Komow [Tue, 10 Oct 2017 19:50:20 +0000 (13:50 -0600)]
loader: Fix crash in aliased extensions

6 years agoloader: Update loader for Vulkan 1.1
Lenny Komow [Mon, 2 Oct 2017 21:08:53 +0000 (15:08 -0600)]
loader: Update loader for Vulkan 1.1

6 years agoloader: Update functions names
Lenny Komow [Tue, 3 Oct 2017 19:59:21 +0000 (13:59 -0600)]
loader: Update functions names

6 years agoloader: Update vkEnumerateInstanceVersion for 1.1
Lenny Komow [Tue, 3 Oct 2017 16:11:24 +0000 (10:11 -0600)]
loader: Update vkEnumerateInstanceVersion for 1.1

6 years agoloader: Add new core 1.1 entry points
Lenny Komow [Mon, 2 Oct 2017 23:11:05 +0000 (17:11 -0600)]
loader: Add new core 1.1 entry points

6 years agoloader: Fix windows build
Lenny Komow [Mon, 2 Oct 2017 21:58:17 +0000 (15:58 -0600)]
loader: Fix windows build

6 years agoloader: Fix loader marking 1.1 cmds as required
Lenny Komow [Mon, 2 Oct 2017 21:32:55 +0000 (15:32 -0600)]
loader: Fix loader marking 1.1 cmds as required

6 years agoloader: Move manual KHR exts to core
Lenny Komow [Mon, 2 Oct 2017 21:08:53 +0000 (15:08 -0600)]
loader: Move manual KHR exts to core

6 years agoloader: Update vulkan version location
Mark Lobodzinski [Mon, 23 Oct 2017 21:31:56 +0000 (15:31 -0600)]
loader: Update vulkan version location

6 years agoscripts: Update generators for 1.1
Mark Lobodzinski [Tue, 24 Oct 2017 19:41:18 +0000 (13:41 -0600)]
scripts: Update generators for 1.1

6 years agolayers: Fix unique_objects for renamed safe structs
Mark Lobodzinski [Thu, 28 Sep 2017 21:57:07 +0000 (15:57 -0600)]
layers: Fix unique_objects for renamed safe structs

6 years agolayers: Fixed issues due to safe struct renames
Mark Lobodzinski [Thu, 28 Sep 2017 21:18:18 +0000 (15:18 -0600)]
layers: Fixed issues due to safe struct renames

6 years agoscripts: Avoid duplicates in enum string helper
Mark Lobodzinski [Thu, 28 Sep 2017 21:12:02 +0000 (15:12 -0600)]
scripts: Avoid duplicates in enum string helper

6 years agoscripts: Fix loader extension generator
Mark Lobodzinski [Thu, 28 Sep 2017 21:11:38 +0000 (15:11 -0600)]
scripts: Fix loader extension generator

Was incorrectly creating device/instance dispatch tables.

6 years agoscripts: Private repo VUID workaround
Mike Schuchardt [Thu, 20 Jul 2017 17:16:48 +0000 (11:16 -0600)]
scripts: Private repo VUID workaround

Workarounds for private codegen and tests so they can run without having
to update the VUID mapping or database

Change-Id: Idf71df859f55888103f93f863fc73a0c7a01de2c

6 years agoheader: KHX->KHR name changes
Mark Lobodzinski [Mon, 18 Sep 2017 22:28:27 +0000 (16:28 -0600)]
header: KHX->KHR name changes

6 years agoscripts: Update lvl_genvk.py with 1.1 changes
Mark Lobodzinski [Mon, 18 Sep 2017 21:13:54 +0000 (15:13 -0600)]
scripts: Update lvl_genvk.py with 1.1 changes

6 years agoscripts: Allow for skipping version_1_1 features
Mark Lobodzinski [Mon, 18 Sep 2017 20:15:09 +0000 (14:15 -0600)]
scripts: Allow for skipping version_1_1 features

Treat 1.1 features as 1.0, instead of as an extension.

6 years agodocs: Update Contributing.md for msg output info
Mark Lobodzinski [Tue, 6 Mar 2018 15:12:19 +0000 (08:12 -0700)]
docs: Update Contributing.md for msg output info

Change-Id: Iab9831c798970334808c5d0784e1e5128f05c6f6

6 years agovulkaninfo: Add extension output
Jeremy Kniager [Tue, 27 Feb 2018 23:50:02 +0000 (16:50 -0700)]
vulkaninfo: Add extension output

Added output for extension structures:

VkPhysicalDevice16BitStorageFeaturesKHR
VkPhysicalDeviceSamplerYcbcrConversionFeaturesKHR
VkPhysicalDeviceVariablePointerFeaturesKHR
VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT
VkPhysicalDeviceBlendOperationAdvancedProper-
tiesEXT
VkPhysicalDevicePointClippingPropertiesKHR
VkPhysicalDevicePushDescriptorPropertiesKHR
VkPhysicalDeviceDiscardRectanglePropertiesEXT.

Change-Id: I5718ab765f48fb0d65ddecd6718f0c14e814e715

6 years agolayers: Add support for StorageBuffer storage class
Chris Forbes [Wed, 7 Mar 2018 20:57:48 +0000 (12:57 -0800)]
layers: Add support for StorageBuffer storage class

Add basic support for storage buffers using the StorageBuffer storage
class rather than UniformConstant + BufferBlock decoration.

6 years agolayers: Require appropriate feature enabled for writable descriptors
Chris Forbes [Wed, 7 Mar 2018 19:38:08 +0000 (11:38 -0800)]
layers: Require appropriate feature enabled for writable descriptors

6 years agolayers: Determine whether a shader uses any writable descriptors
Chris Forbes [Wed, 7 Mar 2018 19:37:45 +0000 (11:37 -0800)]
layers: Determine whether a shader uses any writable descriptors

6 years agolayers: Param validation checks multiplane bits
Dave Houlton [Fri, 2 Feb 2018 23:18:52 +0000 (16:18 -0700)]
layers: Param validation checks multiplane bits

Update parameter validation checks to recognize the new aspect flag
bits added by VK_KHR_sampler_ycbcr_conversion extension
(VK_IMAGE_ASPECT_PLANE_n_BIT_KHR). Update core validation checks to
avoid false positives when copying multiplane images.

Change-Id: I6fb19ff76386ce55f3b44b0301ba7cd7f7e88547

6 years agolayers: Cleanup naming for layout compatibiity
John Zulauf [Tue, 6 Mar 2018 23:44:43 +0000 (16:44 -0700)]
layers: Cleanup naming for layout compatibiity

Type and variable names have been clarified for the pipeline layout
array of descriptor set layouts based on reviewer feedback.

Change-Id: I6b191b2121db87285f7fd50810991340c02475c4

6 years agolayers: Improve pipeline layout compat updates
John Zulauf [Fri, 16 Feb 2018 20:09:39 +0000 (13:09 -0700)]
layers: Improve pipeline layout compat updates

Replaced existing "compatible for set N" and descriptor set binding
update/disturb logic with one using the cannonical form dictionaries and
implementing all of the disturb before and after rules.  Also applied
this update/disturb logic to PushDescriptors recording.

Change-Id: I950c8e5d56c2dbc81fc52136af5a22882cfbc7a4

6 years agolayers: Add canonical/unique ID to pipeline layout
John Zulauf [Fri, 16 Feb 2018 20:08:47 +0000 (13:08 -0700)]
layers: Add canonical/unique ID to pipeline layout

Add unique ID's to pipeline layout needed for pipeline layout
compatibilty revamp in subsequent commit.  Refactor unique ID support
into common Dictionary implementation.

Change-Id: I0d864c8ef3b3406d6444aed4d73078d25d5eb26f

6 years agolayers: Store PushConstant ranges in dictionary
John Zulauf [Fri, 16 Feb 2018 20:07:24 +0000 (13:07 -0700)]
layers: Store PushConstant ranges in dictionary

For rapid compatiblity checks, create unique ID's for PushConstant
ranges.

Change-Id: Ie33372e2428e453e610e292b2917801225c11020

6 years agolayers: Give compatible DSL unique ids
John Zulauf [Fri, 16 Feb 2018 20:00:34 +0000 (13:00 -0700)]
layers: Give compatible DSL unique ids

Store compatible DescriptorSetLayout definitions in a dictionary with
unique IDs.  Use IDs for trivial accept compatibility validation.

Change-Id: I1085a354d36d1a733f79adb4459decf8cf0a55c1

6 years agolayers: Split DescriptorSetLayout data structure
John Zulauf [Fri, 16 Feb 2018 19:58:37 +0000 (12:58 -0700)]
layers: Split DescriptorSetLayout data structure

In preparing for use of "common definiton" id's split the
DescriptorSetLayout data structure into handle specific and common (def)
components.  Object interface is preserved.

Change-Id: I5c6b1e726aa70de548c65a5f5ad08726b0a7507b

6 years agolayers/vk_layer_config.cpp: fix win32 include case
Martin Herkt [Tue, 6 Mar 2018 21:44:13 +0000 (22:44 +0100)]
layers/vk_layer_config.cpp: fix win32 include case

Fixes mingw-w64 compilation on case-sensitive file systems.

6 years agodocs: Update brew package list
Mike Schuchardt [Wed, 7 Mar 2018 00:39:05 +0000 (17:39 -0700)]
docs: Update brew package list

Starting around Feb 27 2018, "python" installs python 3.x instead of
2.x.  Also remove git which should be present from the Xcode command
line tools and python2 which should be present in the base macOS
install.

6 years agotests: Add unit tests for dedicated memory binding
John Zulauf [Fri, 2 Mar 2018 16:24:43 +0000 (09:24 -0700)]
tests: Add unit tests for dedicated memory binding

Added unit tests for the following valid usage checks w.r.t. binding
dedicated allocations to buffers and images.

VALIDATION_ERROR_17000bc8 VUID-vkBindBufferMemory-memory-01508
VALIDATION_ERROR_17400bca VUID-vkBindImageMemory-memory-01509

As same code path checks the BindImage2/BufferMemory2, but has no
matching valid usage, no tests are added for those cases.

Change-Id: Id8845d3cdb85731142ca0dca381a5e9157118a25

6 years agolayers: Add VU checks for dedicated buffers/images
John Zulauf [Fri, 2 Mar 2018 16:13:09 +0000 (09:13 -0700)]
layers: Add VU checks for dedicated buffers/images

Add validation for the following valid usage for binding dedicated
allocations to buffers and images.

VALIDATION_ERROR_17000bc8    VUID-vkBindBufferMemory-memory-01508
VALIDATION_ERROR_17400bca    VUID-vkBindImageMemory-memory-01509

The same code path checks the BindImage2/BufferMemory2, but there are no
matching VUID at this time.

Change-Id: I8b700059d8c0acdfabf0b30be3dca20f616b3be1

6 years agomacOS: Add macOS support
Karl Schultz [Tue, 12 Dec 2017 15:33:01 +0000 (10:33 -0500)]
macOS: Add macOS support

6 years agolayers:Add VUIDs for VK_KHR_incremental_present
Tobin Ehlis [Fri, 2 Mar 2018 14:43:50 +0000 (07:43 -0700)]
layers:Add VUIDs for VK_KHR_incremental_present

Ran across this old TODO when cleaning up branches. Add in the
appropriate VUIDs, update DB, and kill TODO comment.

6 years agobuild: Fix -Wmicrosoft-cast warnings with clang-cl
Nico Weber [Thu, 1 Mar 2018 14:55:46 +0000 (09:55 -0500)]
build: Fix -Wmicrosoft-cast warnings with clang-cl

MSVC allows implicit conversion from function pointers to void*.
The C++ standard doesn't allow this, and clang-cl emits a warning
when this is done.  This change fixes these warnings in
Vulkan-LoaderAndValidationLayers.

Arguably, loader_platform_get_proc_address() should return a
FARPROC so that the compiler can help checking calling conventions,
but this is the simplest fix that unblocks us.

This is needed for https://crbug.com/550065

6 years agotests: Add tests for vkCmdSetScissor
Petr Kraus [Tue, 27 Feb 2018 20:20:23 +0000 (21:20 +0100)]
tests:  Add tests for vkCmdSetScissor

+ increase coverage of `VkRect2D` tests.

6 years agolayers: Rewrite pv_vkCmdSetScissor checks
Petr Kraus [Tue, 27 Feb 2018 20:15:55 +0000 (21:15 +0100)]
layers: Rewrite pv_vkCmdSetScissor checks

- tweaks to completeness, correctness and quality of msg logs
- add `multiViewport` related check
- protect against `NULL`  ptr `pScissors`
- make overflow check more robust (remove u32->i32 cast)
- correct veid db

6 years agotests: Add missing dyn. multiVieport tests in db
Petr Kraus [Tue, 27 Feb 2018 20:00:14 +0000 (21:00 +0100)]
tests: Add missing dyn. multiVieport tests in db

6 years agolayers: Conform to gstyle in pv_vkCmdSetVieport
Petr Kraus [Tue, 27 Feb 2018 19:51:20 +0000 (20:51 +0100)]
layers: Conform to gstyle in pv_vkCmdSetVieport

6 years agolayers: Make unique_objects ID map global
Mark Lobodzinski [Wed, 28 Feb 2018 20:38:45 +0000 (13:38 -0700)]
layers: Make unique_objects ID map global

Increasingly, instance objects are referenced by device-level APIs.
Made unique ID map global, shared across all instances and devices.

Change-Id: I5b62e7b95ec25a2a8b390d46024b43c29f2199ce

6 years agoscripts: Mod spec.py to use local validusage.json
Mark Lobodzinski [Thu, 1 Mar 2018 17:25:58 +0000 (10:25 -0700)]
scripts: Mod spec.py to use local validusage.json

This script by default used the latest version of validusage.json from
the web. Changed to use the local copy checked into the repo. Used the
json-file option to fetch from a non-default location, removed the
-json arg and the URL option entirely.

Change-Id: Id088b08c8e66a3cdfca2b9e771797bffe941e5d3

6 years agoscripts: Add validusage.json to LVL repo
Mark Lobodzinski [Tue, 27 Feb 2018 16:19:15 +0000 (09:19 -0700)]
scripts: Add validusage.json to LVL repo

In the future, this file will be updated as part of the Vulkan
header update process, and will be used as part of managing VUID
identifiers and lifetimes.

Change-Id: I6e29c1148e8752147310649a5ccfd99f385c0f46