platform/upstream/Vulkan-LoaderAndValidationLayers.git
7 years agoAdd Packaging for Tizen platform accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170105.023708 accepted/tizen/3.0.m2/tv/20170105.024024 accepted/tizen/3.0.m2/wearable/20170105.024331 accepted/tizen/3.0/common/20161114.110403 accepted/tizen/3.0/ivi/20161028.151227 accepted/tizen/3.0/mobile/20161028.143111 accepted/tizen/3.0/tv/20161028.143430 accepted/tizen/3.0/wearable/20161028.150805 accepted/tizen/4.0/unified/20170816.011505 accepted/tizen/4.0/unified/20170828.221622 accepted/tizen/common/20161012.154301 accepted/tizen/ivi/20161014.022256 accepted/tizen/mobile/20161014.022057 accepted/tizen/mobile/20161014.022428 accepted/tizen/tv/20161014.022235 accepted/tizen/unified/20170309.034920 accepted/tizen/wearable/20161014.022305 submit/tizen/20161012.025659 submit/tizen/20161013.060823 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100007 submit/tizen_unified/20170308.100411 tizen_4.0.IoT.p1_release tizen_4.0.m1_release
Mun, Gwan-gyeong [Wed, 2 Mar 2016 05:54:27 +0000 (14:54 +0900)]
Add Packaging for Tizen platform

Change-Id: I6b61c2427feb75fe2e424af0aaf4d3563776556c

7 years agotests: Squash a bunch of spurious errors from WSI test
Chris Forbes [Thu, 6 Oct 2016 02:07:38 +0000 (15:07 +1300)]
tests: Squash a bunch of spurious errors from WSI test

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Migrate surface/swapchain interaction from swapchain to CV
Chris Forbes [Thu, 6 Oct 2016 00:01:33 +0000 (13:01 +1300)]
layers: Migrate surface/swapchain interaction from swapchain to CV

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Track current and prev swapchains for each surface in CV
Chris Forbes [Thu, 6 Oct 2016 00:01:17 +0000 (13:01 +1300)]
layers: Track current and prev swapchains for each surface in CV

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agotests: Set surface and usage for swapchain creation
Chris Forbes [Thu, 6 Oct 2016 00:00:07 +0000 (13:00 +1300)]
tests: Set surface and usage for swapchain creation

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Add handle to SWAPCHAIN_NODE
Chris Forbes [Wed, 5 Oct 2016 22:07:30 +0000 (11:07 +1300)]
layers: Add handle to SWAPCHAIN_NODE

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Change 'VS' to 'vertex shader'
Mike Weiblen [Tue, 4 Oct 2016 01:19:41 +0000 (19:19 -0600)]
layers: Change 'VS' to 'vertex shader'

Change-Id: Ib9b20635225528d2fd6d012e6487d95f27a0f95d

7 years agolayers: Add environment var for settings file
Lenny Komow [Fri, 30 Sep 2016 20:15:25 +0000 (14:15 -0600)]
layers: Add environment var for settings file

Change-Id: I8a614f915ab9b61eca5b3b94f4cf43a33cacf250

7 years agotests: Update NonCoherentMemoryMapping with new case
Tobin Ehlis [Wed, 5 Oct 2016 21:07:24 +0000 (15:07 -0600)]
tests: Update NonCoherentMemoryMapping with new case

Add case to NonCoherentMemoryMapping test where regions with two separate
offsets are flushed from a mapped region to verify that offset of flush
region does not incorrectly affect validation of mapped region overrun.

7 years agolayers: Fix state tracking for vkFlushMappedMemoryRanges()
Tobin Ehlis [Wed, 5 Oct 2016 13:50:25 +0000 (07:50 -0600)]
layers: Fix state tracking for vkFlushMappedMemoryRanges()

Checks for underflow and overflow when flushing mapped memory where using the
flush offset instead of the original mapped region offset to determine size of
total mapped region.

