platform/upstream/Vulkan-Tools.git
8 years agolayers: Add todo flagging destroy while on queue
Mike Stroyan [Fri, 28 Aug 2015 17:33:32 +0000 (11:33 -0600)]
layers: Add todo flagging destroy while on queue

This starts with the case of early VkDestroySemaphore seen in demos.
It is a much larger general case of objects that are active on queues.

8 years agodemos: vkDestroySemaphore only after it is unused.
Mike Stroyan [Fri, 28 Aug 2015 16:58:06 +0000 (10:58 -0600)]
demos: vkDestroySemaphore only after it is unused.

Semaphores should not be destroyed when in use.
Call vkQueueWaitIdle before calling vkDestroySemaphore.

8 years agolayers: Handle bad filename in APIDump settings file
Tobin Ehlis [Fri, 28 Aug 2015 15:57:53 +0000 (09:57 -0600)]
layers: Handle bad filename in APIDump settings file

If APIDumpLogFilename requested in vk_layer_settings.txt file has a bad path or cannot be opened for some other reason, then APIDump will write out an ERROR message w/ the bad filename and notify user that STDOUT will be used instead.

8 years agovktrace: Add support for debug_marker_lunarg extension
Tobin Ehlis [Thu, 27 Aug 2015 23:41:42 +0000 (17:41 -0600)]
vktrace: Add support for debug_marker_lunarg extension

8 years agolayers: Fix ObjectTracker to handle dyanamic array params
Tobin Ehlis [Wed, 26 Aug 2015 17:22:09 +0000 (11:22 -0600)]
layers: Fix ObjectTracker to handle dyanamic array params

ObjectTracker will now check for valid objects across all entries of arrays that are passed as params. This includes all objects embedded in arrays of structs such as the pCreateInfos array in vkCreateGraphicsPipelines().

8 years agovk_platform: Update to upstream vk_platform.h
Courtney Goeltzenleuchter [Wed, 26 Aug 2015 21:09:25 +0000 (15:09 -0600)]
vk_platform: Update to upstream vk_platform.h

Gitlab bug #9: https://gitlab.khronos.org/vulkan/LoaderAndTools/issues/9
noted that the SDK's vk_platform.h did not match the upstream vk_platform.h.
This patch makes them identical updates impacted code.

8 years agodemos: Fix compile warning setting renderPass
Courtney Goeltzenleuchter [Wed, 26 Aug 2015 20:48:00 +0000 (14:48 -0600)]
demos: Fix compile warning setting renderPass

8 years agonulldrv: Make build work on Windows with destroydynamiclinewidth
Jon Ashburn [Thu, 27 Aug 2015 21:02:23 +0000 (14:02 -0700)]
nulldrv: Make build work on Windows with destroydynamiclinewidth

8 years agoloader: Fix SegFault if ICD JSON file doesn't exist to return gracefully
Jon Ashburn [Thu, 27 Aug 2015 14:30:50 +0000 (08:30 -0600)]
loader: Fix SegFault if ICD JSON file doesn't exist to return gracefully

8 years agovktrace: GLAVE file/directory renaming
Mark Lobodzinski [Fri, 14 Aug 2015 20:24:50 +0000 (14:24 -0600)]
vktrace: GLAVE file/directory renaming

Glave/glv files and directories renamed. Default trace files now named
*.trace.

8 years agoRemove extraneous temp file
Cody Northrop [Thu, 27 Aug 2015 16:21:00 +0000 (10:21 -0600)]
Remove extraneous temp file

8 years agolayers: Fix APIDump to correctly set output file name from settings file
Tobin Ehlis [Wed, 26 Aug 2015 22:18:52 +0000 (16:18 -0600)]
layers: Fix APIDump to correctly set output file name from settings file

8 years agoMerge branch 'check-cube-arrays-complete' into 'master'
Tobin Ehlis [Thu, 27 Aug 2015 14:00:41 +0000 (10:00 -0400)]
Merge branch 'check-cube-arrays-complete' into 'master'

check that cube array views are complete cubes

See merge request !29

8 years agocheck that cube array views are complete cubes
Cass Everitt [Thu, 27 Aug 2015 10:17:57 +0000 (05:17 -0500)]
check that cube array views are complete cubes

