aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-29layers: Intercept vkEnumerateInstance[Layer|Extension]Properties() funcs in ↵Tobin Ehlis
DeviceLimits
2015-09-29Fix windows build issues in cube.c and device_limits.cppTobin Ehlis
2015-09-29layers: DeviceLimits device feature checks and dead code removalTobin Ehlis
Refactored DeviceLimits to store maps in the layer_data struct in order to reduce map look-ups. Added new checks and documentation related to Features checking. If specific features are requested at vkCreateDevice() time by the app, then they are checked against the supported features of the physical device. Requesting unsupported features cause validation errors. If the user did not query features and is asking for any unsupported features, then a warning message recommending that they query features is also printed along with the error(s) for unsupported features.
2015-09-29demos: Query device features in cube prior to creating deviceTobin Ehlis
2015-09-28layers: Add constructors for layer_dataCody Northrop
2015-09-28layers: Remove object map before vkDestroy*Mike Stroyan
Don't use object as dispatchable after destroy.
2015-09-28WSI Validation: Removed 2 checks that are driver-specific.Ian Elliott
The purpose of this layer is to validate the application's usage of WSI, not to validate the driver's conformance with WSI.
2015-09-28misc: Change all JSON files to abi version 0.9.0Jon Ashburn
2015-09-28demos: vulkaninfo: increase console buffer size so that output can be readDavid Pinedo
2015-09-25layers: remove static declaration of get_my_data_ptrMike Stroyan
Windows compiler won't allow static on specialization.
2015-09-25layers: Image layer does not need to reserve spaceMike Stroyan
Image layer had been calling imageMap.reserve to recover from memset of imageMap. That is no longer needed.
2015-09-25layers: don't memset layer data in get_my_data_ptrMike Stroyan
get_my_data_ptr was zeroing data after using new. It should leave the layer data as its constructor set it.
2015-09-25Remove WSI from "General Pending Work" section of layer documentation.Ian Elliott
2015-09-25Move documentation for Swapchain -> it's a validation layerIan Elliott
2015-09-25WSI Validation: Add error enum and document Swapchain layer.Ian Elliott
2015-09-25misc: Move snprintf define to vk_sdk_platform.hCourtney Goeltzenleuchter
Windows doesn't define snprintf so we need to #define it to what Windows does use in our SDK platform header.
2015-09-25Make layers build on android.Michael Lentine
2015-09-25tri: cleanup valgrind errorsCourtney Goeltzenleuchter
Integrate changes from merge request #5.
2015-09-25cube: Fix valgrind warningsCourtney Goeltzenleuchter
2015-09-25Change ERROR -> PERF_WARN in vkAcquireNextImageKHR().Ian Elliott
2015-09-25WSI Validation: Initial WSI "swapchain" validation layer.Ian Elliott
2015-09-25cube/tri: Changed invalid <size> argument value for vkMapMemory()Dominik Witczak
2015-09-25layers: LunarXChange #123 fix - Validate Update/FillBuffer outside RPMark Lobodzinski
Validated that these are not called in an active RP, added validation tests for these and some other renderpass-dependent APIs.
2015-09-24layers: Note pending work for ObjectTrackerMike Stroyan
Instance and device specific objects. Refcounts of duplicate non-dispatchable objects.
2015-09-24layers: Added Image layer to validation test suite with new test for bad ↵Tobin Ehlis
ImageView
2015-09-24layers: Update Image layer to support validation callback error return statusTobin Ehlis
2015-09-24layers: Update Image layer to offload view.c validation checks from driverTobin Ehlis
Moved checks related to ImageView creation from the driver into the Image layer. Added image.h header and ENUMs for various Image error types, along with documenation for each type.
2015-09-23bug-14715: DrawIndirect fixCourtney Goeltzenleuchter
This patch contains fixes to structure layout for draws. These structures are accessed by HW and must be in a specific order. This change also includes reordering of the parameters for vkCmdDraw and vkCmdDrawIndexed.
2015-09-23layers: Remove unneeded layer_common.hCourtney Goeltzenleuchter
The header only had one include in it.
2015-09-23layers: layer generate confused by Count parameterCourtney Goeltzenleuchter
The generator was getting confused by the argument list of vkCmdDrawIndexed(cmdBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance) It saw instanceCount and then wanted to expand firstInstance. I had to terminate it match search after one miss to stop it recognizing firstInstance as an array of Instance items.
2015-09-23loader: Remove instance validation checks from debug_report.cMark Lobodzinski
Cannot reach these points with an invalid instance value.
2015-09-23layers: release mutex in DrawStateMike Stroyan
Release mutex when last instance is destroyed.
2015-09-23layers: VkDestroyInstance+VkDestroyDevice clear ObjectTracker mapsMike Stroyan
Don't complain about lingering objects more than once. Once their device or instance is gone don't keep their information around. This should change dramatically to have independent maps for each instance/device. Don't complain about other devices remaining in vkDestroyDevice.
2015-09-23Added request for VkShaderCreateInfo.stage checkJens Owen
2015-09-23build: fix update_external_sources.bat to pick up SPIRV rev32 for glslangGregF
2015-09-23loader: Remove validation checks from loader.cMark Lobodzinski
These checks are covered by ObjectTracker.
2015-09-23bug-14365: add dynamic state to PSOCourtney Goeltzenleuchter
This commit covers phase 2 of the removal of dynamic state objects. Now, an application can include an array of VK_DYNAMIC_STATE_* values that tell the driver which PSO dynamic state elements to use. I.e. if VK_DYNAMIC_STATE_LINE_WIDTH was specified in the pDynamicState array then the ICD should use the lineWidth defined at PSO create time and ignore any set using vkCmdSetLineWidth. To accomplish that the driver will make a copy of the dynamic state specified in the PSO as well as a bitmask of the affected state. When vkCmdSet* is called, the driver will check if a PSO override is current and ignore the call if so. At PSO bind time the command buffer's dynamic state will be updated and the PSO override bitmask set so that any future vkCmdSet*'s will be appropriately ignored. TODO: Validation layer should probably indicate a warning if app tries to do vkCmdSet on state defined by the PSO.
2015-09-23bug 14365: make separate viewport and scissor cmdsCourtney Goeltzenleuchter
2015-09-23bug 14365: replace dynamic state objectsCourtney Goeltzenleuchter
This is phase 1 of the replacement of dynamic state objects. In this commit we remove the create and destroy functions and rename the CmdBind... with CmdSet...
2015-09-23layers: Add function to check if msg will be loggedCourtney Goeltzenleuchter
A layer can use will_log_msg to determine if any output at the designated notification level(s) will be sent somewhere. This will allow a validation layer to avoid high compute validation tests if the results are going to be looked at.
2015-09-23intel: Removed ICD validation checks from dev.cMark Lobodzinski
2015-09-22build: move to SPIR-V rev 32GregF
2015-09-22intel: Removed ICD validation checks from img.cMark Lobodzinski
Moved validation into device_limits layer, created layer utils files for format utilities, added validation tests, updated validation doc, updated test framework to call GetPhysicalDeviceProperties.
2015-09-22Remove libpng and zlib dependencies, add copyrightsTony Barbour
2015-09-22loader: Add lock around cJSON so big loader lock is not needed as muchJon Ashburn
cJSON not thread safe. Add a lock around cJSON calls so instance extension and layer queries don't need the big lock. This allows layers to do queries from CreateInstance.
2015-09-22layers: DeviceLimits warns if queue properties not queried prior to ↵Tobin Ehlis
vkCreateDevice()
2015-09-22demos: Update Cube to select graphics queue based on query of queue propertiesTobin Ehlis
Also enabling DeviceLimits and Image layers when --validate option selected.
2015-09-22build: fixes for latest SPIR-V rev 31GregF
Primarily, this deals with new binding field in metadata rather than having location field do double duty.
2015-09-22WSI: Small code changes to deal with latest WSI header.Ian Elliott
A structure's sType was missed in the grand renaming that took place a while ago, and was fixed with the latest WSI header changes.
2015-09-22WSI: Update vk_ext_khr_device_swapchain.h to revision 53 (SDK 0.9)Ian Elliott