7 years agolayer: Add tracking of surface extensions (and surface objects) to CV
Chris Forbes [Tue, 4 Oct 2016 04:42:54 +0000 (17:42 +1300)]
layer: Add tracking of surface extensions (and surface objects) to CV

V2: Don't leave commented-out junk lying around; init
SURFACE_STATE::surface in default-constructed case.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Unify two generic object structs
Chris Forbes [Tue, 4 Oct 2016 22:33:23 +0000 (11:33 +1300)]
layers: Unify two generic object structs

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agotests: Fix LayoutFromPresentWithoutAccessMemoryRead
Tony Barbour [Wed, 5 Oct 2016 19:23:46 +0000 (13:23 -0600)]
tests: Fix LayoutFromPresentWithoutAccessMemoryRead

Change-Id: I82b4d632dc36976521dc6f0bc90fe8d4666b4566

7 years agolayers: Only validate access masks if layout changes
Tony Barbour [Tue, 4 Oct 2016 18:03:50 +0000 (12:03 -0600)]
layers: Only validate access masks if layout changes

Change-Id: I21af32fb017de15760d72d4b32d99d84c383755f

7 years agodemos - fix cube's present barrier's dstAccessMask
Tony Barbour [Mon, 3 Oct 2016 22:01:41 +0000 (16:01 -0600)]
demos - fix cube's present barrier's dstAccessMask

Change-Id: I8f94d27f16864730514beb3e326b604f24bbb65a

7 years agotests: Add LayoutFromPresentWithoutSrcAccess test
Tony Barbour [Thu, 29 Sep 2016 19:42:40 +0000 (13:42 -0600)]
tests: Add LayoutFromPresentWithoutSrcAccess test

Change-Id: I42c63e7f83bbbc70dd18d51fe5111678eee5d04a

7 years agolayers: Check for srcAccess in present barriers
Tony Barbour [Thu, 29 Sep 2016 19:41:49 +0000 (13:41 -0600)]
layers: Check for srcAccess in present barriers

Change-Id: I7722a31a6ef576cf8bc79c6893e70bc4b1cf1c09

7 years agoloader: gh1014- Fix physical device dispatch table
Slawomir Cygan [Wed, 5 Oct 2016 16:38:02 +0000 (18:38 +0200)]
loader: gh1014- Fix physical device dispatch table

Instead of initializing dispatch tabled for up to *pPhysicalDeviceCount devices, initialize
always all dispatch tables.

This fixes corruption _after_ VulkanCTS dEQP-VK.api.info.instance.physical_devices test.

Change-Id: I29ff42456bed9acb6d2c4016fe7f1940b7f4bd3b

7 years agoloader: Small cleanup of unnecessary func call
Mark Young [Tue, 4 Oct 2016 21:19:30 +0000 (15:19 -0600)]
loader: Small cleanup of unnecessary func call

We had a function that was called only from one other place and
it wasn't necessary.  So removed the extra function call.

Change-Id: I3579215dc1d2f46b8c30b4ec3cb416c390fcf597

7 years agolayers: Clean up Windows build warnings
Mark Lobodzinski [Mon, 3 Oct 2016 22:01:12 +0000 (16:01 -0600)]
layers: Clean up Windows build warnings

Change-Id: Iec47464d56c862cb1a6f132241d200d6f68efa21

7 years agodemos: Clean up Windows build warning
Mark Lobodzinski [Mon, 3 Oct 2016 22:00:40 +0000 (16:00 -0600)]
demos: Clean up Windows build warning

Change-Id: I39daaa144e82eeabbe532cb32d334d4e60e6a7e2

7 years agocube: demonstrate how to select other VkPresentModeKHR's
Ian Elliott [Mon, 3 Oct 2016 18:11:12 +0000 (12:11 -0600)]
cube: demonstrate how to select other VkPresentModeKHR's

