platform/upstream/Vulkan-Tools.git
7 years agoRemove last cmd machinery
Chris Forbes [Fri, 16 Jun 2017 23:30:28 +0000 (16:30 -0700)]
Remove last cmd machinery

This isn't useful now.

7 years agolayers: Split CB_INVALID state
Chris Forbes [Fri, 16 Jun 2017 22:51:00 +0000 (15:51 -0700)]
layers: Split CB_INVALID state

There are really two states here:
- Had a complete recording that was valid at some point, but not now.
- Fouled during recording

7 years agolayers: Move validate_functions clear into resetCB
Chris Forbes [Fri, 16 Jun 2017 22:14:46 +0000 (15:14 -0700)]
layers: Move validate_functions clear into resetCB

7 years agolayers: Remove dead TODO for MT/CV merge
Chris Forbes [Fri, 16 Jun 2017 21:32:13 +0000 (14:32 -0700)]
layers: Remove dead TODO for MT/CV merge

7 years agobuild: Enable linux 32-bit builds with ASFLAGS
Lenny Komow [Fri, 16 Jun 2017 17:14:31 +0000 (11:14 -0600)]
build: Enable linux 32-bit builds with ASFLAGS

Change-Id: Ic88fdb9d6c0f23a0b345c82852826a9c1abb8097

7 years agolayers: Remove debug code from vk_layer_table.cpp
Mark Lobodzinski [Fri, 16 Jun 2017 16:21:19 +0000 (10:21 -0600)]
layers: Remove debug code from vk_layer_table.cpp

Change-Id: I146461055a1f925ed17c1433c8451aa8a65c5578

7 years agolayers: Fix memory leak in instance destroy_dispatch_table
Józef Kucia [Fri, 16 Jun 2017 09:52:21 +0000 (11:52 +0200)]
layers: Fix memory leak in instance destroy_dispatch_table

Change-Id: I8152960f30f73a997386aa9bf3561d2e0e8b408d

7 years agolayers: Fix memory leak in device destroy_dispatch_table
Józef Kucia [Fri, 16 Jun 2017 09:52:21 +0000 (11:52 +0200)]
layers: Fix memory leak in device destroy_dispatch_table

Change-Id: I14aa005db87caab3cbb28a4e06b1d2a76c931341

7 years agobuild: Do not overwrite CMAKE_ASM-ATT_FLAGS
Józef Kucia [Fri, 16 Jun 2017 11:28:14 +0000 (13:28 +0200)]
build: Do not overwrite CMAKE_ASM-ATT_FLAGS

Allows passing flags to assembler in order to build 32-bit targets
on 64-bit platforms.

A 32-bit build can be produced by passing -DCMAKE_ASM-ATT_FLAGS=--32
to cmake.

7 years agoscripts:Include string.h in ext helper
Tobin Ehlis [Wed, 14 Jun 2017 15:43:04 +0000 (09:43 -0600)]
scripts:Include string.h in ext helper

vk_extension_helper.h uses strcmp so add include of string.h to make
sure this dependency is correctly met.

7 years agolayers: Clean up missing checks list for vkCreateBuffer
Chris Forbes [Wed, 14 Jun 2017 19:38:01 +0000 (12:38 -0700)]
layers: Clean up missing checks list for vkCreateBuffer

7 years agolayers: Allow suppression of doctest output
Mark Lobodzinski [Mon, 12 Jun 2017 18:02:38 +0000 (12:02 -0600)]
layers: Allow suppression of doctest output

Added checking in the doc validator script to look for a 'terse_mode'
option which suppresses its informational/warning messages.

Change-Id: I986fb6070b0de53d56e45f5da4b05211203a1b8e

7 years agoloader: Fix alloc issue
Mark Young [Thu, 15 Jun 2017 14:36:58 +0000 (08:36 -0600)]
loader: Fix alloc issue

We were allocating the wrong struct for the dispatch table object
when creating the instance.  This left us using invalid memory
when using the physical device extension trampolines.

