aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-16loader: Expand error message infoMark Young
Expand loader_platform_open_library_error on Windows to include the error message from GetLastError(); Also, modify the loading of the layer library to use the loader_platform_open_library_error message sincce we want to get as much error information in that as possible. And fix a typo in a comment. Change-Id: I1ef5ede8c6716c4624b31ddb3b32b83392920a6c
2017-05-16loader: Expand lib search locationsMark Young
Expand library search locations based on recommendations by Dustin. We still attempt to use the old LoadLibrary first, and then, only if that fails, do we attempt to use the new search. Change-Id: I4cf1358f9eb7e45ac61f36435e926aa89c212f83
2017-05-16loader: Modify ICD dlopen to use RTLD_NOWMark Young
Pierre-Loup at Valve caught this. By using RTLD_NOW on dlopen it fails if symbols are not resolved at dlopen time. This resolves an error where an ICD is missing a symbol on a system causing the loader to fail later at an unrecoverable time. Change-Id: Icf43fd36aebfbcb4b08e7e3891570161234118f7
2017-05-15external: Update refs for glslang and spirv-toolsMike Weiblen
Change-Id: Iaf28f3b22c53d8272984e7369fb5afb606908bdd
2017-05-15layers: Add VUIDs to new objecttracker checksMark Lobodzinski
Change-Id: I0d2d893b68aea7df294796cf42a8c6d46fbfd441
2017-05-15layers: Update ObjectTracker for new extensionsMark Lobodzinski
vkGetPhysicalDeviceSurfaceFormats2KHR, vkGetSwapchainStatusKHR, and vkGetPhysicalDeviceSurfaceCapabilities2KHR. Change-Id: I726880924300e06209013ae39a8c4e019d4c2266
2017-05-15header: Update to 1.0.49 Vulkan versionMark Lobodzinski
- updated include/vulkan/vulkan.h - updated scripts/vk.xml - updated layers json files - updated tests json files - updated vulkan.hpp -- NOTE: includes workaround for mishandled extension API - updated parameter validation layer with new APIs Change-Id: I0b65065e1a0355c18c4a5eafdb0b3d218af6ff91
2017-05-15scripts:Updated Validation IDs for spec 1.0.49Tobin Ehlis
This may be the last one of these updates. String-based VUIDs are now integrated into the spec so I'll migrate to a system based on those in the next week. Command to perform update: python spec.py -update -remap 1631-1086:1734-1180:1739-1183: 1799-1234:3289-1251:182-1696,2:185-1699,3:2844-2336:660-2816: 2920-1964 I also manually restored 911 & 912 which are only in the Core spec.
2017-05-15loader: Add ICD to extension emulation debug infoLenny Komow
Change-Id: I5ad4e0794726029fe7fe21fdb8a9667f7eb9e7d5
2017-05-12demos: gh1747 - Check for the installed libvulkan.so.1Timo Aaltonen
avoids depending on the development symlink v2: Android doesn't have versioned libs, so don't touch ShellAndroid.cpp
2017-05-11docs: Contributing.md updatesMark Lobodzinski
Change-Id: I0253ecd6166d84188f4f1cc1523c8e87d46c8590
2017-05-11layers: Update EXT_debug_report versionMark Young
Update the EXT_debug_report revision reported by each of the layer's via their JSON files. Change-Id: Ie5891ae89b61fe4588edfef593a7885298050de3
2017-05-11layers: GH1720 Migrate swapchain queue checksPetr Kraus
fixes #1720
2017-05-11layers: Update DeviceQueueCreate checksPetr Kraus
- remove some potential false-positives from QF check - update error db with existing check - use error db unique codes on existing checks - move check that need state to core_validation - deal with VK_QUEUE_FAMILY_IGNORED case - improve error messages texts - make messages return appropriate object - move code that looks displaced to appropriate places - add locks
2017-05-11layers: Validate pOffsets in vkCmdBindVertexBuffersTony Barbour
Change-Id: Ie618d7657af6eca555050507a623be02af2e21fe
2017-05-11tests: Add test for new barrier layout VU checkMark Lobodzinski
And updated the error database. Change-Id: Ifa9e073689ff83f4cd3a37eb2cd7b8c39b7003eb
2017-05-11layers: LX652, Layout check for pipelinebarrier in RPMark Lobodzinski
Covers VU 2080, oldlayout must equal newlayout if barrier in an active renderPass. Change-Id: I2bfbd27a5938615d9274ecea8799451b5134f237
2017-05-11layers: Move null check in ValidateBarriersMark Lobodzinski
The check for a non-null pointer was placed well after its first use. Moved earlier to catch null ptr refs in all of the routine. Change-Id: Iefc9a41c9c65d3b9f9524d13d585266d22b4ba54
2017-05-11layers: Fix unique_objects_wrappers.hMark Young
The unique_objects_wrappers.h header was generated with code that caused several compilation warnings. This resolves those warnings. Change-Id: I5ed3bdb6bbe7df48b3fe6fb6679916161b32fdfd
2017-05-10loader: Add basic phys dev props emulationLenny Komow
Add the ability for the loader to emulate the commands in VK_KHR_get_physical_device_properties2. This will only be used when using multiple physical devices where only one supportes the ext. Change-Id: I596c8ee9eea5e5136e5b478508abb21c5d8ad5a1
2017-05-10loader : gh1675 - Further strncat changesMark Young
This doesn't completely satisfy GH 1675, but at least resolves a few of the holes discovered by @randomascii. Change-Id: Idb2273851e36d4470d2f14cb09d6ac1c314497a8
2017-05-10layers: GH1739, Add check for shader binary sizeMark Lobodzinski
VU 2816 says size must be a multiple of 4. Change-Id: I38749fe44e02cac4e40aa572c4e4ccec01d82279
2017-05-10layers: Fix build dependencyMark Young
The no-dependency layer's still need to have a dependency in order for the commands to execute in the proper order. So, just tied them to the utils object. Change-Id: Ic279dcf86b8f0e551b194a6b5688ea646b00cc5f
2017-05-10layers: Modify PV to ignore FORMAT_NOT_SUPPORTEDMark Lobodzinski
This return code is now ignored by the Get*ImageFormatProperties* APIs. Printing a message for this usage was just noisy. Change-Id: I0cbd1b1a4cfa4761092a647d7912b1d590fcc89b
2017-05-10layers: Add exclusion list to validate_result in PVMark Lobodzinski
Allows specifying return codes to ignore in parameter validation. Change-Id: Iebf11920c3921c39190903b2750f4b3d61fe6242
2017-05-09layers: Add vkCreateRenderPass subpass attachment VUsCort Stratton
2017-05-09loader: Optimize layer removalMark Young
In the case we remove a meta-layer, use memmove once, not in an array. Change-Id: Ia7496c4436e987011a0ad504a096c15f9d320c28
2017-05-09layers: LX673, CreateWin32Surface Null HWND checkMark Lobodzinski
Added NULL check to parameter validation, and assigned VU2505. All we can do is check for Null. Apparently, hInstance CAN be NULL. Change-Id: Ica5ead0514b7435ea9428dbd0018f53ff25462fd
2017-05-09layers: Remove default ctors for {Image,}SamplerDescriptorChris Forbes
These just added confusion; we already support the !immut case in the other ctor. V2: ImageSamplerDescriptor remaining ctor was buggy.
2017-05-09layers: Don't start ImageSamplerDescriptor w/ immut as updated.Chris Forbes
This descriptor is NOT initially updated; it's invalid until the Image component is set.
2017-05-09layers: Don't skip validating image part of combined image+immut samplerChris Forbes
This early out was from another time...
2017-05-09loader: Code review fixesMark Young
Fix some potential issues discovered by Karl in the code review. Also, fix CMake warning on newly added VkLayer_standard_layer. The CMake generation code I had been using expected a project with the same name as the JSON. Change-Id: I8738ff03ac08bcfc13aa8d11c570a0b507de450a
2017-05-09loader: Update meta-layersMark Young
Use the meta-layer Manifest API version to check against each of its component layer API versions. This will force us to make sure each JSON file is properly updated in sync. Add a section to the LoaderAndLayerInterface markdown doc about the usage of meta-layers, and an example of how they look in a Manifest JSON file. Change-Id: I667cfd3013cbcf201c83935dc6f1c2bb937c7742
2017-05-09loader: Fix layer Enumerate bugMark Young
This fixes a bug found by Timothee Besset regarding calling vkEnumerateDeviceLayerProperties when no layers are present. This resulted in a negative number being filled into a uint32_t which caused an invalid number of layers to be returned. Now that we have meta-layers implemented instead of hard-coded, I created two lists: an application provided list of layers, and an expanded list of layers (where meta-layers are broken up into their component layers). The former is used when working with the enumerate calls, but the later is used internally for final layer activation. Change-Id: If723fdfb5acb1dc57923282d2c641c582870ad1c
2017-05-09loader: Meta-layer supportMark Young
Integrate Lenny and my changes for Meta-layers. Includes adding initial JSON file for standard_validation. Change-Id: Ibc1da464fad4949e14e171dbc7dd9990621e1081
2017-05-09layers:Fix cut-and-paste bugTobin Ehlis
From Mikko at Unity, there was a cut-and-paste bug here where color counts were being used to check input attachments. Use input counts instead.
2017-05-08loader: gh1661 - Phys dev exts not loadingLenny Komow
Fix a bug whereby commands from physical device extensions were not being written to the instance extension dispatch table, preventing their terminators from ever being run. Change-Id: I38dab0ae6463674f2a1f572bc0ee1eebe8d0dd13
2017-05-08layers:Immutable samplers are updated at creationTobin Ehlis
Fixes #1741 Descriptors with immutable samplers are updated at the time they're created. Set update bool for descriptor sets with immutable samplers at the time they're created. This will prevent false positives.
2017-05-08layers: Remove unhelpful precheck in ValidateDrawStateChris Forbes
2017-05-05tests: Add test for graphics pipelines with tessellationCort Stratton
2017-05-05layers: check for both TE and TC, not just TCCort Stratton
2017-05-05layers: Add VkVertexInputAttributeDescription VUsJeremy Hayes
Also fix GH#1709. Change-Id: I62394dc34cb92aa4308eb84cf7a0d62403e7a9e7
2017-05-05layers: Add VkVertexInputBindingDescription VUsJeremy Hayes
Change-Id: Id9cb603dce7a49b21f9f8252baef692b4f6787f7
2017-05-05loader: gh1693 - GPDA override not usedMark Young
In some situations, the loader wouldn't directly use the GetInstanceProcAddr or GetDeviceProcAddr function overrides directly. Instead, the loader would call vkGetInstanceProcAddr with an argument of "vkGetInstanceProcAddr" and vkGetDeviceProcAddr with an argument of "vkGetDeviceProcAddr". This short-cuts that. NOTE: Layers still need to support these queries because if another layer is above you, it may call "vkGetInstanceProcAddr" with to get "vkGetDeviceProcAddr". Change-Id: I810945f45121d42d23b69d0b3334d6bad3a8ed2f
2017-05-05layers: Fix incorrect VU IDMike Schuchardt
Change-Id: Ifc751f1ece6cfd5b6ab02d63081af6acbb2c56e8
2017-05-05layers: Move patchControlPoints validationMike Schuchardt
Move pTessellationState->patchControlPoints checks to parameter validation where they will only be executed if the pipeline contains tessellation stages. Change-Id: I271f915625995f4a54045d0abe63ce27b9e023f9
2017-05-05layers: Pipeline creation conditional validationMike Schuchardt
1.0.47 added language to spec about when arguments to vkCreateGraphicsPipelines are ignored. Only perform validation on pTessellationState when both tessellation control and evaluation shader stages are present. Only perform validation on pViewportState, pMultisampleState, pDepthStencilState, pColorBlendState when rasterization is enabled. Change-Id: I23e1880d73723189adea32ef9d6ec3b2c3ac689c
2017-05-05layers: Correct error db of VkDeviceQueueCreateInfoPetr Kraus
- validation cmd is vkCreateDevice not Destroy - non-implicit checks are implemented, just didn't use the unique codes
2017-05-04docs: Update loader doc for linking and formatLenny Komow
Change-Id: Id51ce907ca167a44f9f2db6db48b4ade679b129b
2017-05-04Revert "Fix location of vk_layer_settings.txt on Android"Cody Northrop
This reverts commit 3d22f33e862d4bed46edbd5ee948f4ebe9c84a6f.