aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2018-03-09scripts: Merge upstream verbosity changesMike Schuchardt
From Vulkan-Docs /src/spec/genvk.py
2018-03-09header: 1.1.70 updateMike Schuchardt
Change-Id: Ifa07a957e3c0e51c9b5c00b6c9d7fff04905c8ab
2018-03-09scripts: Roundup strings sizes in struct to multiple of 4David Pinedo
vktrace layer needs strings sizes to be multiple of 4 for data alignment in the trace file.
2018-03-09scripts: Remove unreleased extension namesMike Schuchardt
Change-Id: Ia0270edcd17a8b8a33e390f781b7357208e7a676
2018-03-09helper: Fix compilation warningMark Young
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
2018-03-09layers: Update VUIDs for 1.1Mike Schuchardt
- 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
2018-03-09header: Update to 1.1.69 private headerMike Schuchardt
Change-Id: If9fc0f065f77ecff14123f665e603e6f2595d571
2018-03-09layers: add GetDeviceQueue2() supportYiwei Zhang
This change add GetDeviceQueue2() support to object tracker and core validation layers.
2018-03-09loader: Extend pre-instance intercepts for 1.1Lenny Komow
Add the ability to intercept vkEnumerateInstanceVersion through the pre-instance intercept mechanism
2018-03-09scripts: Fix xlib_xrandr platform nameMike Schuchardt
Change-Id: I3aa8e929d394322ebfcfbf2a59846b2adae057e3
2018-03-09scripts: Update codegen to work with new aliasingMike Schuchardt
Change-Id: I3739f7b7b6eb17a5e3e1bc9cc18e74569cb50f95
2018-03-09Implement initial VK_EXT_debug_utils changesMark Young
This affects the loader, scripts, and layers and introduces the changes to support the VK_EXT_debug_utils extension. Change-Id: Ia5336f63e85b00f1e59416c06aacd4ae331fd692
2018-03-09layers: Enable 1.0 exts moved to 1.1 coreMark Lobodzinski
Also plumbed api_version into CV and PV for validation and enabling the appropriate 1.0 extensions by default in 1.1.
2018-03-09layers: Updated unique objects layer for aliasesMark Lobodzinski
UpdateDescriptorSetWithTemplate[KHR] CreateDescriptorUpdateTemplate[KHR] DestroyDescriptorUpdateTemplate[KHR]
2018-03-09layers: Updated Object Tracker layer for aliasesMark Lobodzinski
GetPhysicalDeviceQueueFamilyProperties2[KHR]
2018-03-09layers: Handle aliasing in parameter validationMark Lobodzinski
2018-03-09loader: Fix crash in aliased extensionsLenny Komow
2018-03-09loader: Fix loader marking 1.1 cmds as requiredLenny Komow
2018-03-09loader: Move manual KHR exts to coreLenny Komow
2018-03-09scripts: Update generators for 1.1Mark Lobodzinski
2018-03-09scripts: Avoid duplicates in enum string helperMark Lobodzinski
2018-03-09scripts: Fix loader extension generatorMark Lobodzinski
Was incorrectly creating device/instance dispatch tables.
2018-03-09scripts: Private repo VUID workaroundMike Schuchardt
Workarounds for private codegen and tests so they can run without having to update the VUID mapping or database Change-Id: Idf71df859f55888103f93f863fc73a0c7a01de2c
2018-03-09scripts: Update lvl_genvk.py with 1.1 changesMark Lobodzinski
2018-03-09scripts: Allow for skipping version_1_1 featuresMark Lobodzinski
Treat 1.1 features as 1.0, instead of as an extension.
2018-03-02macOS: Add macOS supportKarl Schultz
2018-03-01layers: Make unique_objects ID map globalMark Lobodzinski
Increasingly, instance objects are referenced by device-level APIs. Made unique ID map global, shared across all instances and devices. Change-Id: I5b62e7b95ec25a2a8b390d46024b43c29f2199ce
2018-03-01scripts: Mod spec.py to use local validusage.jsonMark Lobodzinski
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
2018-03-01scripts: Add validusage.json to LVL repoMark Lobodzinski
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
2018-02-21scripts: Strip xref markup from vu error messagesMike Schuchardt
Convert asciidoctor xref markup from "<<anchor, text>>" to "text" for VU error messages. Longer term plan is to modify the upstream validusage build target in Vulkan-Docs to emit plain text to begin with. Change-Id: I6ca6ffb4701df27c9c1666598fbeceb0f3a03216
2018-02-21header: Update to version 1.0.69 of the Vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated layer json files - updated vulkan.hpp - updated validation_error_database.txt - updated vk_validation_error_messages.h - updated vuid_mapping.py Note that the VU text in the database file contains artifacts from the registry/VUID toolchain. These will be addressed in a follow-on patch set. Change-Id: I6994ec17a6edcb6c9028c792c68863cd39f1fc56
2018-02-19layers: Move U_O:DestroySwapchain out of codegenMark Lobodzinski
This function in the unique_objects layer will need to clean up some swapchain image index tracking information and so will now be manually written. Change-Id: I306fdd9f7a3c75c21b82fe21951804bd86259781
2018-02-05scripts: Fix error if spirv-tools dir had no .git (#2346)Cort Stratton
external_revision_generator.py generates a UUID for VkValidationCacheEXT objects created by the layers, based on the commit ID of the HEAD revision in the spirv-tools repo used to build those layers. This implicitly required that the spirv-tools source is hosted in a Git repository, which is not the case in all validation layers build environments. The script has been modified to accept *either* a path to a Git working directory to query *or* a path to a file whose contents are SHA1-hashed (if necessary) and treated as the "commit ID" for the project. Call sites for the script in the CMake and Android build paths have been updated to use the --git_dir approach by default, which matches the pre-existing behavior.
2018-01-31layers: Improve doc validation init-list parsingJohn Zulauf
Change VALIDATION_ERROR_ parsing to correctly recognize error ids in initializer lists, including the formatting as done by clang-format. {VALIDATION_ERRROR_nnnn, ... VALIDATION_ERROR_nnnn} Change-Id: I25a1c0d0c9181ece458f7c83d2f184abea8d1f4a
2018-01-26icd: Add VK_KHR_push_descriptor to blacklistJohn Zulauf
As VK_KHR_get_physical_device_properties2 pNext structure queries are not implemented within mock_icd, VkPhysicalDevicePushDescriptorPropertiesKHR::maxPushDescriptors cannot be queried by the validation layers, causing numerous test failures when this limit is checked (in a subsequen commit). Added to ignore until such time it is correctly reported. Change-Id: I77b9a37c9ab2ce3e730b7fa6596e23ccc2be8d8c
2018-01-26layer: Add utility template for sType initJohn Zulauf
Add utility function to auto populate sType field based on typename given to autogen of typemap helper. Return value optimization (copy elision) should make this perfomance neutral vs. inline init. Change-Id: I231cf92d5063c19f9ad5b14189dd162fdac76a43
2018-01-23scripts: Exit from vuid_mapping.py with status 1 on errorsJean-François Roy
This patch modifies scripts/vuid_mapping.py to exit with status 1 on errors. This allows the build system to fail code generation rules that depend on this script. Change-Id: I5659ae80e1989ea7530c9257e7619a9b35cc7294
2018-01-17layers: Fix doc validation file list checkJohn Zulauf
The check for required files was counting the files multiple times and aborting silently. The check now correct counts files and exits with non-zero exit code on failure. Change-Id: I5b158f7cca0dd541571d95c00c3450139daf32c4
2018-01-17header: Update to version 1.0.68 of the Vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated layer json files - built and updated vulkan.hpp - updated vk_validation_error_messages.h - updated vk_validation_error_database.txt Change-Id: I5aff6147531f9b91164849ee590f7f86e46e4652
2018-01-09loader: Add pre-instance functions for layersLenny Komow
Allow implicit layers (not explicit) to intercept calls before an instance has been created. Change-Id: I41f5bb0f5a6314fbab8003ebe71059dd04afc860
2018-01-08scripts: Default doc validator to non-verbose modeMark Lobodzinski
Change-Id: Ib62e92a3b84609df55179e4868e5030a010f712f
2018-01-08scripts: Remove unused source_line_info.pyMark Lobodzinski
Change-Id: I1e8db79c88749a9c60469f01838dd1c485061528
2018-01-08header: Update to version 1.0.67 of the Vulkan hdrMark Lobodzinski
- updated vulkan.h - updated cgenerator.py - updated generator.py - updated reg.py - updated vk.xml - updated layer json files - updated vulkan.hpp - updated vuid_mapping.py - updated vk_validation_error_database.txt for spec changes, new VUIDs - updated vk_validation_error_messages.h Change-Id: Ifb67cf406aa82bf89e72ccfa4e1320cb3b199656
2018-01-05layers: Remove unique_objects ext list generationMark Lobodzinski
Change-Id: I9b958f1799f1cab76a69c4de35590745d3e7a852
2018-01-05layers: Create instance & device extension listsMark Lobodzinski
Added constant lists of device and instance extension names to vk_extension_helper.h. Change-Id: I4273aea866cbfea176a2631e04223ce92443caf0
2018-01-04icd: GetImageSubresourceLayout zeros passed layoutJohn Zulauf
Calling tests use return values from GetImageSubresourceLayout to compute offsets in texures. Zero'd values are safe for this usage and add minimal overhead to icd. Change-Id: If52cf240925d2f7a41bb22d87519a918be5eb60a
2018-01-04icd: Move include to header to fix clang buildKarl Schultz
Move include <string> to header file to fix clang build when using libstdc++. Fixes #2303 Change-Id: Id2fc97be7cb83fa12ee1495ef57177c0a7dad893
2018-01-02Proper decoding for msbuild version number readoutsaschawillems
2017-12-28layers: Fix git.bat fallback on Windows.Jamie Madill
This fixes the external revision generator script to first try to use 'git', then fall back to 'git.bat' if the first invocation throws a WindowsError.
2017-12-21scripts: Scan CWD in object tracker generator.Jamie Madill
This makes it more easy to locate a header in configs which have the CWD set to something less obvious. In Chrome's case the build directory is completely separated from the script directory. Also reset the CWD after the header is found to keep the build intact. This is similar to the change to the parameter validation generator.