Change-Id: I9939a8c9fe320b0d07592ab4beb5b6faaba40383

7 years agobuild: Fix ninja build
Lenny Komow [Wed, 14 Jun 2017 21:08:45 +0000 (15:08 -0600)]
build: Fix ninja build

A previous change of mine broke the ninja build in the loader. This
commit resolves that by fixing the include path

Change-Id: Iaabf3488b323bb3d2d0e40a7d555769c528e61e3

7 years agodemos: Modify correct uniform buffer for next frame
Tony Barbour [Wed, 14 Jun 2017 17:59:55 +0000 (11:59 -0600)]
demos: Modify correct uniform buffer for next frame

Change-Id: I78b8f5ef63fb2c14a3ce431f3e6f6a809e65972f

7 years agolayers: Remove dead comment about interface block handling
Chris Forbes [Wed, 14 Jun 2017 00:36:26 +0000 (17:36 -0700)]
layers: Remove dead comment about interface block handling

7 years agoloader: Fix unknown phys dev trampolines on linux
Lenny Komow [Fri, 9 Jun 2017 21:21:06 +0000 (15:21 -0600)]
loader: Fix unknown phys dev trampolines on linux

Change-Id: I6a8de7feb44587601cc72342f996a26f8ae6bcd8

7 years agoloader: Fix unknown phys dev trampolines on win32
Lenny Komow [Thu, 8 Jun 2017 22:41:02 +0000 (16:41 -0600)]
loader: Fix unknown phys dev trampolines on win32

Convert unknown physical device extension trampolines to assembly
on windows. This is necessary because the previous method relied on
compiler optimizations that were not being run by MSVC, even with
full optimizations enabled.

Change-Id: Ibefa6ed24f8c91b1e723fab9c1cfd3039fabd64b

7 years agolayers: Fix SC interface matching over complex types
Chris Forbes [Tue, 13 Jun 2017 20:59:41 +0000 (13:59 -0700)]
layers: Fix SC interface matching over complex types

7 years agolayers: Use copies of layout data for descriptorsets
Mark Lobodzinski [Tue, 13 Jun 2017 19:00:05 +0000 (13:00 -0600)]
layers: Use copies of layout data for descriptorsets

DescriptrSets used pointers to descriptorsetlayout data, which caused
invalid references if the layouts were deleted before the descriptor
sets. Changed the layer to copy the data.

Change-Id: I671f1efed2aa0986f3a370b51f2f96c07b555af7

7 years agoexternal: update external revisions
Jeremy Hayes [Mon, 12 Jun 2017 21:25:25 +0000 (15:25 -0600)]
external: update external revisions

Change-Id: I076eb49526ea8b54bde2d584c5779c8251e56a3e

7 years agolayers: Use correct tracking for display planes query
Chris Forbes [Mon, 12 Jun 2017 22:45:11 +0000 (15:45 -0700)]
layers: Use correct tracking for display planes query

7 years agolayers: Untangle validate & update in CmdCopyQueryPoolResults
Chris Forbes [Mon, 12 Jun 2017 19:51:32 +0000 (12:51 -0700)]
layers: Untangle validate & update in CmdCopyQueryPoolResults

7 years agolayers: Split validate & update of CmdWriteTimestamp
Chris Forbes [Mon, 12 Jun 2017 19:46:39 +0000 (12:46 -0700)]
layers: Split validate & update of CmdWriteTimestamp

7 years agolayers: Split validate & update of CmdEndQuery
Chris Forbes [Mon, 12 Jun 2017 19:46:20 +0000 (12:46 -0700)]
layers: Split validate & update of CmdEndQuery

7 years agolayers: Untangle validate & update of CmdBeginQuery
Chris Forbes [Mon, 12 Jun 2017 19:41:47 +0000 (12:41 -0700)]
layers: Untangle validate & update of CmdBeginQuery