This comes from the Khronos-internal discussion of
https://github.com/LunarG/VulkanSamples/issues/98.  Cube will, by default,
choose VK_PRESENT_FIFO_KHR mode.  However, when that change was made, the old
(example) code was lost that showed how to search for the other present modes.
It was also discussed that there isn't good guidance on why an application
might want to use a mode other than FIFO.  This change adds both of those, but
only selects FIFO by default.  #ifdef's can be used to select other modes.
With that code is a reason why an application might wish to use that present
mode.

7 years agolayers: Tweak object_tracker for 32bit some more
Chris Forbes [Tue, 4 Oct 2016 01:54:13 +0000 (14:54 +1300)]
layers: Tweak object_tracker for 32bit some more

The previous approach doesn't actually work.

7 years agobuild: hide layer symbols in android build
Mike Stroyan [Wed, 28 Sep 2016 20:58:52 +0000 (14:58 -0600)]
build: hide layer symbols in android build

Hide symbols from layers that don't need to be exported.
This makes libraries smaller.
It reduces symbol lookup time and call overhead.
It prevents possible symbol collisions.

7 years agobuild: make android layers favor their own symbols
Mike Stroyan [Tue, 27 Sep 2016 16:43:13 +0000 (10:43 -0600)]
build: make android layers favor their own symbols

Use -Bsymbolic linking android layers so they don't get symbols
like vkCreateDebugReportCallbackEXT from outside the layer.

7 years agobuild: hide symbols from SPIRV in layers.
Mike Stroyan [Wed, 28 Sep 2016 21:15:51 +0000 (15:15 -0600)]
build: hide symbols from SPIRV in layers.

Core_validation was exporting SPRIV symbols that might
collide with application use.

7 years agoRevert "build: Restore default symbol visibility to layers/tests"
Mike Stroyan [Tue, 27 Sep 2016 20:23:43 +0000 (14:23 -0600)]
Revert "build: Restore default symbol visibility to layers/tests"

This reverts commit dd96dd21b438d48aa78e9de60ad0c550c856cf29.

7 years agolayers: mark exported functions in layer utils
Mike Stroyan [Wed, 28 Sep 2016 15:42:28 +0000 (09:42 -0600)]
layers: mark exported functions in layer utils

This allows layers to hide many functions that don't need export.

7 years agolayers: Be careful about casts. ptr -> uint64_t& isnt right on 32bit.
Chris Forbes [Mon, 3 Oct 2016 21:08:31 +0000 (10:08 +1300)]
layers: Be careful about casts. ptr -> uint64_t& isnt right on 32bit.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agoMove vulkan.hpp to version 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:31:34 +0000 (08:31 -0600)]
Move vulkan.hpp to version 1.0.29

Change-Id: I52f48c40290ff56df98d9eae3dfc3fe8748b5008

7 years agolayers: Update changed extension names for 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:17:59 +0000 (08:17 -0600)]
layers: Update changed extension names for 1.0.29

Change-Id: Ifc3484471e8f1e7ca585055b243f0688e7dfd33c

7 years agolayers: Move SOVERSION to version 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:15:08 +0000 (08:15 -0600)]
layers: Move SOVERSION to version 1.0.29

Change-Id: Ieb1befd5370d96404af8abf85bfed30fe43b5995

7 years agolayers: Move Linux json files to version 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:14:32 +0000 (08:14 -0600)]
layers: Move Linux json files to version 1.0.29

Change-Id: Ibea474bc21a54251372f757d21a5cfb401876a35

7 years agolayers: Move Windows json files to version 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:14:10 +0000 (08:14 -0600)]
layers: Move Windows json files to version 1.0.29

Change-Id: If3dbe050a7d8c9954ba1d7bc6aa29123a123a359

7 years agoheader: Move vk.xml to version 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:13:08 +0000 (08:13 -0600)]
header: Move vk.xml to version 1.0.29

Change-Id: Iae35f784b40eeafe07e1cf1af96924bd151ecd59

7 years agoheader: Move vulkan.h to version 1.0.29
Mark Lobodzinski [Mon, 3 Oct 2016 14:09:38 +0000 (08:09 -0600)]
header: Move vulkan.h to version 1.0.29