8 years agov156: Bump API minor version
Cody Northrop [Wed, 26 Aug 2015 16:39:01 +0000 (10:39 -0600)]
v156: Bump API minor version

8 years agov156: Bug 14451 - Rename dynamic state objects
Cody Northrop [Wed, 26 Aug 2015 16:01:32 +0000 (10:01 -0600)]
v156: Bug 14451 - Rename dynamic state objects

8 years agoBug 14474: Remove *_USAGE_GENERAL
Cody Northrop [Tue, 25 Aug 2015 21:39:48 +0000 (15:39 -0600)]
Bug 14474: Remove *_USAGE_GENERAL

8 years agov155: Bug 14435 - Remove abbreviations in VkClearColor
Cody Northrop [Tue, 25 Aug 2015 21:26:38 +0000 (15:26 -0600)]
v155: Bug 14435 - Remove abbreviations in VkClearColor

8 years agov154: Bug 14417 - Added VkShaderStage to VkShaderCreateInfo
Cody Northrop [Mon, 24 Aug 2015 21:11:10 +0000 (15:11 -0600)]
v154: Bug 14417 - Added VkShaderStage to VkShaderCreateInfo

8 years agov153: Minor version bump for bugs 14323, 14400, 14339, 14406
Cody Northrop [Tue, 25 Aug 2015 16:12:18 +0000 (10:12 -0600)]
v153: Minor version bump for bugs 14323, 14400, 14339, 14406

8 years agoBug 14406: Add support for front/back stencil reference dynamic state
Cody Northrop [Tue, 18 Aug 2015 21:21:16 +0000 (15:21 -0600)]
Bug 14406: Add support for front/back stencil reference dynamic state

8 years agoBug 14339: Add the missing alphaToOneEnable to VkPipelineColorBlendStateCreateInfo
Cody Northrop [Tue, 18 Aug 2015 21:16:50 +0000 (15:16 -0600)]
Bug 14339: Add the missing alphaToOneEnable to VkPipelineColorBlendStateCreateInfo

8 years agoBug 14400: Add FORMAT_FEATURES for blits
Cody Northrop [Tue, 18 Aug 2015 20:58:29 +0000 (14:58 -0600)]
Bug 14400: Add FORMAT_FEATURES for blits

8 years agoBug 14323: RasterLine and RasterDepthBias changes
Cody Northrop [Mon, 17 Aug 2015 17:10:49 +0000 (11:10 -0600)]
Bug 14323: RasterLine and RasterDepthBias changes

8 years agoloader: Add support for relative pathnames in the ICD manifest file lib_path
Jon Ashburn [Tue, 25 Aug 2015 22:48:24 +0000 (16:48 -0600)]
loader: Add support for relative pathnames in the ICD manifest file lib_path

8 years agoFix formatting for GitLab web interface
Jens Owen [Tue, 25 Aug 2015 16:29:34 +0000 (12:29 -0400)]
Fix formatting for GitLab web interface

8 years agolayers: Initial commit of Validation Details md file
Tobin Ehlis [Tue, 25 Aug 2015 15:56:38 +0000 (09:56 -0600)]
layers: Initial commit of Validation Details md file

This is intended to be a comprehensive list of validation checks in the Vulkan validation layers. For each layer, a table is included that describes the checks performed by that layer, the relevant API calls, the associated ERROR/WARNING code, any tests that exercise that check, and further notes or TODOs. Also each layer has a "pending work" section so that checks to be added in the future can be documented here.

This is intended to be a working document where the document stays in synch with the code. Also, if missing validation checks are identified, but cannot be immediately implemented, they should be added to an appropriate "pending" section. Finally, if someone wants to contribute to the validation efforts, they can identify existing "pending" work to implement.

8 years agoloader: Make so layer manifest files are retained at CreateInstance
Jon Ashburn [Thu, 20 Aug 2015 22:35:30 +0000 (16:35 -0600)]
loader: Make so layer manifest files are retained at CreateInstance

layer manifest files were rescanned after CreateInstance as needed for
CreateDevice and GetPhysicalDeviceXXXProperties. Now stored the device
and instance layer list in instance object.