7 years agolayers: Convert all the std::bind to lambdas
Chris Forbes [Mon, 12 Jun 2017 18:40:36 +0000 (11:40 -0700)]
layers: Convert all the std::bind to lambdas

7 years agolayers: Untangle validateQuery some
Chris Forbes [Mon, 12 Jun 2017 18:30:24 +0000 (11:30 -0700)]
layers: Untangle validateQuery some

7 years agolayers: Fix parameter order for validateQuery
Chris Forbes [Mon, 12 Jun 2017 18:20:45 +0000 (11:20 -0700)]
layers: Fix parameter order for validateQuery

This was reversed from every case of these two parameters in the API,
which was confusing.

7 years agolayers: Untangle validate from side effects in CmdResetQueryPool
Chris Forbes [Mon, 12 Jun 2017 18:17:21 +0000 (11:17 -0700)]
layers: Untangle validate from side effects in CmdResetQueryPool

7 years agobuild: Add CMake flag to suppress LVL content
Karl Schultz [Mon, 12 Jun 2017 17:23:57 +0000 (11:23 -0600)]
build: Add CMake flag to suppress LVL content

Add CMake flag INSTALL_LVL_FILES (default ON) that when
set to OFF, suppresses the installation of LVL artifacts
when running "make install" on Linux.

This flag doesn't have much use in the LVL repo because
when turned off, CMake won't generate an install target
in the makefiles.

However, for the downstream VulkanTools and VulkanSamples
repos, it can be useful to avoid installing LVL files on
top of files that may have already been installed from
a previous "make install" installation of the LVL repo.

An example of such a use case would be the desire to
have a more up-to-date version of LVL on the system
than the one last merged into the downstream repo.

This new flag is meant to address the need mentioned in
LVL Pull Request #1844.

Change-Id: I421f37ea4e885fbf0a268eff363a28f0537b1953

7 years agobuild: Install smoketest with make install
Karl Schultz [Mon, 12 Jun 2017 17:03:46 +0000 (11:03 -0600)]
build: Install smoketest with make install

smoketest is a standalone app that does not need
additional resources like textures or shader programs.

Change-Id: I335c0baad82343ffd9ff03763c418df11dcc385d

7 years agolayers: Add in missing CreatDevice physdev obj check
Mark Lobodzinski [Mon, 12 Jun 2017 16:19:26 +0000 (10:19 -0600)]
layers: Add in missing CreatDevice physdev obj check

Prevents doc validator from failing.

Change-Id: I0e70da954f0a7d7ed4a54d4bcefe996a6cc9cfb3

7 years agoscripts:Add includes to extension helper
Tobin Ehlis [Fri, 9 Jun 2017 21:46:14 +0000 (15:46 -0600)]
scripts:Add includes to extension helper

Generated extension helper has dependencies on vulkan.h and
utility (for std::pair) that weren't declared.

7 years agolayers: Remove swapchain json files
Mark Lobodzinski [Fri, 9 Jun 2017 23:20:23 +0000 (17:20 -0600)]
layers: Remove swapchain json files

Change-Id: I0e513ed3054d0d5719ba95b198a489814262b138

7 years agodocs: Remove swapchain refs from docs/text files
Mark Lobodzinski [Fri, 9 Jun 2017 23:19:12 +0000 (17:19 -0600)]
docs: Remove swapchain refs from docs/text files

Change-Id: I88d9c5ae82159ad6b1976b0b498fbe4ee7f5e2d5

7 years agolayers: Remove obsolete entries from layer config
Mark Lobodzinski [Fri, 9 Jun 2017 23:15:11 +0000 (17:15 -0600)]
layers: Remove obsolete entries from layer config

Change-Id: Idd86d217020047efabc4634bfdb441f238a07519

7 years agolayers: Remove swapchain source and header files
Mark Lobodzinski [Fri, 9 Jun 2017 23:12:48 +0000 (17:12 -0600)]
layers: Remove swapchain source and header files

Change-Id: Ifdaa3136883b1129cc435509bf9288b1b5ddf723