Change-Id: I500e04c6545daa53d21b8cf552a922a0462d066c

7 years agolayers: Add VK_AMD_draw_indirect_count ext to OT
Mark Lobodzinski [Wed, 28 Sep 2016 18:58:00 +0000 (12:58 -0600)]
layers: Add VK_AMD_draw_indirect_count ext to OT

Added CmdDrawIndirectCountAMD and CmdDrawIndexedIndirectCountAMD APIs
for this extension to object_tracker.

Change-Id: I99fcadc9660316864666f86040e256a392565569

7 years agolayers: Add VK_NV_external_memory_win32 ext to OT
Mark Lobodzinski [Wed, 28 Sep 2016 18:53:27 +0000 (12:53 -0600)]
layers: Add VK_NV_external_memory_win32 ext to OT

Added GetMemoryWin32HandleNV API for this extension to object_tracker.

Change-Id: I94cc6a3928f90c6ff964f7a2e5cba9aa2548d653

7 years agolayers: Add VK_NV_external_memory_caps ext to OT
Mark Lobodzinski [Wed, 28 Sep 2016 18:48:56 +0000 (12:48 -0600)]
layers: Add VK_NV_external_memory_caps ext to OT

Added GetPhysicalDeviceExternalImageFormatPropertiesNV API for the
VK_NV_external_memory_capabilities extension to object_tracker.

Change-Id: I36ab9a1656dbecbb2384ee173359968ea8e454eb

7 years agolayers: Add debug marker extension support to OT
Mark Lobodzinski [Wed, 28 Sep 2016 18:45:29 +0000 (12:45 -0600)]
layers: Add debug marker extension support to OT

Added object_tracker checking for Debug Marker functions SetObjectTag,
SetObjectName, Begin, End, and Insert.

Change-Id: Ibc13192bed2003d176df97719c9162b90051b703

7 years agolayers: Fix ResetDescriptorPool in OT
Chris Forbes [Thu, 29 Sep 2016 05:47:50 +0000 (18:47 +1300)]
layers: Fix ResetDescriptorPool in OT

Previously this didn't bother to clean up the descriptor sets associated
with the pool.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Merge Validate{Non,}DispatchableObject in OT
Chris Forbes [Thu, 29 Sep 2016 01:58:08 +0000 (14:58 +1300)]
layers: Merge Validate{Non,}DispatchableObject in OT

Same deal.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Merge Create{Non,}DispatchableObject in OT
Chris Forbes [Thu, 29 Sep 2016 01:53:50 +0000 (14:53 +1300)]
layers: Merge Create{Non,}DispatchableObject in OT

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Combine Destroy{Non,}DispatchableObject
Chris Forbes [Thu, 29 Sep 2016 01:41:44 +0000 (14:41 +1300)]
layers: Combine Destroy{Non,}DispatchableObject

These did exactly the same thing, except for the slight wrinkle of
needing to cast to uint64_t & in the nondispatchable case to account for
MSVC crankiness. We can just do that always.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Remove allocator consistency check from swapchain
Chris Forbes [Thu, 29 Sep 2016 01:39:08 +0000 (14:39 +1300)]
layers: Remove allocator consistency check from swapchain

This is now covered by object_tracker

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Wire up INCONSISTENT_ALLOCATOR object tracker error
Chris Forbes [Thu, 29 Sep 2016 01:35:09 +0000 (14:35 +1300)]
layers: Wire up INCONSISTENT_ALLOCATOR object tracker error

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Track whether any object was created with a custom allocator
Chris Forbes [Thu, 29 Sep 2016 00:51:10 +0000 (13:51 +1300)]
layers: Track whether any object was created with a custom allocator

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Hold device dispatch table by value too
Chris Forbes [Mon, 3 Oct 2016 07:01:14 +0000 (20:01 +1300)]
layers: Hold device dispatch table by value too

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Hold instane dispatch table by value
Chris Forbes [Mon, 3 Oct 2016 06:54:31 +0000 (19:54 +1300)]
layers: Hold instane dispatch table by value

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Rename my_data->instance_data
Chris Forbes [Mon, 3 Oct 2016 06:35:49 +0000 (19:35 +1300)]
layers: Rename my_data->instance_data

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Split CV device and instance data
Chris Forbes [Mon, 3 Oct 2016 06:14:25 +0000 (19:14 +1300)]
layers: Split CV device and instance data

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Move queue_family_properties into PHYSICAL_DEVICE_STATE
Chris Forbes [Mon, 3 Oct 2016 05:06:20 +0000 (18:06 +1300)]
layers: Move queue_family_properties into PHYSICAL_DEVICE_STATE