Also fix mem leak of extension list in some cases.
Also fix bug where deep copy of instance  to device layer properties was
not being done. Only a shallow copy was being done.
Also remove the lib_info struct from layer properties structure as only the
lib name field was being used. Other layer library info is stored in the
layer_library_list once the layer libraries are opened.

8 years agoloader: Make the ICD library scan happen as needed rather than once
Jon Ashburn [Wed, 19 Aug 2015 00:04:47 +0000 (18:04 -0600)]
loader: Make the ICD library scan happen as needed rather than once

Add a one time loader init routine also since this was done by ICD scan.
Add icd library struct to instance object.

8 years agoloader: Remove the device_extension list from from scanned icds, unused
Jon Ashburn [Fri, 14 Aug 2015 20:55:23 +0000 (14:55 -0600)]
loader: Remove the device_extension list from from scanned icds, unused

8 years agoloader: Remove the global extension list from scanned_icds struct
Jon Ashburn [Fri, 14 Aug 2015 20:49:22 +0000 (14:49 -0600)]
loader: Remove the global extension list from scanned_icds struct

This list is regenerated as needed and stored in the instance object.

8 years agoloader: Make the global/instance ext list once for each instance
Jon Ashburn [Fri, 14 Aug 2015 18:51:47 +0000 (12:51 -0600)]
loader: Make the global/instance ext list once for each instance

Also fix some bugs in the heap_alloc/heap_free.
Also fix some memory leaks.

8 years agoloader: Remove global instance extension list and rebuild it as needed
Jon Ashburn [Fri, 14 Aug 2015 17:57:54 +0000 (11:57 -0600)]
loader: Remove global instance extension list and rebuild it as needed

This will be necessary once ICDs are rescanned at CreateInstance and prior.

8 years agotests: Fix tests that re-submit Cmd Buffers w/ ONE_TIME_SUBMIT flag
Tobin Ehlis [Tue, 18 Aug 2015 20:24:32 +0000 (14:24 -0600)]
tests: Fix tests that re-submit Cmd Buffers w/ ONE_TIME_SUBMIT flag

Added a way to pass VkCmdBufferBeginInfo through test framework.

For tests that do multiple submits, update BeginCommandBuffer() calls to not set ONE_TIME_SUBMIT flag.

8 years agolayers: Add validation check to enforce ONE_TIME_SUBMIT of cmd buffers
Tobin Ehlis [Tue, 18 Aug 2015 13:10:58 +0000 (07:10 -0600)]
layers: Add validation check to enforce ONE_TIME_SUBMIT of cmd buffers

Track createInfo and beginInfo independently per cmdBuffer & check begin flags at QueueSubmit time to verify cmd buffer not submitted multiple times if VK_CMD_BUFFER_OPTIMIZE_ONE_TIME_SUBMIT_BIT is set.

Add CmdBufferTwoSubmits test to verify this check.

8 years agocube: Set pipeline renderpass
Courtney Goeltzenleuchter [Thu, 13 Aug 2015 22:55:04 +0000 (16:55 -0600)]
cube: Set pipeline renderpass

LunarXchange issue #111:
https://vulkan.lunarg.com/app/issues/55cbc6d77ef24d0001000001
noticed that the pipeline's renaderPass was not being set.

8 years agoRevert "demos: Add dependency for SPIRV shader components"
Mike Stroyan [Thu, 13 Aug 2015 17:33:08 +0000 (11:33 -0600)]
Revert "demos: Add dependency for SPIRV shader components"

This reverts commit 7dffaa146e1ec138b1c6a0b02a3b54d352636683.

8 years agolayers: Change Threading layer dispatch and logging
Mike Stroyan [Mon, 10 Aug 2015 22:42:53 +0000 (16:42 -0600)]
layers: Change Threading layer dispatch and logging

Use new log_msg with per instance and device dispatch

8 years agolayers: Remove unused layer-dispatch target
Mike Stroyan [Mon, 10 Aug 2015 22:41:54 +0000 (16:41 -0600)]
layers: Remove unused layer-dispatch target

8 years agolayers: Optimize DrawState when info is not shown
Mike Stroyan [Wed, 12 Aug 2015 23:11:28 +0000 (17:11 -0600)]
layers: Optimize DrawState when info is not shown