7 years agolayers: Remove swapchain.cpp from vuid validator
Mark Lobodzinski [Fri, 9 Jun 2017 23:11:07 +0000 (17:11 -0600)]
layers: Remove swapchain.cpp from vuid validator

Change-Id: I67301721b064cbc4f3d2a55ff42e10a014d86f3c

7 years agobuild: Remove swapchain layer build from cmake
Mark Lobodzinski [Fri, 9 Jun 2017 23:07:24 +0000 (17:07 -0600)]
build: Remove swapchain layer build from cmake

Also removed from android makefiles.

Change-Id: Ib4be1c737e9bd9fda21210ed7b234b9242b7b8f5

7 years agodemos: Remove swapchain layer from demos
Mark Lobodzinski [Fri, 9 Jun 2017 23:02:11 +0000 (17:02 -0600)]
demos: Remove swapchain layer from demos

Change-Id: I8628686d3caad6bed2261431776ac9a55d0c076f

7 years agoloader: Change std_val to ignore swapchain layer
Mark Lobodzinski [Fri, 9 Jun 2017 22:54:48 +0000 (16:54 -0600)]
loader: Change std_val to ignore swapchain layer

Change-Id: I560dda7156d8550af6b7073eb7fcd0a14aa97131

7 years agolayers: Move remaining Swapchain checks into CV
Mark Lobodzinski [Fri, 9 Jun 2017 22:35:43 +0000 (16:35 -0600)]
layers: Move remaining Swapchain checks into CV

Also refactored modified routines for pre/post call structure.

Change-Id: I192e11c1d04effa8d2f3478c1341f6eedea7138a

7 years agoloader: replace UTF-8 “” with "
Nekotekina [Sun, 11 Jun 2017 10:13:07 +0000 (13:13 +0300)]
loader: replace UTF-8 “” with "

7 years agolayers: Move validation of CreateShaderModule
Chris Forbes [Fri, 9 Jun 2017 21:42:56 +0000 (14:42 -0700)]
layers: Move validation of CreateShaderModule

Now we have no spirv details left in core_validation.cpp

7 years agolayers: Add new source file to stats script
Chris Forbes [Fri, 9 Jun 2017 22:41:57 +0000 (15:41 -0700)]
layers: Add new source file to stats script

Missed this one.

7 years agolayers: Move shader validation plumbing out into own file
Chris Forbes [Fri, 9 Jun 2017 19:09:45 +0000 (12:09 -0700)]
layers: Move shader validation plumbing out into own file

7 years agolayers: Rename whitelist checking routines in UO
Mark Lobodzinski [Fri, 9 Jun 2017 15:51:34 +0000 (09:51 -0600)]
layers: Rename whitelist checking routines in UO

Change-Id: Ifa1f5a8ad95c9c2578d5444764f66c5f552078e8

7 years agolayers: Unique objects GPA handling updates
Mark Lobodzinski [Wed, 7 Jun 2017 22:04:50 +0000 (16:04 -0600)]
layers: Unique objects GPA handling updates

Change-Id: Id14c4b5ecb96eed9091ee13aceeb1701adb1f511

7 years agoscripts:Add header protection to dispatch helper
Tobin Ehlis [Fri, 9 Jun 2017 14:30:46 +0000 (08:30 -0600)]
scripts:Add header protection to dispatch helper

7 years agolayers: Remove unused PV routines
Mark Lobodzinski [Wed, 7 Jun 2017 20:05:37 +0000 (14:05 -0600)]
layers: Remove unused PV routines

Change-Id: I0b4a2d1db79a00adca9159345402717d8aafab1b

7 years agolayers: Make PV GPA handling more consistent
Mark Lobodzinski [Wed, 7 Jun 2017 20:00:31 +0000 (14:00 -0600)]
layers: Make PV GPA handling more consistent

Change-Id: I28d4642ca924928b9a76d6ddeb3a4e9ef106710b