This isn't instance-wide.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Dont pretend this is phy_dev_data in
Chris Forbes [Mon, 3 Oct 2016 04:57:18 +0000 (17:57 +1300)]
layers: Dont pretend this is phy_dev_data in
GetPhysicalDeviceQueueFamilyProperties

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Get rid of remaining use of single physical_device_state in
Chris Forbes [Mon, 3 Oct 2016 04:55:48 +0000 (17:55 +1300)]
layers: Get rid of remaining use of single physical_device_state in
instance

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Store ptr from device data to instance data
Chris Forbes [Mon, 3 Oct 2016 04:44:52 +0000 (17:44 +1300)]
layers: Store ptr from device data to instance data

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Pull enabled_features out into layer_data, rename for clarity
Chris Forbes [Mon, 3 Oct 2016 04:42:38 +0000 (17:42 +1300)]
layers: Pull enabled_features out into layer_data, rename for clarity

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Stop pretending phys devices have their own layer_data
Chris Forbes [Mon, 3 Oct 2016 04:36:32 +0000 (17:36 +1300)]
layers: Stop pretending phys devices have their own layer_data

They don't -- the dispatch key is the same as the instance.
EnumeratePhysicalDevices just made a mess if there were multiple
physical devices in the system.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Rename my_data -> instance_data in EnumeratePhysicalDevices
Chris Forbes [Mon, 3 Oct 2016 04:21:20 +0000 (17:21 +1300)]
layers: Rename my_data -> instance_data in EnumeratePhysicalDevices

Makes it clearer what this is.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Use member initialization for CV state
Chris Forbes [Mon, 3 Oct 2016 04:18:42 +0000 (17:18 +1300)]
layers: Use member initialization for CV state

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Delete some dead structs in CV
Chris Forbes [Mon, 3 Oct 2016 03:28:53 +0000 (16:28 +1300)]
layers: Delete some dead structs in CV

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Get rid of duplication of logic op test between PV and CV
Chris Forbes [Mon, 3 Oct 2016 02:28:49 +0000 (15:28 +1300)]
layers: Get rid of duplication of logic op test between PV and CV

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agotests: Use line width of 1.0f in ColorBlendLogicOpTests
Chris Forbes [Mon, 3 Oct 2016 01:28:00 +0000 (14:28 +1300)]
tests: Use line width of 1.0f in ColorBlendLogicOpTests

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agotests: Don't supply empty DynamicStateCreateInfo
Chris Forbes [Mon, 3 Oct 2016 01:26:32 +0000 (14:26 +1300)]
tests: Don't supply empty DynamicStateCreateInfo

Either the ptr must be nullptr, or there must be >= 1 dynamic state
specified. The empty struct is not allowed.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agotests: Supply (mandatory) multisample state in ColorBlendLogicOpTests
Chris Forbes [Mon, 3 Oct 2016 01:25:08 +0000 (14:25 +1300)]
tests: Supply (mandatory) multisample state in ColorBlendLogicOpTests

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agotests: Set layerCount to 1 in resolve tests
Chris Forbes [Mon, 3 Oct 2016 01:16:36 +0000 (14:16 +1300)]
tests: Set layerCount to 1 in resolve tests

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Use safe_VkSwapchainCreateInfoKHR in CV
Chris Forbes [Mon, 3 Oct 2016 01:12:59 +0000 (14:12 +1300)]
layers: Use safe_VkSwapchainCreateInfoKHR in CV

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Clean up layer settings file comments.
Karl Schultz [Mon, 3 Oct 2016 17:15:26 +0000 (11:15 -0600)]
layers: Clean up layer settings file comments.