Return quickly from synchAndPrintDSConfig when info is not requested.

8 years agolayers: Remove add_dependencies of .def files
Mike Stroyan [Wed, 12 Aug 2015 21:22:04 +0000 (15:22 -0600)]
layers: Remove add_dependencies of .def files

The generated .def files should not be listed with add_dependencies.

8 years agolayers: Remove active flags with removed callbacks
Mike Stroyan [Mon, 10 Aug 2015 22:14:18 +0000 (16:14 -0600)]
layers: Remove active flags with removed callbacks

layer_destroy_msg_callback was including flags from just removed callbacks.

8 years agodemos: Updated vulkaninfo for new features/limits entries
Mark Lobodzinski [Fri, 14 Aug 2015 16:30:30 +0000 (10:30 -0600)]
demos: Updated vulkaninfo for new features/limits entries

Also cleaned up output

8 years agolayers: Fix windows build for multi layer .def file
Jon Ashburn [Thu, 13 Aug 2015 21:15:07 +0000 (14:15 -0700)]
layers:  Fix windows build for multi layer .def file

8 years agoloader: Fix bug in heap_free function to not do double free
Jon Ashburn [Thu, 13 Aug 2015 14:28:48 +0000 (08:28 -0600)]
loader: Fix bug in heap_free function to not do double free

8 years agolayers: Make multi layer functional again as a multi layer per library
Jon Ashburn [Wed, 12 Aug 2015 22:43:01 +0000 (16:43 -0600)]
layers: Make multi layer functional again  as a multi layer per library

Pretty much a total rewrite of this layer.

Make multi1 a Device layer and multi2 an Instance layer.
Remove all extension and layer property stuff, rely on manifest file.
Remove all old common stuff, rely on newer loader/layer interface which
can handle multiple layers pre library via manifest file.

8 years agoloader: Handle multiple layers descriptions per manifest file
Jon Ashburn [Wed, 12 Aug 2015 22:39:32 +0000 (16:39 -0600)]
loader: Handle multiple layers descriptions per manifest file

8 years agoBug 14407 - Add texelCoords to Sampler state
Cody Northrop [Tue, 11 Aug 2015 21:50:55 +0000 (15:50 -0600)]
Bug 14407 - Add texelCoords to Sampler state

8 years agoBug 14339 - Add alphaToOne as an optional feature
Cody Northrop [Tue, 11 Aug 2015 21:38:21 +0000 (15:38 -0600)]
Bug 14339 - Add alphaToOne as an optional feature

8 years agov151: Bug 14386 - Change VK_NULL_HANDLE from a 0 to a nullptr
Cody Northrop [Tue, 11 Aug 2015 21:25:08 +0000 (15:25 -0600)]
v151: Bug 14386 - Change VK_NULL_HANDLE from a 0 to a nullptr

8 years agov150: Bug 14384 - Add a subpass field to VkCmdBufferBeginInfo
Cody Northrop [Tue, 11 Aug 2015 17:35:58 +0000 (11:35 -0600)]
v150: Bug 14384 - Add a subpass field to VkCmdBufferBeginInfo

8 years agov149: Fix header ordering bug
Cody Northrop [Tue, 11 Aug 2015 17:21:48 +0000 (11:21 -0600)]
v149: Fix header ordering bug

8 years agonulldrv: Change to new WSI query functions.
Ian Elliott [Mon, 10 Aug 2015 19:56:08 +0000 (13:56 -0600)]
nulldrv: Change to new WSI query functions.

8 years agolayers: mem_tracker: Change to new WSI query functions.
Ian Elliott [Fri, 7 Aug 2015 20:11:14 +0000 (14:11 -0600)]
layers: mem_tracker: Change to new WSI query functions.

8 years agodemos: Change to new WSI header ...
Ian Elliott [Fri, 7 Aug 2015 21:56:59 +0000 (15:56 -0600)]
demos: Change to new WSI header ...

Change to:

- Use new WSI query functions.
- Set new VkSwapChainCreateInfoWSI members.

8 years agoloader: Change to new WSI query functions.
Ian Elliott [Thu, 6 Aug 2015 22:55:36 +0000 (16:55 -0600)]
loader: Change to new WSI query functions.