7 years agolayers: Simplify threadchecker GPA handling
Mark Lobodzinski [Wed, 7 Jun 2017 19:08:41 +0000 (13:08 -0600)]
layers: Simplify threadchecker GPA handling

Change-Id: I11cdc2f6524926714d22abd08fba0a670a3a4a97

7 years agolayers: Remove dead/unused object_tracker functions
Mark Lobodzinski [Wed, 7 Jun 2017 17:00:23 +0000 (11:00 -0600)]
layers: Remove dead/unused object_tracker functions

Change-Id: If0acd6013b205be973db334f874408d3f4e06c35

7 years agolayers: Remove extension enable checks from OT
Mark Lobodzinski [Wed, 7 Jun 2017 16:52:27 +0000 (10:52 -0600)]
layers: Remove extension enable checks from OT

Change-Id: I926836e429a2f38c35291702ab9f71b6d1834d7f

7 years agolayers: Simplfy object_tracker GetProcAddr handling
Mark Lobodzinski [Wed, 7 Jun 2017 16:38:23 +0000 (10:38 -0600)]
layers: Simplfy object_tracker GetProcAddr handling

Change-Id: Ie38e89f67b293cdfda3ade5ce979464206145226

7 years agolayers: Update subrange checks+tests to new VUIDs
Petr Kraus [Thu, 25 May 2017 23:20:04 +0000 (01:20 +0200)]
layers: Update subrange checks+tests to new VUIDs

i.e. disambiguate extension VUIDs from similar VUID in core

7 years agolayers: Fix some valgrind issues
Chris Forbes [Tue, 6 Jun 2017 23:05:26 +0000 (16:05 -0700)]
layers: Fix some valgrind issues

7 years agolayers: Fix leak of descriptor pool states
Gabríel Arthúr Pétursson [Sat, 3 Jun 2017 23:49:33 +0000 (23:49 +0000)]
layers: Fix leak of descriptor pool states

7 years agolayers: Use unique_ptr for descriptor set layout map
Gabríel Arthúr Pétursson [Sat, 3 Jun 2017 23:48:15 +0000 (23:48 +0000)]
layers: Use unique_ptr for descriptor set layout map

This fixes a leak where PostCallRecordDestroyDescriptorSetLayout erases
from the map without calling delete on the erased element.

7 years agolayers: Free pipeline state memory in vkDestroyPipeline
Gabríel Arthúr Pétursson [Sat, 3 Jun 2017 23:39:00 +0000 (23:39 +0000)]
layers: Free pipeline state memory in vkDestroyPipeline

Pipeline states are allocated in vkCreateGraphicsPipelines and
vkCreateComputePipelines.

7 years agolayers: Destroy physical devices in object tracker's vkDestroyInstance
Gabríel Arthúr Pétursson [Sat, 3 Jun 2017 23:33:57 +0000 (23:33 +0000)]
layers: Destroy physical devices in object tracker's vkDestroyInstance

The objects are allocated in EnumeratePhysicalDevices, but were never
destroyed after use.

7 years agolayers: Free per-device and -instance data on destroy
Gabríel Arthúr Pétursson [Sat, 3 Jun 2017 23:27:59 +0000 (23:27 +0000)]
layers: Free per-device and -instance data on destroy

Instance and device data are allocated by the first call to
GetLayerDataPtr in the corresponding vkCreate call. We need to delete
them when we're done with them. Introduce a FreeLayerDataPtr helper
function that assists with this task.

Deletes for dispatch tables were missing in a few places too. Add them.

7 years agolayers: Remove dead functions from core_validation
Mark Lobodzinski [Tue, 6 Jun 2017 14:36:47 +0000 (08:36 -0600)]
layers: Remove dead functions from core_validation

Change-Id: Ifb2d79136bba86bb6655f400a2e46cf23e81dfe3

7 years agolayers: Clean up core_validation GPA def & handling
Mark Lobodzinski [Wed, 24 May 2017 20:42:48 +0000 (14:42 -0600)]
layers: Clean up core_validation GPA def & handling

