aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2017-12-08layers: VS2013 compatibilityMike Schuchardt
Remove all usages of constexpr to restore compatibility with Visual Studio 2013. Also make a handful of other minor edits where the VS2013 compiler was reporting errors. Change-Id: I3c426bea460a4a902ab306b01deb1d76d60f5fa2
2017-11-28layers: validation_cache review feedbackCort Stratton
2017-11-28Fix build errors:Cort Stratton
- No more SPIRV-Tools revision file. Instead, the revision-parsing script just runs "git rev-parse HEAD" in the spirv-tools repository to extract the commit ID. - Invoke the revision-parsing script from the .sh Android scripts, in addition to the .bat scripts.
2017-11-28Use SPIRV-Tools commit ID as validation cache versionCort Stratton
2017-11-28header: Update to version 1.0.66 of the Vulkan hdrMark Lobodzinski
- update vulkan.h - update Lin/Win json file versions - update vk.xml - update vuid_mapping.py - update vk_validation_error_messages.h - update vk_validation_error_database.txt - update vulkan.hpp - fixed error in vk.xml, unofficially Change-Id: Ia719bc069cb776c5b174f41667d591b43aaaf4d7
2017-11-21scripts: Update toolchain revision check scriptMark Lobodzinski
No longer need to check spirv-tools or spirv-headers as they are now part of glslang. Change-Id: Ib3594d064d33a94d6443426e02a617c96b243893
2017-11-17icd:Increase WHOLE_SIZE mapped memoryTobin Ehlis
Bump hard-coded mapped memory allocation size for WHOLE_SIZE from 4k to 64k. One validation test (InvalidMemoryMapping) was mapping 64k of memory that was leading to segF as the 4k buffer was overwritten when shadowed.
2017-11-17icd:Expand mock icd memory type bit supportTobin Ehlis
Image/buffer memory requirement memoryTypeBits are still just hard- coded in mock icd, but expand to support more bits for more simulated memory types. This helps the mock work in conjunction with the devsim layer so that if a simulated device has more than 5 memory types, the mock icd won't cause an error.
2017-11-15scripts: Fix incorrect object type mappingsMark Lobodzinski
'Unknown' type was at the end of a couple of the lists, causing incorrect IDs to be emitted. Change-Id: I55cae6ecaff47977dca78e2f73468980f9450bda
2017-11-09layers: Don't confuse VkResult/VkBool32 in generators.Jamie Madill
In some cases, the generator would return the special error for validation failed for functions that return a VkBool32. Fix this, and also some cases of initializing a VkBool32 with VkResult. Change-Id: Icc071e647f293848d62a922d492ed41dfc5a4be1
2017-11-09layers: Make generator helpers Python 2 compatible.Jamie Madill
This is an easy compatiblity change, which uses a workaround to import a version of 'open' that can support unicode across Python versions. Affects the object tracker and parameter validation generators. Change-Id: Ie958dc64168db9e06b36321b4b6ad2336f995ea3
2017-11-09layers: Return an error when generator scripts fail.Jamie Madill
Currently the scripts would abort with an error message, but not an OS error code. Adding an error code allows build systems to correctly detect the script failure as a failed build step. Change-Id: I142a6215a3c02e6a880bfce0c3aba2c3c8fc4ff1
2017-11-06icd:Reduce offset alignment limitsTobin Ehlis
Buffer min offset alignments were set to the max value. Reduce them to 16 to simplify testing of offsets that are a multiple of the min alignment.
2017-11-06icd:Don't return support for Undefined FormatTobin Ehlis
2017-11-03layers: Refactored pNext chain walks to templateJohn Zulauf
The while loops for the walking the pNext chains were implemented by repeated code. These were refactored into a common template. Added autogenerated 'traits' objects for the pNext linked structs. Delete cut and paste duplicate pNext chain walk. Change-Id: I46457bb5432219c74f9356e5230c70e4a9ef16df
2017-11-02icd: thread protect mapsMike Stroyan
Lock to protect threaded access to queue_map and mapped_memory_map.
2017-10-31scripts:Cleanup comments and output for mock icdTobin Ehlis
Commented out a couple of debug output statements. Killed a bunch of comments and code that were carried over from original script but that are no longer relevant.
2017-10-30icd:Fixes for Windows buildTobin Ehlis
2017-10-30icd:Get more tests passing on mock ICDTobin Ehlis
Modifying hard-coded minImageTransferGranularity for the queue from {0,0,0}, which has special restrictions, to {1,1,1} which is more lenient and removes some unexpected errors, allowing six more tests to pass.
2017-10-30icd:Limit image properties for linear imagesTobin Ehlis
If an image is linear, return max mips, layers, and sample count of 1.
2017-10-30scripts:Skip some extensions in mock ICDTobin Ehlis
Mock ICD doesn't need to implement validation cache extension. Add simple list of excluded exceptions so we can kill any cases that we don't want in mock ICD. Initially only excludes validation cache.
2017-10-30icd: Adding generated mock icdTobin Ehlis
Initial check-in for mock icd which is being built to allow validation testing without the need for an actual Vulkan device. ICD is currently building and passing 324/332 tests. It creates ptr handles for dispatchable objects and unique id handles for non-dispatchable objects. It currently has some hard-coded values for various Get* device-query functions in order to allow forward progress. The long-term intention is to allow the device configuration to be set by the test itself. See the ICD README.md file for more info.
2017-10-30header: Update to version 1.0.65 of the Vulkan hdrMark Lobodzinski
- update vulkan.h - update vk.xml - update Win/Lin json file versions - update vk_validation_error_messages.h - update vk_validation_error_database.txt - update vulkan.hpp Change-Id: Ib20f1955df85a31069c9ffc69c3260973b2c6633
2017-10-24header: Update to version 1.0.64 of the Vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated Win/Lin json files - updated vk_validation_error_messages.h - updated vk_validation_error_database.txt - updated vulkan.hpp - updated vuid_mapping.py - updated cube.cpp for vulkan-hpp changes Change-Id: I79971c3b54feb1fdad5ea2257e4b1b4c6f9e3c3b
2017-10-23scripts: Update vuid_mapping.py for 64 headerMark Lobodzinski
Change-Id: I3f55bd5ee0296fc962bb2ee624391e793f8f9fe4
2017-10-19scripts: Remove asserts from struct size helpersJoey Bzdek
Unknown structures will return a 0 size instead of failing, in order for them to be ignored properly.
2017-10-10scripts: add get_struct_size helper functionDavid Pinedo
Change-Id: I12494a129ef8be68170dddf4efe6762f4051b116
2017-10-09header: Update to version 1.0.62 of the Vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated Win/Lin .json files - updated vuid_mapping.py - updated vk_validation_error_database.txt - updated vk_validation _error_messages.h - updated vulkan.hpp Change-Id: I82eb3db55d301af3a11ffbb12411cc2df7c31807
2017-10-09scripts: Specify utf-8 encoding for db fileMark Lobodzinski
Change-Id: I0a76a6d9766041a9f70053e7385517c0b1d7022c
2017-10-09scripts: Handle goofy unicode chars in spec.pyMark Lobodzinski
Forward and backward double-quotes are now changed to standard double-quote chars, and escaped as they are output in the DB. Change-Id: Icbdc23262c8da0dd2441b028997a3f30d69d6834
2017-10-06tests: Fix doc validator scriptMark Lobodzinski
Script was intolerant of unicode characters that now show up in the spec. Change-Id: I125f12139eec395ffc8ae61e92de1428fa2ac0c6
2017-10-04scripts: Generate copy assignment operators for safe_*Chris Forbes
2017-09-21build: Update for 1.0.61.0 SDKLenny Komow
Change-Id: I4b1f0289dace648153b6efdbfea0d83d37b28e60
2017-09-12Revert "layers: Fix Graphics Pipeline pointers not ignored"Mark Lobodzinski
This caused segfaults on Intel Skylake, NexusPlayer, and Samsung Galaxy S8 (Mali). This reverts commit 367d276ffe5c0748ff9d8e2b3551d4a00c9fc3c2.
2017-09-12layers: Fix Graphics Pipeline pointers not ignoredPetr Kraus
Some VkGraphicsPipelineCreateInfo pointers must be ignored under some conditions, but were not in the layers. Add relevant tests. Fix tests found broken (using depth or color without attachment in subpass) Change-Id: I3e2a3f61a52c72ce3a11483ff8b031189f4c61c9
2017-09-11scripts: Check toolchain revisions, remove if they differCody Northrop
This script compares tracked revisions against those under external and deletes them if they differ.
2017-09-07header: Update to 1.0.60Mike Schuchardt
Change-Id: I118be4455c68800e27fd9b8293699037449f1413
2017-09-07scripts: Fix VkShaderModuleCreateInfo safe structMike Schuchardt
Allocate and copy the entire shader program instead of just the first 4 bytes. Change-Id: I24dd136d59952f9e8b690bf4fe1702106482a3be
2017-08-28scripts: PV codegen handle multiple requiresMike Schuchardt
Modify parameter validation codegen to handle multiple require blocks in an extension, each with additional extension dependencies. Change-Id: I336569ca19808f3dca342eb65fd076599c4fb329
2017-08-24scripts: Enable instance extension checks in PVMark Lobodzinski
Parameter_validation's hammer for excluding some pdev-ish checks was too large. This adds extension dependency checks for about 50 more APIs. Change-Id: Icb44cdb36c8c0384781e04e207ceb18d9f67ff0c
2017-08-23header: Update to version 1.0.59 of the vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated Win/Lin json files - rebuilt and updated vulkan.hpp - updated vk_validation_error_database.txt - updated vk_validation_error_messages.h - added new code-generated VUIDs (16) to error database - modified object tracker for VUID corner-case - updated vulkaninfo.c for STYPE name change Change-Id: I0870e8bc4e84867e05bd466c13c7428b9b7365ac
2017-08-23layers: Use correct data layer in vkCreateInstance in param validationGabríel Arthúr Pétursson
2017-08-16layers: Move PV custom funcptrs into mapMark Lobodzinski
Simplifies steps necessary for new custom functions. Change-Id: Ib2d80346ebc42011dce74fdd8cee62adb4b3432c
2017-08-16layers: Re-architect parameter validation layerMark Lobodzinski
Changed the codegen to autogenerate validation functions for any new APIs without user intervention. Manual updates are only necessary to extend PV functionality. - parameter_validation.h is now checked into the layers directory - parameter_validation.cpp is now generated - parameter_validation_utils.cpp is new and contains any custom (non-generated) or housekeeping functions. - parameter_validation_utils.h is deprecated - updated database for new VUID coverage Change-Id: Ib9261894386145573ba9e8906ba4ad4e9fecbdfd
2017-08-15header: Update to version 1.0.58 of the vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated cgenerator.py - updated Win/Lin json files - updated vulkan.hpp - updated vk_validation_error_messages.h - updated vk_validation_error_database.h Change-Id: I8c525b6a2bd69914440c6d7984a67446b27e6c23
2017-08-08layers: Fix CmdPushDescriptorSet object trackerTony Barbour
Ignore the dstSet field of VkWriteDescriptorSet as indicated by the spec Change-Id: I28ca6ea3059f5528bdf369954e1621ef670e0d54
2017-08-02layers: Fix incorrect VUID for negative viewport htMark Lobodzinski
Layers used the wrong VUID for the checks for negative viewport height if the extensions were not enabled. Fixed existing test, added a new test, and updated the database, and removed special case from validation_stats script. Change-Id: Ia165e6245990a4fabb3745102b345a7b4f1b0202
2017-08-01header: Update to version 1.0.57 of the vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated cgenerator.py - updated Win/Lin json files - updated and fixed vk_validation_error_database.h - updated vk_validation_error_messages.h - updated vulkan.hpp Change-Id: Idebc490660833daac43d234db44131e9bf2b910b
2017-07-27scripts: Exclude disable extension enumsMark Lobodzinski
Including these enums hosed up the private builds. Change-Id: I74fcb628171dfd70e7bce03e7ede35d4d22a75b5
2017-07-26scripts: Generate PV calls to ranged_enum_array fcnMark Lobodzinski
Change-Id: I106fe73c2199d1b4d8aa090bd22bb79884637d58