8 years agovulkan.py: Change to new WSI query functions.
Ian Elliott [Thu, 6 Aug 2015 23:05:06 +0000 (17:05 -0600)]
vulkan.py: Change to new WSI query functions.

8 years agoWSI: Update swapchain headers to to version 13 and 45.
Ian Elliott [Thu, 6 Aug 2015 22:22:51 +0000 (16:22 -0600)]
WSI: Update swapchain headers to to version 13 and 45.

Update "vk_wsi_device_swapchain.h" to version 45.
Update "vk_wsi_swapchain.h" to version 13.

8 years agobuild: rebuild LLVM when LLVM overlay files change
GregF [Tue, 11 Aug 2015 22:03:28 +0000 (16:03 -0600)]
build: rebuild LLVM when LLVM overlay files change

8 years agolayers: Don't output DrawState dynamic state info for null handles
Mark Lobodzinski [Tue, 11 Aug 2015 21:44:15 +0000 (15:44 -0600)]
layers: Don't output DrawState dynamic state info for null handles

This was causing random segfaults in the layer validation tests.

8 years agoloader: Remove one time scan of layer libraries; do it as needed
Jon Ashburn [Tue, 11 Aug 2015 20:49:54 +0000 (14:49 -0600)]
loader: Remove one time scan of layer libraries; do it as needed

Everytime get a Vulkan API call which needs layer library info rescan
all layer manifest files to get the info.  This way if they change the list will
be updated.

8 years agolayers: Handle uninitialized QueueFamily values in APIDump
Mark Lobodzinski [Tue, 11 Aug 2015 15:35:02 +0000 (09:35 -0600)]
layers: Handle uninitialized QueueFamily values in APIDump

If queueFamilyCount or pQueueFamilyIndices were uninitialized, APIDump
would persist in printing this info resulting in a segfault. Added
check for sharingMode before examining these values.

8 years agobuild: advance glslang and LunarGLASS versions to SPIR-V rev 31
GregF [Tue, 11 Aug 2015 00:11:50 +0000 (18:11 -0600)]
build: advance glslang and LunarGLASS versions to SPIR-V rev 31

8 years agolayers: port ShaderChecker to SPIR-V v31 (from ChrisF)
GregF [Tue, 21 Jul 2015 23:22:50 +0000 (17:22 -0600)]
layers: port ShaderChecker to SPIR-V v31 (from ChrisF)

8 years agoWSI: Remove old "vs_wsi_lunarg.h" file.
Ian Elliott [Thu, 6 Aug 2015 22:15:16 +0000 (16:15 -0600)]
WSI: Remove old "vs_wsi_lunarg.h" file.

8 years agolayers: Restore information messages to the MemTracker layer
Mark Lobodzinski [Mon, 10 Aug 2015 20:37:52 +0000 (14:37 -0600)]
layers: Restore information messages to the MemTracker layer

8 years agotests: Move DestroyShaderModule calls after pipeline creation
Mark Lobodzinski [Mon, 10 Aug 2015 19:40:32 +0000 (13:40 -0600)]
tests: Move DestroyShaderModule calls after pipeline creation

8 years agovktrace: Build vktrace as part of the main build
Jon Ashburn [Fri, 7 Aug 2015 16:55:59 +0000 (10:55 -0600)]
vktrace: Build vktrace as part of the main build

8 years agocodegen: Bring in fixes from glave codegen scripts to vulkan.py vk_helper.py
Jon Ashburn [Thu, 6 Aug 2015 23:27:49 +0000 (17:27 -0600)]
codegen: Bring in fixes from glave codegen scripts to vulkan.py vk_helper.py

Add a new target to vk_helper.py for "struct_size" so vktrace can use that.
Otherwise target "struct_wrappers" builds a bunch of files not needed by vtrace.

Add debug_report as an extension in vulkan.py. Vktrace needs this to intercept
debug_report extensions.

8 years agolayers: Reenable informational messages in DrawState layer
Mark Lobodzinski [Fri, 7 Aug 2015 23:11:09 +0000 (17:11 -0600)]
layers: Reenable informational messages in DrawState layer

8 years agoinclude: Change debug report pUserData parameter to non-const
Jon Ashburn [Thu, 6 Aug 2015 19:56:43 +0000 (13:56 -0600)]
include: Change debug report pUserData parameter to non-const

