aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2020-08-07build: Update MoltenVK version in known-good.jsonJeremy Kniager
Increased MoltenVK version in known-good.json from: v.1.0.43 -> v1.0.44 Change-Id: I910ee0a939623b87ec9df23227014192f088af32
2020-07-20build: Update known-good files for 1.2.148 headerShannon McPherson
Changes: - Updated `known_good.json` - Generated new source files Change-Id: I5a2769c0f2634e460260c281eebb4a947c2e50d9
2020-07-15scripts: fix update_deps retry cloneBob Ellison
There was a subtle bug in the original change; "git fetch" would retry correctly, but "git clone" failed because the destination directory was missing (after having been removed, to ensure a clean clone operation). The test case that was used (hundreds of times) happened to provoke an error on the "git fetch" path; I was unaware that the "git clone" failure path had never been exercised.
2020-07-14build: Update known-good files for 1.2.147 headerShannon McPherson
Changes: - Updated `known_good.json` - Generated new source files Change-Id: I51ec7fd4b512ba9fc5955ef4eb229838bf5c3951
2020-07-13scripts: udpate_deps retry on clone or fetch failureBob Ellison
Duplicate change from commit b636386a7824eb4e6a0d99962e1491ac68d3a295 on KhronosGroup/Vulkan-ValidationLayers, to keep update_deps.py in sync across all repos. Original commit message is: We see spurious failures to connect to github when trying to run update_deps.py (up to 7% of runs, depending on the machine). This is an annoyance when running by hand, but a headache and a serious resource waste when running in automation (as a single broken "git clone" or "git fetch" can cause the whole run to fail). These changes allow update_deps.py to automatically retry "git fetch" and "git clone" operations on failure. These changes will be duplicated in follow-on PRs to the other repositories that include "update_deps.py", to keep them all in sync. These are KhronosGroup/Vulkan-Tools, KhronosGroup/Vulkan-Loader, LunarG/VulkanSamples, and LunarG/VulkanTools. I'm also including a "technical debt" update here, because VulkanTools/scripts/update_deps.py had diverged from the other "update_deps.py" versions, to add a way to avoid building a dependency if that dependency is not supported on the current build platform. This should be harmless to the other repositories (though potentially useful in the future). The original commit was aaabc9df034f1fdf9a976a6293d0983b079143ee with description: In update deps, this will check that a dependency is actually supported on the platform being built. This is needed because the loader is a dependency on all platforms other than Windows.
2020-07-06build: Update known-good files for 1.2.146 headerShannon McPherson
Changes: - Updated `known_good.json` - Added directfb to platform dictionary in `common_codegen.py` - Generated new source files Change-Id: I8dcc87d22036b2df068da0c5220a5e1158bbe07c
2020-06-29build: Update MoltenVK version in known-good.jsonJeremy Kniager
Updated MoltenVK version in known-good.json from v1.0.41 to v.1.0.43 Change-Id: Iff1af627abcc544c58577a200312ea2ca819e557
2020-06-24build: Update known-good files for 1.2.145 headerShannon McPherson
Changes: - Updated known-good files - Propogate genvk changes to `lvl_genvky.py` - Generated new source files Change-Id: I0391d9804c229e077e28fc3af8fe1da1dd806a2e
2020-06-22scripts: Use named params for generator optionsShannon McPherson
When calling in the vulkan header python generator the options have changed in 1.2.142 which causes the options passed by the tools to be off by one. This ends up setting the emitExtensions to the value of the sortProcedure and eventually causes the script to fail. This CL updates the tools to used named parameters for the generator so that the addition of the genpath does not throw off the parameter positioning. Change-Id: I580d5f07ec3ff9e523dbf738561c2e53cfd42796
2020-06-22vulkaninfo: fix ordering issues in generated codeCharles Giessen
Previously the codegen would reorder structs as it pleased This commit fixed several instances of bad ordering or lack thereof. Change-Id: Ieda89c64f7400b807407c2fd26660fea10e2bb59
2020-06-05icd: Cleanup supported VK API versionTobin Ehlis
Use a single constant, kSupportedVulkanAPIVersion, everwhere that supported API version is referenced. Current value is VK_API_VERSION_1_1.
2020-06-04icd:Correctly Support Vulkan 1.1Tobin Ehlis
Mock ICD supports Vulkan 1.1 but was only returning 1.0. Fixing this.
2020-05-26scripts: Add default arg for kvt_genvk directoryCharles Giessen
Change-Id: I5b932dc1743e78830467dac4783ac3731accb9e0
2020-05-26build: Update known-good files for 1.2.141 headerShannon McPherson
Changes: - Updated known-good files - Generated new source files Change-Id: I1db35b33b349d9717ccbdd7ec196c1d84707b280
2020-05-26vulkaninfo: use generate_source.py for autogenCharles Giessen
Previously, to update the autogen for vulkaninfo required running a separate cmake target. This commit puts it all into the same target for ease of maintenance. Change-Id: I98e35b01ee164e9917564f6b603e4a78c6138041
2020-05-07build: Update known-good files for 1.2.140 headerMike Schuchardt
Changes: - Modify cubepp to use initializer lists for some calls because the compiler could not deduce the correct overload from the int+pointer array specification - Propagate genvk.py changes from VVL - Modify .gitattributes so generated files are checked out with LF line-endings - Updated known-good files - Generated new source files
2020-04-17icd: Set texel size is 32locke-lunarg
4 bytes is too small for many format. It causes fail in some situation. 32 bytes is the biggest size in the whole format, so it should be better.
2020-04-16icd: Image memory sizelocke-lunarg
2020-04-15icd: Make VkPhysicalDevice uniquePetr Kraus
2020-04-14build: Remove glslang dependancy from known-goodJeremy Kniager
Removed glslang dependancy from known-good.json Change-Id: I12577690d3155734ab244fe9e7ef822fc374ba7d
2020-04-13build: Update known-good files for 1.2.137 headerShannon McPherson
Changes: - Updated known-good files - Generated new source files - Removed `VULKAN_HPP_NO_SMART_HANDLE` definition for `cube.cpp` Change-Id: Icb0152455f2c0b21a29d70462d05b958c53be861
2020-04-10icd: Make swapchain images persistentPetr Kraus
2020-04-10icd: Fix vkGetSwapchainImages behaviorPetr Kraus
- add missing lock - return correct values via return and count
2020-04-09Revert "icd: Fix vkGetSwapchainImages behavior"Mark Lobodzinski
This reverts commit 00573263e0. This caused the VkLayerTest.SwapchainAcquireTooManyImages2KHR test to fail, blocking CI. Change-Id: Id1464668e02dda50a37eb0fabb275eb897105eb4
2020-04-09Revert "icd: Make swapchain images persistent"Mark Lobodzinski
This reverts commit b40274e4. This caused the VkLayerTest.SwapchainAcquireTooManyImages2KHR test to fail, blocking CI. Change-Id: Ie0b5002544f0e467dd6d45beba9063ec96c73f67
2020-04-09mockicd: Track memory allocation sizeTobin Ehlis
Save the size of memory allocations. If a vkMapMemory is called on a known allocation with VK_WHOLE_SIZE, then map based on the actual size of the allocation.
2020-04-09icd: Make swapchain images persistentPetr Kraus
2020-04-09icd: Fix vkGetSwapchainImages behaviorPetr Kraus
- add missing lock - return correct values via return and count - bump to two images
2020-04-09icd: Fix vkAcquireNextImageKHR generationPetr Kraus
2020-04-08build: Update MoltenVK version in known-good.jsonJeremy Kniager
Updated MoltenVK version in `known-good.json` from: `v1.0.40` -> `v1.0.41` Change-Id: I81970e812a3916a6f4107398c8f4cb111882bbc3
2020-04-07mockicd: Make physical device staticMark Lobodzinski
PDev created at EnumPhysDevices time, but destroyed at DestroyInstance time. This crashes as EnumPhysDevices is not required to be called. Change-Id: I2dbfb694364eab57e5173565db795c5c70d458fc
2020-03-31build: Update glslang version in known-good.jsonJeremy Kniager
Updated the glslang commit ID in `known-good.json` to: `e157435c1e777aa1052f446dafed162b4a722e03` Change-Id: Icf25b210db414b6b7b1cfa26c127e825f394c23f
2020-03-30build: Update glslang commit ID in known-good.jsonJeremy Kniager
Updated the glslang commig ID in `known-good.json` to: `bfe4c5957fc51148a0aab6e04bb22020667c1092` Change-Id: I8eb0009be4ee1a3145d908b2659d7b9459aa45d5
2020-03-30travis: Add clang-format verions output to travisJeremy Kniager
Updated `.travis.yml` to output the clang-format version before running a clang-format check. Updated `check_code_format.sh` to include a suggestion to check the user's clang-format version if an error occures. Change-Id: I4328350cedb27998bd84a3d675eab51c89fb1a9e
2020-03-19build: Update known-good for 1.2.135 headerShannon McPherson
Changes: - Updated known-good files - Generated new source files - Modified `object_type_string_helper.h` to address `vkcube` build failures - Modified `CMakeLists.txt` to enable beta extensions - Generated new `generate_vulkan_wrapper.py`, `vulkan_wrapper.cpp`, and `vulkan_wrapper.h` Change-Id: Ic7271350995e8caefbbb7a51ec206f465c59c510
2020-02-18build: Update known-good for 1.2.133 headerShannon McPherson
Change-Id: I2b790615e08f486264b9454f61630722fdbd9a29
2020-02-12vulkaninfo: new vkconfig_output backdendCharles Giessen
This commit adds a new backend, vkconfig_output, that prints the same information as the text & html versions in a json format. This output will only be used in vkconfig. Therefore it does not have a documented flag, but it is accesible with '--vkconfig_output'. Many parts of the code needed refactoring to handle the vkconfig_output output. Replacing PrintElement with PrintString, requiring StartObject instead of StartArray, and removing many branches to make the code simpler to read. vkconfig_output does not nest json objects within json arrays, thus keeping every non-leaf node of a json object named. files modified - scripts/vulkaninfo_generator.py - vulkaninfo/generated/vulkaninfo.hpp - vulkaninfo/outputprinter.h - vulkaninfo/vulkaninfo.cpp - vulkaninfo/vulkaninfo.h Change-Id: I33d036a75b65942db1ad62b2a1e0c341a2b5e36c
2020-01-31build: Update known-good for 1.2.132 headerShannon McPherson
Change-Id: Idb6672495b2b42d45003efdbad868f41a96aa1e1
2020-01-29build: Update MoltenVK version in known_good.jsonJeremy Kniager
Updated MoltenVK version: `v1.0.38` -> `v1.0.40` Change-Id: Id51adc7234dffc7cf14560d6f30a0e07d8ef5f69
2020-01-24vulkaninfo: remove duplicate flags/bitmasksCharles Giessen
Tooling info added flags for different purposes, however they let the debug utils, debug report and debug marker extensions use the same bitpos values for the same flags. The autogen didn't consider this possibly, and would output the flags multiple times. Changes to be committed: modified: scripts/vulkaninfo_generator.py modified: vulkaninfo/generated/vulkaninfo.hpp Change-Id: I7c7a648d9051f8ce2876083dfb0d2ddc2eb7ca95
2020-01-16build: Update glslang commit ID in known_good.jsonJeremy Kniager
Update glslang commit ID from: `ebf634bcaa3e46ca8a912ed05b87281c731b2391` to `4fc7a33910fb8e40b970d160e1b38ab3f67fe0f3` Change-Id: I1f73173a80a29e4c0e852eb0ad56cd52d1deae1e
2020-01-16vulkaninfo: Support VK_EXT_tooling_infoCharles Giessen
Added support for the VK_EXT_tooling_info. Files modified: modified: scripts/vulkaninfo_generator.py modified: vulkaninfo/generated/vulkaninfo.hpp modified: vulkaninfo/vulkaninfo.cpp modified: vulkaninfo/vulkaninfo.h Change-Id: I9fc4e239b37fdff9ecdba4bf947a0b5d57d06745
2020-01-15vulkaninfo: handle previous driver versionsCharles Giessen
Previously vulkaninfo assumed it would be run on a device with a matching version. Now the autogeneration detects the vulkan version and only reports extensions and versions supported by the device. It will also output the correct name according to the version. Much of the autogen script was modified. Vendor abbreviations were pulled into the autogen, dumping enums now adds the width so it is aligned, using the built in order of types to eliminate needing forward definitions, and dead code removal. Files modified: scripts/vulkaninfo_generator.py vulkaninfo/generated/vulkaninfo.hpp vulkaninfo/vulkaninfo.cpp Change-Id: Id05d909ead1950f1b80f6e44b6c163b3c2fed09a
2020-01-15build: Update known good for 1.2.131 Vulkan Header and LoaderCharles Giessen
Reverts gitlab specific changes to known good back to their github counterparts. Updates the tagged commits for the respective repos to v1.2.131. Files Modified: -scripts/known_good.json -vulkaninfo/generated/vulkaninfo.hpp -icd/generated/mock_icd.cpp -icd/generated/mock_icd.h -icd/generated/vk_typemap_helper.h Change-Id: I870980a9676797231678c7986fdb09c354fc7b77
2020-01-15scripts: Tweak extension detectionMike Schuchardt
Use tag name instead of feature name Change-Id: I4b14b7eb30fe53920a630f8b21a816fbf57c4488
2019-12-13build: Update glslang version in known_good.jsonJeremy Kniager
Change-Id: I5b4995f62c61c8f7a1492df6c2d20c8bf9887079
2019-12-11build: Update to verson 1.1.130 of the Vulkan HeadersMark Lobodzinski
- update desktop and Android known-good json files - regenerated prebuilt sources Change-Id: Id2bc14068a66714709f7c503f7866738d90f54d8
2019-12-11vulkaninfo: reduced spurious warnings for msvcCharles Giessen
This commit removes several spurious wanings msvc would display, like implicit conversions for VkBool32 to bool and several signed/unsigned comparisons. Change-Id: Id485c044575105ec52fd49f9f0c5881674841a8e
2019-11-20build: Update known good for 1.1.128 Vulkan headerShannon McPherson
Changes: - Updated known good files - Generated new files using `generate_source.py` Updated: - `build-android/vulkan-headers_revision_android` - `icd/generated/mock_icd.cpp` - `icd/generated/mock_icd.h` - `icd/generated/vk_typemap_helper.h` - `scripts/known_good.json` - `vulkaninfo/generated/vulkaninfo.hpp` Change-Id: I03c9daed1137f5ee2ac0a553970de55ad592dc69
2019-11-19vulkaninfo: check that extensions aren't disabledCharles Giessen
Previous versions of vulkainfo's autogen code didn't check if enums and bitmasks from extensions were disabled, possibly letting them leak into the generated code. This commit checks and skips any fields which aren't supported. File changed: scripts/vulkaninfo_generator.py Change-Id: I0e6fd9872d9377a17797cfcf6c2fbcee649e3657