Got rid of artificially separations in calling GetProcAddr, remove
ext enable-checking at GPA-time -- this happens in CV.

Change-Id: I89815c86d7f9187537efd3568edd11a9ffffa44f

7 years agolayers: Remove unused extension enable data structs
Mark Lobodzinski [Fri, 2 Jun 2017 21:10:13 +0000 (15:10 -0600)]
layers: Remove unused extension enable data structs

Change-Id: Id70d38c4e2d6f0d78b7e2d6e2108b0f39f3e99db

7 years agolayers: Unify extension enable tracking
Mark Lobodzinski [Thu, 1 Jun 2017 21:10:13 +0000 (15:10 -0600)]
layers: Unify extension enable tracking

Switch parameter validation code-generated extension dependency checks
to use the existing data in vk_extension_helper.h.

Change-Id: I6e3c83f68430c1d3de915e05a84944782b4a55a2

7 years agolayers: Rename PV device extension enables
Mark Lobodzinski [Thu, 1 Jun 2017 14:44:53 +0000 (08:44 -0600)]
layers: Rename PV device extension enables

Change-Id: I4078b279dd812694c358fdcc9f23f5620befaca0

7 years agolayers: Remove device_extensions.h from repo
Mark Lobodzinski [Thu, 1 Jun 2017 14:18:58 +0000 (08:18 -0600)]
layers: Remove device_extensions.h from repo

Replaced by code-generated vk_extension_helper.h

Change-Id: I399181eb118db1077cf6681951a68ed0bf4622aa

7 years agolayers: Move PV to use new extension helper
Mark Lobodzinski [Thu, 1 Jun 2017 21:09:55 +0000 (15:09 -0600)]
layers: Move PV to use new extension helper

Change-Id: Ia11632d241b0c717364cc8a2a26d3daaa66bcde5

7 years agolayers: Remove device_extensions.h from unique objs
Mark Lobodzinski [Thu, 1 Jun 2017 14:10:41 +0000 (08:10 -0600)]
layers: Remove device_extensions.h from unique objs

Was not being used.

Change-Id: I498b40bd0ee29d4e1ef478b0570947ef2315144e

7 years agolayers: Renamed extensions struct for devices in CV
Mark Lobodzinski [Tue, 6 Jun 2017 19:43:09 +0000 (13:43 -0600)]
layers: Renamed extensions struct for devices in CV

Struct contains instance and device extensions, changed name to cover
both.

Change-Id: I34d315b02b426673acb4fc069d8a6a4112f12178

7 years agolayers: Move CV to use new extension helper
Mark Lobodzinski [Thu, 1 Jun 2017 13:56:38 +0000 (07:56 -0600)]
layers: Move CV to use new extension helper

Change-Id: Idb18d0f358fd359c1c5862fba394c833e2fa13f1

7 years agobuild: Add extension helper generation to cmake
Mark Lobodzinski [Thu, 1 Jun 2017 13:46:20 +0000 (07:46 -0600)]
build: Add extension helper generation to cmake

Change-Id: Id93ead148d5b0beb23ee5d9f1bc7e8fc727aa46e

7 years agoscripts: Add codegen for vk_extension_helper.h
Mark Lobodzinski [Thu, 1 Jun 2017 13:42:13 +0000 (07:42 -0600)]
scripts: Add codegen for vk_extension_helper.h

This file replaces device_extensions.h and will help to unify
extension enable handling across the validation layers.

Change-Id: I00eb187423e5d912bae64c0e026f34496be185de

7 years agoscripts: Add generator options for extension helper
Mark Lobodzinski [Thu, 1 Jun 2017 13:41:46 +0000 (07:41 -0600)]
scripts: Add generator options for extension helper

Change-Id: Ice9f1361c56de3cc342dd40a589580f4565bbc9e