Normalize and clean up internal documentation for the
vk_layer_settings.txt file.
No logic or behavior changes.

Change-Id: Iceb45efb50bcb670b099027980244cc1e2358643

7 years agoFix CMake modules not being added correctly
Raul Tambre [Sat, 1 Oct 2016 10:20:32 +0000 (13:20 +0300)]
Fix CMake modules not being added correctly

This allows this project to be more easily included as a
sub-project of another project.

Change-Id: I098f26707f17d20353c91a4adb7bfb83d90a99fa

7 years agobuild: gh52-CMake changes to enable make install on Linux
Karl Schultz [Fri, 30 Sep 2016 19:32:16 +0000 (13:32 -0600)]
build: gh52-CMake changes to enable make install on Linux

See BUILD.md for details.

Change-Id: Ide1f635a57b57af384d9d1baac20c2256629f812

7 years agoloader: gh971 Fix double free on physical devices
Maciej Jesionowski [Fri, 30 Sep 2016 13:14:52 +0000 (15:14 +0200)]
loader: gh971 Fix double free on physical devices

Change-Id: I97428dd579217340586809577eb64277ed4bb2cd

7 years agolayers: Add VK_NV_external_memory_win32 ext to PV
Mark Lobodzinski [Thu, 29 Sep 2016 21:01:28 +0000 (15:01 -0600)]
layers: Add VK_NV_external_memory_win32 ext to PV

Added GetMemoryWin32HandleNV function for this extension to the
parameter validation layer.

Change-Id: Ib1b870ab2b0433a19fcdca6bb6e0bffbeda74a13

7 years agolayers: Add VK_NV_external_memory_caps ext to PV
Mark Lobodzinski [Wed, 28 Sep 2016 20:04:29 +0000 (14:04 -0600)]
layers: Add VK_NV_external_memory_caps ext to PV

Added GetPhysicalDeviceExternalImageFormatPropertiesNV API for the
VK_NV_external_memory_capabilities extension to parameter_validation.

Change-Id: I5011fcf33efffc8c432cde03e2ae4957766488b4

7 years agolayers: Add debug marker extension support to PV
Mark Lobodzinski [Wed, 28 Sep 2016 19:51:51 +0000 (13:51 -0600)]
layers: Add debug marker extension support to PV

Added parameter validation for Debug Marker functions SetObjectTag,
SetObjectName, Begin, and Insert.

Change-Id: I4e95b350a822fe296cbd750ea228a7d98e29241a

7 years agolayers: gh965 Reading undefined memory is now a warning
Karl Schultz [Thu, 29 Sep 2016 22:11:35 +0000 (16:11 -0600)]
layers: gh965 Reading undefined memory is now a warning

Change-Id: I03d021784649f4dbdced4dc34bcf39e7c7a0cfac

7 years agoheader: Move vulkan.hpp to version 1.0.28
Lenny Komow [Thu, 29 Sep 2016 20:16:59 +0000 (14:16 -0600)]
header: Move vulkan.hpp to version 1.0.28

7 years agolayers: Updated vulkan.py for changed extension def
Mark Lobodzinski [Thu, 29 Sep 2016 21:35:07 +0000 (15:35 -0600)]
layers: Updated vulkan.py for changed extension def

Change-Id: I9d52e7a3104d21fdd355292d6f17076cd719d2e4

7 years agolayers: Fix thread/PV codegen for new notation
Mark Lobodzinski [Tue, 27 Sep 2016 19:08:15 +0000 (13:08 -0600)]
layers: Fix thread/PV codegen for new notation

Embedded parameter length variables are now specified in vk.xml as
being separated by '::' instead of '->'.

