aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2018-05-11scripts: Add helper file generator back in for icdMark Lobodzinski
Mock ICD now uses the typemap helper, added the helper file generator back in, along with associated lvl_genvk mods.
2018-05-11repo: Delete unused code generatorsMark Lobodzinski
Change-Id: I1ef619a117c6ec9c2befe0458eb8502894ecff6c
2018-05-11repo: Delete glslang filesMark Lobodzinski
Change-Id: I42e66cf9dc4a4db7a86bc2f29086fad532b9f629
2018-05-11scripts: Remove generators from lvl_genvk.pyMark Lobodzinski
Also remove unneeded include from common_codegen.py. Change-Id: I1b6833acb5654217d85bbc4284713aa12fa1a104
2018-05-11icd:Add GPDP2 support for descriptor indexingTobin Ehlis
Set some default mock icd values for vkGetPhysicalDeviceProperties2 query of VkPhysicalDeviceDescriptorIndexingPropertiesEXT props.
2018-05-11icd:Add support for extended features queriesTobin Ehlis
Update mock ICD generator so that if we have an extension that's been promoted to core, the core version will call any existing custom implementation of the extension function. Update Features query to detect the two existing extension structs (VkPhysicalDeviceDescriptorIndexingFeaturesEXT and VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT) and enable all of those features when those queries are present.
2018-05-04layers: Track display and display mode objectsShannon McPherson
Add VkDisplayKHR and VkDisplayModeKHR tracking to VK_LAYER_LUNARG_object_tracker. Change-Id: I63004cfe734793593bea12700ea9cd1bdefeab0d
2018-05-04layers: Fix down-chain null funcptr crashesMark Lobodzinski
Modified dispatch table helper to replace null device extension function pointers with an appropriate stub function. Change-Id: If5e22333f084d3f41c0eefdf3e82c9060b872e8c
2018-04-27layers: Add missing promoted device extensionsJohn Zulauf
Add three missing device extensions to promoted device extensions list in vk_extension_helper codegen. VK_KHR_relaxed_block_layout VK_KHR_shader_draw_parameters VK_KHR_storage_buffer_storage_class Change-Id: I392155d318ca580e576436ef46695218e5eb446e
2018-04-27layers: Sort promoted extensions listJohn Zulauf
For ease of maintenance, sort the promoted extension lists. Change-Id: Ib1d690d55c6b9c3a156c9682fbe96bbebed17c14
2018-04-25layers: Add dependency info to vk_extension_helperJohn Zulauf
Add additional metadata to *Extensions structs to enable extension dependency validation at CreateInstance CreateDevice time. Refactor the code generator for the extension helper prior to refactoring the generated code to address an incomplete. Change-Id: I79ae680d9c41f1f153ee8108d4deac8ec8c5a886
2018-04-25layers: Refactor codegen for vk_extension_helperJohn Zulauf
Refactor vk_extension helper prior to adding extension dependency information to code gen. Refactor to simplify feature addition. Change-Id: I7b2902dd1a4070c83810f57c0836b50cb6ecfb86
2018-04-25layers: Sort extension order for extension helperJohn Zulauf
Sorted the extensions by name s.t. the output of the vk_extension_helper generator would be consistent run-to-run. Change-Id: Ief3d822b91260e469f7f2d563076d8a79f1a1bf0
2018-04-24header: Update to version 1.1.74 of Vulkan hdrMark Lobodzinski
- update layer json files - update vulkan_core.h - update vk.xml - update vulkan.hpp - update validusage.json - update vk_validation_error_messages.h - update vk_validation_error_database.txt - maintain local changes to reg.py Change-Id: If0c52d13f78ddfcc7c9d316386c0d20399e97668
2018-04-19scripts: Add spec.py check for ext changesMike Schuchardt
When the surrounding asciidoctor conditionals of a VUID change it may impact validation even if the VUID text does not change. Detect this in spec.py and flag for manual intervention. Change-Id: Idf802955ba9bbfe911edd4114fb28bdddf5fcc9b
2018-04-18scripts:Account for extnumber key to fix warningsTobin Ehlis
With the addition of the 'extnumber' key update comparison to skip over the extnumber as well as extname in order to avoid a bunch of irrelevant warnings.
2018-04-16header: Update to version 1.1.73 of the Vulkan hdrMark Lobodzinski
- update json files - update vk.xml - update vulkan_core.h - update validusage.json - update vk_validation_error_messages.h - update vk_validation_error_database.txt - update vulkan.hpp - removed checks for the following deprecated VUIDs related to ImageCreateInfo and FormatProperties: - VALIDATION_ERROR_09e007ae - VALIDATION_ERROR_09e007b4 - VALIDATION_ERROR_09e007ac - VALIDATION_ERROR_09e007a6 - VALIDATION_ERROR_09e007b2 - VALIDATION_ERROR_09e007a4 - VALIDATION_ERROR_09e007aa - VALIDATION_ERROR_09e007a8 - VALIDATION_ERROR_09e007a2 - VALIDATION_ERROR_09e007b0 - modified CreateImageFormatSupportErrors test to remove killed checks - modified ImageLayerUnsupportedFormat test to remove killed check Change-Id: I8f1577747d87fdeb6f68b9db0340443a83c44630
2018-04-16icd:Add new physical device query funcs to ICDTobin Ehlis
Add mock ICD support for vkGetPhysicalDeviceSurfacePresentModesKHR, vkGetPhysicalDeviceSurfaceFormats[2]KHR, vkGetPhysicalDeviceSurfaceSupportKHR, vkGetPhysicalDeviceSurfaceCapabilities[2]KHR, vkGetSwapchainImagesKHR and vkAcquireNextImagesKHR.
2018-04-12scripts: Add commit message format checkerMark Lobodzinski
Change-Id: I94efe0326e3f68e19af605a1ff381da59d2d7d1d
2018-04-06scripts: exclude vulkan headers from clang-formatMike Schuchardt
Travis CI shows linux build failure on every header update because upstream Vulkan-Docs files are not formatted with the clang-format style of this repo. This change excludes the vulkan headers directory from the CI clang-format check. Change-Id: I6d1bee486d06b690f65aa2c3098de14f3c5931c9
2018-04-06header: Update to version 1.1.72 of the Vulkan hdrMark Lobodzinski
- updated layer json files - updated vulkan_core.h - updated validusage.json - updated vk_validation_error_database.txt - updated vk_validation_error_messages.h - updated vuid_mapping.py - updated vk.xml - updated vulkan.hpp - moved vuid 1ae00652 to 1ae00f06 Change-Id: Id6ba342841cca04c0669b7feb39d82e2b8052443
2018-04-05scripts: Output vuid-string->message mapMark Lobodzinski
Change-Id: Id4123053da62fb8d2b4d32393d11e4aa6c030f92
2018-04-05layers: Add checks for CreateDescriptorUpdateTemplJohn Zulauf
Added four validation checks for vkCreateDescriptorUpdateTemplate(KHR) and removed a false positive. VALIDATION_ERROR_052002bc VUID-VkDescriptorUpdateTemplateCreateInfo-templateType-00350 VALIDATION_ERROR_052002be VUID-VkDescriptorUpdateTemplateCreateInfo-templateType-00351 VALIDATION_ERROR_052002c0 VUID-VkDescriptorUpdateTemplateCreateInfo-templateType-00352 VALIDATION_ERROR_052002c2 VUID-VkDescriptorUpdateTemplateCreateInfo-templateType-00353 Updated autogen of object tracker s.t. that logic for noautovalidation handles matches parameter validation, and spec generation, eliminating a source of false positives. Change-Id: Ib831eabd45a5083168355bca6b0e2beda3a76222
2018-04-04layers: Avoid reading pointer to array when count is zeroGabríel Arthúr Pétursson
Take for example VkSubmitInfo. It has, amongst others, two fields: waitSemaphoreCount and pWaitSemaphores. The specification states that if waitSemaphoreCount is zero, the application may leave pWaitSemaphores uninitialized (in essence, that field is ignored). The layers read that value anyway, triggering uninitialized read errors by memory sanitization tools. Fixes uninitialized read in QueueSubmitSemaphoresAndLayoutTracking.
2018-04-04layers: Destroy object tracking after reporting undestroyed objectsGabríel Arthúr Pétursson
Fixes a memleak in VkLayerTest.LeakAnObject.
2018-04-03layers: Add correct validation for apiVersionJohn Zulauf
Update and correct validation of passed apiVersion for 1.1 specified behavior. Instances with apiVersion > 1.1 will be validated as 1.1 instances (and warn). Instances with apiVersions < 0 and < 1.0 will be validated as 1.0 instances and generate an error. Instances with missing or 0 apiVersions will be treated as 1.0 instances. LOGCONSOLE warning converted to log_msg warning. Change-Id: I2debb6175cf094918fc86cdea2973ddae9479a0b
2018-04-02layers: Remove layer prefix from log_msg callsMark Lobodzinski
Change-Id: Iea43bd2f8f2c92d99b5fdf40abe94149a6fb860c
2018-04-02layers: Remove location field from log_msg callsMark Lobodzinski
Removed location parameters from log_msg calls, and from layer logging output functions. Change-Id: Ia1e2ce012997efed1db7864761ae0e39c8bc7d9b
2018-03-29loader: Fix GetDeviceProcAddr with terminatorsLenny Komow
Fix a bug where vkGetDeviceProcAddr would return a valid pointer for any device command that used a custom terminator, even if it was part of an extension which wasn't enabled Change-Id: I3b088fe0c850fbaa5f7285ced81552273bc38e7e
2018-03-28layers: Fix gh #2504 and compiler warningsMark Young
Remove extraneous objecgt info from the validation logging message. Extra object logging was added accidentally in my change to incorporate VK_EXT_debug_utils. Fix output of Debug Utils messenger output for validation layers to list individual objects. Also, fixed a few compiler warnings that were appearing on Linux. Change-Id: I043d7f734683dfa79fe7a26a5973975bde011cce
2018-03-27scripts: Remove noisy debug in codegenMike Schuchardt
2018-03-26header: Update to version 1.1.71 of the Vulkan hdrMark Lobodzinski
- updated vulkan_core.h - updated vulkan-android.h - updated vk.xml - updated validusage.json - updated layer json files - updated vulkan.hpp - updated vuid_mapping.py - marked 27 VUIDs as complete Change-Id: Ia5abee76e5346b3a1b769664033d91403946f7a9
2018-03-26scripts: Fix safe_struct Android versioning issueMark Lobodzinski
The VK_ANDROID_external_memory_android_hardware_buffer extension uses an android structure that is undefined before android 'O'. Worked around this issue by defining a dummy structure for earlier android OS versions. Change-Id: If515920d3b1707cbeb6a0377827c680d93d516ff
2018-03-20layers: Add alias support to kVulkanObjectTypesJohn Zulauf
Updated vk_object_types.h generation to correctly handle promoted and alias handle types. Change-Id: I3d655b0f408a6cee08bf3d1ce453d9c5aac61376
2018-03-20layers: Fix enum cross reference to handle missingJohn Zulauf
Modify enum cross reference table creation to handle missing items from VK_DEBUG_REPORT_OBJECT_TYPE_ list, as it is no longer being updated. Change-Id: I112a08f82249c446757495309699c80fe7094635
2018-03-19layers: Fix incorrect generation of get_debug_report_enumGabríel Arthúr Pétursson
There is no corresponding DebugReportObjectType enum for kVulkanObjectTypeDebugUtilsMessengerEXT, so map it to the unknown type. The generation script skipped over this enum, causing buffer overflow faults in the VkLayerTest.ValidationCacheTestBadMerge test.
2018-03-19layers: Fix allocator mismatch in unwrapped extension structs chainGabríel Arthúr Pétursson
The safe_* structs are allocated using C++'s new allocator in CreateUnwrappedExtensionStructs, but were freed using free(). This mismatch is undefined behavior. Fix by having FreeUnwrappedExtensionStructs call delete on the correct safe class.
2018-03-16scripts: Remove helper-generator struct_size sourceMark Lobodzinski
This was unused in this repository. Change-Id: I3e3375139cf2718e4aff4ee2237bc1d756cd0205
2018-03-16scripts: Remove lvl_genvk.py struct_size defsMark Lobodzinski
Change-Id: I8a26ef87ab3a15fb582258e11841abc87f107e9f
2018-03-09scripts: helper_file_generator.py cleanupMike Schuchardt
- Remove list as set anti-pattern - Remove conditional that could never evaluate to False
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