7 years agolayers: Fixup VUID ref in comment
Mark Lobodzinski [Tue, 6 Jun 2017 19:59:27 +0000 (13:59 -0600)]
layers: Fixup VUID ref in comment

Change-Id: I7baf4a5979bd3acf67fc9c3d722ed8c9584f27a0

7 years agolayers: Fix script crash for special-cased err enum
Mark Lobodzinski [Fri, 2 Jun 2017 22:31:30 +0000 (16:31 -0600)]
layers: Fix script crash for special-cased err enum

Change-Id: Ic054c35fd777e66e85ed56978ad1628ec24b94a6

7 years agoscripts:Update bad line in database
Tobin Ehlis [Mon, 5 Jun 2017 20:05:02 +0000 (14:05 -0600)]
scripts:Update bad line in database

The required extension for one VU is causing a multi-line entry in
database file. Manually updated the line and will pursue permanent
fix by updating spec.

7 years agolayers: Update vuid scripts for Windows, python3
Mark Lobodzinski [Mon, 5 Jun 2017 19:50:10 +0000 (13:50 -0600)]
layers: Update vuid scripts for Windows, python3

Change-Id: I1ec5ae94677412a8a6318f99f09b1fa095bf97ab

7 years agoscripts:Update VUIDs for spec 1.0.51
Tobin Ehlis [Mon, 5 Jun 2017 19:26:52 +0000 (13:26 -0600)]
scripts:Update VUIDs for spec 1.0.51

This is the first spec update using the new json process.
Updated text for a number of IDs and also added 9 new IDs.

Update command was "python spec.py -update"

7 years agoscripts:Update json parsing and vuid update
Tobin Ehlis [Mon, 5 Jun 2017 19:23:44 +0000 (13:23 -0600)]
scripts:Update json parsing and vuid update

Account for new "validation" top-level in json file when parsing.
Also fix a couple of bugs: wasn't correctly translating ID to hex for
new new IDs and wasn't setting implicit state for new IDs.

7 years agoheader: Update to 1.0.51 Vulkan version
Mark Lobodzinski [Mon, 5 Jun 2017 15:27:30 +0000 (09:27 -0600)]
header: Update to 1.0.51 Vulkan version

- updated include/vulkan/vulkan.h
- updated scripts/vk.xml
- updated layers json files
- updated tests json files
- built and included new vulkan.hpp file

Change-Id: I4f1d5609c8377047165e2ba14e89cba9877436db

7 years agolayers: Fix bad behavior in repeated calls to CV GetSwapchainImagesKHR
Chris Forbes [Fri, 2 Jun 2017 23:50:11 +0000 (16:50 -0700)]
layers: Fix bad behavior in repeated calls to CV GetSwapchainImagesKHR

7 years agolayers: Fix some typos
Chris Forbes [Fri, 2 Jun 2017 00:39:02 +0000 (17:39 -0700)]
layers: Fix some typos

7 years agolayers: Remove FRAMEBUFFER_STATE::referencingCommandBuffers
Chris Forbes [Thu, 1 Jun 2017 23:49:18 +0000 (16:49 -0700)]
layers: Remove FRAMEBUFFER_STATE::referencingCommandBuffers

Nothing used this.

7 years agolayers: Remove MT_FB_ATTACHMENT_INFO::mem
Chris Forbes [Thu, 1 Jun 2017 23:48:05 +0000 (16:48 -0700)]
layers: Remove MT_FB_ATTACHMENT_INFO::mem

Nothing used this.

7 years agolayers: Remove dead device queue tracking from swapchain
Chris Forbes [Thu, 1 Jun 2017 18:37:58 +0000 (11:37 -0700)]
layers: Remove dead device queue tracking from swapchain

7 years agolayers: remove useless check from GetSwapchainImagesKHR
Chris Forbes [Thu, 1 Jun 2017 18:07:16 +0000 (11:07 -0700)]
layers: remove useless check from GetSwapchainImagesKHR

This is a relic from a /very/ old version of the WSI extensions, and
appears to be checking driver correctness more than app correctness.