Change-Id: I53befe20912d7d7ee628f6819dbd013bcd2a9414

7 years agolayers: Whitelisted new extensions for 1.0.28
Mark Lobodzinski [Tue, 27 Sep 2016 14:59:49 +0000 (08:59 -0600)]
layers: Whitelisted new extensions for 1.0.28

Change-Id: Ife1621716ec9593de3ca528d071b707515acb8c2

7 years agoloader: Move SOVERSION to version 1.0.28
Mark Lobodzinski [Tue, 27 Sep 2016 14:27:59 +0000 (08:27 -0600)]
loader: Move SOVERSION to version 1.0.28

Change-Id: I4e011b3b37f805fde1100cf519042ea242c680d0

7 years agolayers: Move Windows json files to version 1.0.28
Mark Lobodzinski [Tue, 27 Sep 2016 14:27:08 +0000 (08:27 -0600)]
layers: Move Windows json files to version 1.0.28

s Please enter the commit message for your changes. Lines starting

Change-Id: I292aba8b4b4df46d60e3c8d4752e5fb9ccee1217

7 years agolayers: Move Linux json files to version 1.0.28
Mark Lobodzinski [Tue, 27 Sep 2016 14:26:40 +0000 (08:26 -0600)]
layers: Move Linux json files to version 1.0.28

Change-Id: I51e3624312bd83a0b6f440638088ef362d7f7ee5

7 years agoheader: Move vk.xml to version 1.0.28
Mark Lobodzinski [Tue, 27 Sep 2016 14:25:27 +0000 (08:25 -0600)]
header: Move vk.xml to version 1.0.28

Change-Id: If860d6d0df348fc758f3b59429523cd5ee2db95f

7 years agoheader: Move vk_platform.h to version 1.0.28
Mark Lobodzinski [Thu, 29 Sep 2016 16:47:27 +0000 (10:47 -0600)]
header: Move vk_platform.h to version 1.0.28

Change-Id: I3bc47016e3be0c9870f05254b02718099d990eaf

7 years agoheader: Move vulkan.h to version 1.0.28
Mark Lobodzinski [Tue, 27 Sep 2016 14:23:59 +0000 (08:23 -0600)]
header: Move vulkan.h to version 1.0.28

Change-Id: I346877d18a2600e114ebee844fb5b5055c0ea5c5

7 years agolayers: Complain about subpass mismatch between CB and pipeline
Chris Forbes [Wed, 28 Sep 2016 02:19:39 +0000 (15:19 +1300)]
layers: Complain about subpass mismatch between CB and pipeline

Fixes #933.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agolayers: Use cmd buffer as src object in callback
Chris Forbes [Tue, 27 Sep 2016 04:14:46 +0000 (17:14 +1300)]
layers: Use cmd buffer as src object in callback

One less TODO.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
7 years agodemos: Remove tri from Android build
Cody Northrop [Thu, 29 Sep 2016 19:55:08 +0000 (13:55 -0600)]
demos: Remove tri from Android build

7 years agodemos: Set srcAccessMask correctly for present barriers
Tony Barbour [Thu, 29 Sep 2016 17:36:49 +0000 (11:36 -0600)]
demos: Set srcAccessMask correctly for present barriers

Change-Id: I58cd90304ad4bd4e3c5c1622002bbc46fcf66cd9

7 years agocmake: Fix whitespace
Mark Lobodzinski [Thu, 29 Sep 2016 16:26:36 +0000 (10:26 -0600)]
cmake: Fix whitespace

Change-Id: Ia2d35a87c14c0c73bc26588694b398e04a191203

7 years agobuild: gh27 Allow builds in paths with spaces
Karl Schultz [Wed, 28 Sep 2016 00:38:02 +0000 (18:38 -0600)]
build: gh27 Allow builds in paths with spaces

Add quotes around shell var expansions in the update_external_sources scripts.

For Windows, remove the cmake directives to add a linker option for the DEF
files.  These were redundant with the DEF files getting added via the
cmake add_library() directive.  They were also causing difficult-to-fix
problems with paths that have spaces in them.