This was inconsistently defined.

8 years agotests: Fixed a few errors in Tri caught by ObjectTracker
Mark Lobodzinski [Fri, 7 Aug 2015 16:17:13 +0000 (10:17 -0600)]
tests: Fixed a few errors in Tri caught by ObjectTracker

8 years agoUpdate ICD links in BUILD.md.
Peter Gal [Fri, 7 Aug 2015 11:38:58 +0000 (13:38 +0200)]
Update ICD links in BUILD.md.

Update the ICD loader configuration links in the BUILD.md to point
to the master branch.

8 years agodemos: Initialize render pass in pipeline create
Tony Barbour [Thu, 6 Aug 2015 20:32:54 +0000 (14:32 -0600)]
demos: Initialize render pass in pipeline create

8 years agowindows: Fix various warnings
Cody Northrop [Wed, 5 Aug 2015 17:15:02 +0000 (11:15 -0600)]
windows: Fix various warnings

Categories include:
 ASSERT_TRUE(int) changed to ASSERT_TRUE(0 != int)
 Change uint32_t to DeviceSize
 Stop adding with bools
 Add some explicit casting
 Remove unreferenced variables
 Add 'f' suffix to float literals

Conflicts:
tests/vkrenderframework.cpp

8 years agodemos: Fix trivial bugs in tri
Tony Barbour [Thu, 23 Jul 2015 16:34:15 +0000 (10:34 -0600)]
demos: Fix trivial bugs in tri

8 years agoUpdate stale info in BUILD.md.
Dejan Mircevski [Wed, 5 Aug 2015 19:17:06 +0000 (15:17 -0400)]
Update stale info in BUILD.md.

8 years agoloader: Change layer manifest file location env var to VK_LAYER_PATH
Jon Ashburn [Thu, 6 Aug 2015 17:22:33 +0000 (11:22 -0600)]
loader: Change layer manifest file location env var to VK_LAYER_PATH

bug #14394

8 years agov148: Bug 14368 - Minor fixes for VkPhysicalDeviceFeatures
Cody Northrop [Tue, 4 Aug 2015 20:49:43 +0000 (14:49 -0600)]
v148: Bug 14368 - Minor fixes for VkPhysicalDeviceFeatures

8 years agov147: Bugs 14352 and 14300
Cody Northrop [Tue, 4 Aug 2015 20:44:03 +0000 (14:44 -0600)]
v147: Bugs 14352 and 14300

8 years agov146: Bug 14290 - Move typedefs from vk_platform.h to vulkan.h, make pSampleMask...
Cody Northrop [Tue, 4 Aug 2015 20:34:54 +0000 (14:34 -0600)]
v146: Bug 14290 - Move typedefs from vk_platform.h to vulkan.h, make pSampleMask an array

8 years agov145: Bug 14160 - Remove VK_DEVICE_CREATE_VALIDATION_BIT and unused flags field
Cody Northrop [Tue, 4 Aug 2015 19:45:07 +0000 (13:45 -0600)]
v145: Bug 14160 - Remove VK_DEVICE_CREATE_VALIDATION_BIT and unused flags field

8 years agov144: Bug 14292 - Rename VkRenderPassBeginInfo::attachmentCount to clearValueCount
Cody Northrop [Tue, 4 Aug 2015 17:51:03 +0000 (11:51 -0600)]
v144: Bug 14292 - Rename VkRenderPassBeginInfo::attachmentCount to clearValueCount

8 years agov143: Bug 14277 - Follow pointer naming convention in VkSubpassDescription
Cody Northrop [Tue, 4 Aug 2015 17:16:41 +0000 (11:16 -0600)]
v143: Bug 14277 - Follow pointer naming convention in VkSubpassDescription

8 years agov142: Bug 14275 - Remove image layouts in VkFramebufferCreateInfo
Cody Northrop [Tue, 4 Aug 2015 16:47:08 +0000 (10:47 -0600)]
v142: Bug 14275 - Remove image layouts in VkFramebufferCreateInfo