7 years agolayers: Remove check from swapchain already done by OT
Chris Forbes [Thu, 1 Jun 2017 18:07:36 +0000 (11:07 -0700)]
layers: Remove check from swapchain already done by OT

7 years agoloader: Fix buffer overflow in loader_add_to_dev_ext_list
Gabríel Arthúr Pétursson [Sat, 3 Jun 2017 01:38:49 +0000 (01:38 +0000)]
loader: Fix buffer overflow in loader_add_to_dev_ext_list

The size argument to a call to memcpy is for the wrong struct. The type
of `ext->list[idx].props` is VkExtensionProperties.

Credit goes to AddressSanitizer for spotting this bug.

7 years agoloader: Add emulation for EXT inst extensions
Lenny Komow [Thu, 1 Jun 2017 19:32:28 +0000 (13:32 -0600)]
loader: Add emulation for EXT inst extensions

Change-Id: I481ff8a2ae0ec5a82773fddd2b59c750126adc11

7 years agodemos: Fix fence sync after new throttling scheme
Tony Barbour [Fri, 2 Jun 2017 18:11:29 +0000 (12:11 -0600)]
demos: Fix fence sync after new throttling scheme

f06ab9 cube: Throttle rendering rather than presentation didn't
remove the AMD workaround and didn't consider the VK_ERROR_OUT_OF_DATE_KHR
path through resize.

Change-Id: Ib29bffb5b3c2a82456ad734424af3a9348e897c5

7 years agotests: Add ExceedMemoryAllocationCount using profile layer
Tony Barbour [Tue, 16 May 2017 20:07:27 +0000 (14:07 -0600)]
tests: Add ExceedMemoryAllocationCount using profile layer

Change-Id: I363acfff6cffa5966813dbfd30bb0c28810bd145

7 years agolayers: Add todo for pNext ext dependency codegen
Mark Lobodzinski [Wed, 31 May 2017 17:24:58 +0000 (11:24 -0600)]
layers: Add todo for pNext ext dependency codegen

Change-Id: I5754ceeccca23723282b834e6fe9feadc1d74ae1

7 years agolayers: Add missing/disabled extension validation
Mark Lobodzinski [Wed, 31 May 2017 16:18:44 +0000 (10:18 -0600)]
layers: Add missing/disabled extension validation

Many of the main validation checks were ifdef'd out or were missing
entirely.

Change-Id: I18cd977a6a790cc12988c55093d826ab9ec50556

7 years agolayers: Remove redundant device ext dep checks
Mark Lobodzinski [Wed, 31 May 2017 16:07:25 +0000 (10:07 -0600)]
layers: Remove redundant device ext dep checks

These are now handled through code-gen.

Change-Id: I1430f25fbe151b5581bb57292e733e8ba66cbdf7

7 years agolayers: Remove redundant instance ext dep checks
Mark Lobodzinski [Wed, 31 May 2017 15:55:17 +0000 (09:55 -0600)]
layers: Remove redundant instance ext dep checks

These are now handled through code-gen.

Change-Id: I773a2a3a5e531ba24108aeadf3fd67239a20c5e3

7 years agoLayers: Implement PV per-API ext dependency checks
Mark Lobodzinski [Wed, 31 May 2017 15:14:22 +0000 (09:14 -0600)]
Layers: Implement PV per-API ext dependency checks

As each API is used, PV will now us a code-generated check to verify
that all of the required extensions for this particular API call have
been enabled via CreateInstance or CreateDevice.

Change-Id: I1c11d0b8322edf005b2b197a415c92a82e0cb810

7 years agolayers: Pass layer data into PV validation functions
Mark Lobodzinski [Tue, 30 May 2017 20:11:04 +0000 (14:11 -0600)]
layers: Pass layer data into PV validation functions

Previously just passed in report data, but need access to more stuff.

Change-Id: I2af7b2ae73d3e2ecd3409f32e8f1a42e5e736d8c