Change-Id: I741bac31bbf27deae59031b6aa916c6ab48383a6

7 years agolayers: Added flags for in_use checks
Tobin Ehlis [Wed, 28 Sep 2016 20:25:44 +0000 (14:25 -0600)]
layers: Added flags for in_use checks

Added object_in_use flag to disable all in_use checks.
Added destroy_buffer_view flag to disable validation checks at
DestroyBufferView() time.

7 years agolayers: Update DestroyBufferView to use Pre/Post paradigm
Tobin Ehlis [Wed, 28 Sep 2016 20:01:13 +0000 (14:01 -0600)]
layers: Update DestroyBufferView to use Pre/Post paradigm

Add PreCallValidate* and PostCallRecord* functions to DestroyBufferView
according to long-term core_validation architecture plans.

7 years agotests: Added InvalidCmdBufferBufferViewDestroyed test
Tobin Ehlis [Wed, 28 Sep 2016 16:23:59 +0000 (10:23 -0600)]
tests: Added InvalidCmdBufferBufferViewDestroyed test

InvalidCmdBufferBufferViewDestroyed test bind bufferView to a cmd buffer
and then destroys bufferView prior to submitting the cmd buffer in order
to verify that cmd buffer is correctly flagged as INVALID.

7 years agotests: Add BufferViewInUseDestroyedSignaled
Tobin Ehlis [Wed, 28 Sep 2016 15:59:07 +0000 (09:59 -0600)]
tests: Add BufferViewInUseDestroyedSignaled

Added BufferViewInUseDestroyedSignaled which binds bufferView to a
command buffer, submits cmd buffer, then destroys bufferView while
in-flight to verify correct in-use error generated.

7 years agolayers: Add binding between cmd buffer and bufferView
Tobin Ehlis [Wed, 28 Sep 2016 13:12:28 +0000 (07:12 -0600)]
layers: Add binding between cmd buffer and bufferView

For a texel descriptor update, add binding between bufferView and the
command buffer as well as between underlying buffer and command buffer.

7 years agolayers: Add in-use detection for VkBufferView
Tobin Ehlis [Mon, 26 Sep 2016 23:38:00 +0000 (17:38 -0600)]
layers: Add in-use detection for VkBufferView

When VkBufferView is destroyed, flag error if in-use and mark any
bound cmd buffers as invalid.

7 years agodemos: Remove tri demo
Tony Barbour [Wed, 21 Sep 2016 20:38:50 +0000 (14:38 -0600)]
demos: Remove tri demo

Removing tri demo for maintenance reasons.  Cube should be the demo
to go to for examples of good Vulkan

Change-Id: I4442a1882b5c168cfe88501eccc41a554ae4d026

7 years agolayers: Add bool to guard command buffer state check
Tobin Ehlis [Tue, 27 Sep 2016 23:42:58 +0000 (17:42 -0600)]
layers: Add bool to guard command buffer state check

This is the first check-in demonstrating the boolean model to allow validation
checks to be disabled. Going forward we'd like to guard all checks in such
bools which can then be set based on VkValidationCheckEXT enum values passed
in at vkCreateInstance() time.

In the course of adding this noticed a bug where instance_state was not getting
initialized in device layer_data at CreateDevice time. Fixed this bug.

7 years agolayers: Indicate correct source for validateCommandBufferState() error
Tobin Ehlis [Tue, 27 Sep 2016 19:10:33 +0000 (13:10 -0600)]
layers: Indicate correct source for validateCommandBufferState() error

Fixes #982

Instead of hard-coding vkQueueSubmit, take a parameter to clarify if the error
originates from vkQueueSubmit() or vkCmdExecuteCommands()

7 years agodocs: Add CubeWithLayers to Android section
Cody Northrop [Tue, 27 Sep 2016 17:48:14 +0000 (11:48 -0600)]
docs: Add CubeWithLayers to Android section