8 years agov140: Bug 14251 - Inconsistencies in the definition of queries
Cody Northrop [Mon, 3 Aug 2015 23:04:53 +0000 (17:04 -0600)]
v140: Bug 14251 - Inconsistencies in the definition of queries

8 years agov139: Bug 14257 - Remove pCount parameter from vkAllocDescriptorSets
Cody Northrop [Mon, 3 Aug 2015 18:47:29 +0000 (12:47 -0600)]
v139: Bug 14257 - Remove pCount parameter from vkAllocDescriptorSets

8 years agolayers: Fixed formatting error in DrawState
Mark Lobodzinski [Tue, 4 Aug 2015 16:54:43 +0000 (10:54 -0600)]
layers: Fixed formatting error in DrawState

8 years agolayers: Fix freed memory use in layer_destroy_msg_callback
Mike Stroyan [Fri, 31 Jul 2015 22:20:39 +0000 (16:20 -0600)]
layers: Fix freed memory use in layer_destroy_msg_callback

Defer free in layer_destroy_msg_callback until after last use of data.

8 years agolayers: DrawState validation cases for BeginCommandBuffer
Mark Lobodzinski [Tue, 4 Aug 2015 22:24:20 +0000 (16:24 -0600)]
layers: DrawState validation cases for BeginCommandBuffer

Framebuffer and Renderpass must be NULL for PRIMARY CBs, non-NULL
for SECONDARY command buffers. Test cases also added.

8 years agoloader: Remove extension origin and use Vulkan ext prop structure
Jon Ashburn [Tue, 4 Aug 2015 17:14:18 +0000 (11:14 -0600)]
loader: Remove extension origin and use Vulkan ext prop structure

Origin was set but unused.  This allowed tghe loader_extension_property
structure to be reduced down to the VkExtensionProperties.

8 years agoloader: Make sure layer list from manifest file is all cleaned up properly
Jon Ashburn [Tue, 4 Aug 2015 16:22:33 +0000 (10:22 -0600)]
loader: Make sure layer list from manifest file is all cleaned up properly

8 years agoloader: Move long DEBUG_REPORT comments into debug report source code
Jon Ashburn [Mon, 3 Aug 2015 23:34:47 +0000 (17:34 -0600)]
loader: Move long DEBUG_REPORT comments into debug report source code

8 years agoloader: Add accessor functions to add/delete from layer property lists.
Jon Ashburn [Mon, 3 Aug 2015 23:19:30 +0000 (17:19 -0600)]
loader: Add accessor functions to add/delete from layer property lists.

Use these to handle building and destroying instance and device layer property
lists.

8 years agoloader: Convert layer versions from manifest file to Vulkan int version
Jon Ashburn [Mon, 3 Aug 2015 15:08:46 +0000 (09:08 -0600)]
loader: Convert layer versions from manifest file to Vulkan int version

8 years agoloader: Allow null string for CMAKE_INSTALL_PREFIX to prevent extra paths
Jon Ashburn [Fri, 31 Jul 2015 21:47:59 +0000 (15:47 -0600)]
loader: Allow null string for CMAKE_INSTALL_PREFIX to prevent extra paths

NULL string was making loader search extra local paths such as /share/...
Also expand log buffer .

8 years agoInitialize VkDesciptorSet to VK_NULL_HANDLE
Dana Jansens [Thu, 30 Jul 2015 20:22:15 +0000 (13:22 -0700)]
Initialize VkDesciptorSet to VK_NULL_HANDLE

8 years agoCompare the handle object to VK_NULL_HANDLE, not its internal integer value
Dana Jansens [Thu, 30 Jul 2015 20:21:41 +0000 (13:21 -0700)]
Compare the handle object to VK_NULL_HANDLE, not its internal integer value

8 years agolayers: Validate renderPass.
Jeremy Hayes [Fri, 31 Jul 2015 20:16:20 +0000 (14:16 -0600)]
layers: Validate renderPass.

8 years agocmake: Set CMAKE_INSTALL_PREFIX to "" so loader will be built with sys paths
Jon Ashburn [Fri, 31 Jul 2015 21:15:00 +0000 (15:15 -0600)]
cmake: Set CMAKE_INSTALL_PREFIX to "" so loader will be built with sys paths

CMake seems to default to non-null but for system SDK builds want this to
be empty string.