platform/upstream/Vulkan-Tools.git
8 years agowinrtinstaller: Fix typo in messagebox
David Pinedo [Thu, 11 Feb 2016 20:49:09 +0000 (13:49 -0700)]
winrtinstaller: Fix typo in messagebox

8 years agowinrtinstaller: add section to README on ProductVersion property
David Pinedo [Thu, 11 Feb 2016 19:06:38 +0000 (12:06 -0700)]
winrtinstaller: add section to README on ProductVersion property

8 years agobug-135: param_checker incorrectly checking optional strings
Courtney Goeltzenleuchter [Wed, 10 Feb 2016 22:13:55 +0000 (15:13 -0700)]
bug-135: param_checker incorrectly checking optional strings

https://gitlab.khronos.org/vulkan/LoaderAndTools/issues/135

8 years agobug 134: param_checker using layer private data before it's been created
Courtney Goeltzenleuchter [Wed, 10 Feb 2016 21:00:52 +0000 (14:00 -0700)]
bug 134: param_checker using layer private data before it's been created

https://gitlab.khronos.org/vulkan/LoaderAndTools/issues/134

8 years agolicensing: Add RenderDoc to LICENSE.txt
David Pinedo [Thu, 11 Feb 2016 15:27:20 +0000 (08:27 -0700)]
licensing: Add RenderDoc to LICENSE.txt

8 years agoMerge branch 'stroyan_draw_state_beginCB' into 'master'
Tobin Ehlis [Wed, 10 Feb 2016 23:36:15 +0000 (18:36 -0500)]
Merge branch 'stroyan_draw_state_beginCB' into 'master'

layers: draw_state allow pInheritanceInfo NULL

The pInheritanceInfo field in VkCommandBufferBeginInfo may be NULL.
Test for that before using it in draw_state layer.

See merge request !229

8 years agowinrtinstaller: Remove mention of SDK from RT license file
David Pinedo [Wed, 10 Feb 2016 23:28:01 +0000 (16:28 -0700)]
winrtinstaller: Remove mention of SDK from RT license file

8 years agowinrtinstaller: Add file properties to rt installer executable
David Pinedo [Wed, 10 Feb 2016 23:20:45 +0000 (16:20 -0700)]
winrtinstaller: Add file properties to rt installer executable

8 years agoMore api version bumps
Tony Barbour [Wed, 10 Feb 2016 23:12:30 +0000 (16:12 -0700)]
More api version bumps

8 years agolayers: Update api version to 1.0.3 in json files
Tony Barbour [Wed, 10 Feb 2016 22:59:32 +0000 (15:59 -0700)]
layers: Update api version to 1.0.3 in json files

8 years agoinclude: Use single-quote no paths when including sibling headers
Karl Schultz [Wed, 10 Feb 2016 22:41:43 +0000 (15:41 -0700)]
include: Use single-quote no paths when including sibling headers

8 years agoRemove Khronos confidential clause from license text.
Karl Schultz [Wed, 10 Feb 2016 01:07:25 +0000 (18:07 -0700)]
Remove Khronos confidential clause from license text.

8 years agowinrtinstaller: change to README so it matches sdk_1.0.3 version
David Pinedo [Wed, 10 Feb 2016 18:29:33 +0000 (11:29 -0700)]
winrtinstaller: change to README so it matches sdk_1.0.3 version

8 years agowinrtinstaller: Add section on error return values.
David Pinedo [Wed, 10 Feb 2016 18:20:44 +0000 (11:20 -0700)]
winrtinstaller: Add section on error return values.

8 years agowinrtinstaller: add more error checks during install, uninstall
David Pinedo [Wed, 10 Feb 2016 18:03:29 +0000 (11:03 -0700)]
winrtinstaller: add more error checks during install, uninstall

8 years agolayers: Validate fence not in use when deleted.
Michael Lentine [Tue, 9 Feb 2016 22:18:02 +0000 (16:18 -0600)]
layers: Validate fence not in use when deleted.

8 years agolayers: Validate command buffer doesn't have duplicate query type.
Michael Lentine [Tue, 9 Feb 2016 21:03:28 +0000 (15:03 -0600)]
layers: Validate command buffer doesn't have duplicate query type.

8 years agolayers: Validate pipeline stats query with secondary cmdbufs.
Michael Lentine [Tue, 9 Feb 2016 19:14:32 +0000 (13:14 -0600)]
layers: Validate pipeline stats query with secondary cmdbufs.

8 years agolayers: Validate no active queries unless enabled.
Michael Lentine [Tue, 9 Feb 2016 16:31:11 +0000 (10:31 -0600)]
layers: Validate no active queries unless enabled.

8 years agolayers: Enable Wall and Werror.
Michael Lentine [Wed, 3 Feb 2016 22:51:46 +0000 (16:51 -0600)]
layers: Enable Wall and Werror.

8 years agolayers: draw_state allow pInheritanceInfo NULL
Mike Stroyan [Wed, 10 Feb 2016 15:29:08 +0000 (08:29 -0700)]
layers: draw_state allow pInheritanceInfo NULL

The pInheritanceInfo field in VkCommandBufferBeginInfo may be NULL.
Test for that before using it in draw_state layer.

8 years agolayers: Don't skip over tessellation stages when validating stage interfaces
Chris Forbes [Mon, 1 Feb 2016 01:39:54 +0000 (14:39 +1300)]
layers: Don't skip over tessellation stages when validating stage interfaces

Signed-off-by: Chris Forbes <chrisforbes@google.com>
8 years agowinrtinstaller: A new dir is created for reinstall of same version
David Pinedo [Tue, 9 Feb 2016 21:44:05 +0000 (14:44 -0700)]
winrtinstaller: A new dir is created for reinstall of same version

Windows 10 was displaying a warning when an uninstall resulted
in the install dir not being deleted. (As happens when there are
multiple installs of the same version.) So we create a folder
for each re-install, the folder is removed on uninstall, and
Windows 10 doesn't get upset.

8 years agowinrtinstaller: Allow uninstall to be run from any dir
David Pinedo [Tue, 9 Feb 2016 16:15:34 +0000 (09:15 -0700)]
winrtinstaller: Allow uninstall to be run from any dir

8 years agowinrtinstaller: fix install dir not recorded in registry correctly
David Pinedo [Mon, 8 Feb 2016 20:50:01 +0000 (13:50 -0700)]
winrtinstaller: fix install dir not recorded in registry correctly

8 years agowinrtinstaller: install to to same dir if already installed. PUBLISHER changed.
David Pinedo [Mon, 8 Feb 2016 19:20:11 +0000 (12:20 -0700)]
winrtinstaller: install to to same dir if already installed. PUBLISHER changed.

PUBLISHER is set to YourComany, Inc by default

8 years agoheader: Update to version 1.0.3 which adds some version macros
Jon Ashburn [Tue, 9 Feb 2016 15:57:58 +0000 (08:57 -0700)]
header: Update to version 1.0.3 which adds some version macros

8 years agoloader: Change error to warning for missing layer registry key
Jon Ashburn [Tue, 9 Feb 2016 18:03:09 +0000 (11:03 -0700)]
loader: Change error to warning for missing layer registry key

Continue to report an error for missing ICD registry key

8 years agoloader: add Architecture and interface document
Jon Ashburn [Mon, 8 Feb 2016 22:42:01 +0000 (15:42 -0700)]
loader: add Architecture and interface document

8 years agowindowssdk: Fix 32-bit install issue with Powershell script.
Mark Young [Tue, 9 Feb 2016 22:30:34 +0000 (15:30 -0700)]
windowssdk: Fix 32-bit install issue with Powershell script.

Fix the install Powershell script which populates the ExplicitLayers
registry entries.  There were 2 problems: 1) it was using newer
Powershell commands that failed on Windows 7, 2) it was trying to
populate the 32-bit data on a 32-bit system with the 64-bit Bin
folder.

8 years agoAdd .clang-format: LLVM style with IndentWidth of 4.
Karl Schultz [Tue, 9 Feb 2016 17:10:34 +0000 (10:10 -0700)]
Add .clang-format: LLVM style with IndentWidth of 4.

8 years agoAdjust .gitignore to remove vktrace files and add cmake user file.
Karl Schultz [Tue, 9 Feb 2016 17:03:29 +0000 (10:03 -0700)]
Adjust .gitignore to remove vktrace files and add cmake user file.

8 years agodraw_state: Add FIXME/TODO for vkAcquireNextImageKHR(..., fence, ...).
Ian Elliott [Mon, 8 Feb 2016 20:25:47 +0000 (13:25 -0700)]
draw_state: Add FIXME/TODO for vkAcquireNextImageKHR(..., fence, ...).

8 years agolayers: Redo draw_state locking--all in top-level functions.
Ian Elliott [Fri, 5 Feb 2016 21:47:39 +0000 (14:47 -0700)]
layers: Redo draw_state locking--all in top-level functions.

All locking is now done in top-level, API-entrypoint functions.  Before,
locking was done at all levels of functions, which caused unnecessary locking
(e.g. within inner loops), and was not very maintainable.  This is cleaner,
easier to maintain, and should perform better.

8 years agolinux: use linux naming conventions
Jeremy Hayes [Mon, 8 Feb 2016 19:14:51 +0000 (12:14 -0700)]
linux: use linux naming conventions

8 years agoloader: Null-terminated string checks
Mark Lobodzinski [Wed, 3 Feb 2016 01:53:34 +0000 (18:53 -0700)]
loader: Null-terminated string checks

8 years agolayers: Add string validation to param_checker
Mark Lobodzinski [Tue, 12 Jan 2016 18:52:05 +0000 (11:52 -0700)]
layers: Add string validation to param_checker

8 years agolayers: Add UTF-8 String validation utility
Mark Lobodzinski [Mon, 11 Jan 2016 21:17:05 +0000 (14:17 -0700)]
layers: Add UTF-8 String validation utility

8 years agolayers: lock use of threading layer cmd pool map
Mike Stroyan [Mon, 8 Feb 2016 17:27:55 +0000 (10:27 -0700)]
layers: lock use of threading layer cmd pool map

Access to command_pool_map data structure in threading validation layer
needs a mutex.

8 years agowinrtinstaller: update license text
David Pinedo [Mon, 8 Feb 2016 16:30:46 +0000 (09:30 -0700)]
winrtinstaller: update license text

8 years agolayers: MR215 Update spec version to match json files
Courtney Goeltzenleuchter [Fri, 5 Feb 2016 20:04:27 +0000 (13:04 -0700)]
layers: MR215 Update spec version to match json files

8 years agoloader: MR215 device extensions not enumerated
Courtney Goeltzenleuchter [Fri, 5 Feb 2016 20:09:59 +0000 (13:09 -0700)]
loader: MR215 device extensions not enumerated

If a layer's device extension didn't define any entrypoints
it was ignored by the loader. Now add it to the
list of layer extensions.

8 years agolayers: In GetInstanceProcAddr, intercept instance procs even if NULL instance
Karl Schultz [Sun, 7 Feb 2016 22:17:26 +0000 (15:17 -0700)]
layers: In GetInstanceProcAddr, intercept instance procs even if NULL instance

This problem showed up when running cube --validate and the order
of the layers was arranged so that the threading layer is NOT first.
It can also show up when running vktrace and the threading layer
is in any position, because the vktrace layer becomes first.

The symptom is generally a failure to create an instance when the
threading layer is enabled.

The fix is to check for the non-instance-based procs first by
calling layer_intercept_instance_proc before bailing if the instance
is NULL.

8 years agolayers: Fix 32-bit Windows build
Dustin Graves [Fri, 5 Feb 2016 23:06:21 +0000 (16:06 -0700)]
layers: Fix 32-bit Windows build

A reinterpret_cast from a non-dispatch handle to uint64_t was failing on
windows 32-bit where non-dispatch handles are defined as 'typdef uint64_t
object'.  Changed reinterpret_cast to a C-style cast, as is consistent
with the rest of the non-dispatch handle to uint64_t conversions in
draw_state.

8 years agolayers: Fix CreateSemaphore/CreateEvent conflict
Dustin Graves [Fri, 5 Feb 2016 22:53:12 +0000 (15:53 -0700)]
layers: Fix CreateSemaphore/CreateEvent conflict

Reorder includes to avoid conflicts between the VkLayerDispatchTable_
CreateSemaphore/CreateEvent fields and the WIN32 API.

8 years agolayers: MR217 Turn on more layers for Android build
Cody Northrop [Mon, 1 Feb 2016 17:01:45 +0000 (10:01 -0700)]
layers: MR217 Turn on more layers for Android build

8 years agolayers: MR217 Fix Android build of swapchain
Cody Northrop [Mon, 1 Feb 2016 16:52:07 +0000 (09:52 -0700)]
layers: MR217 Fix Android build of swapchain

8 years agolayers: MR217 Fix unique_objects android build
Tobin Ehlis [Fri, 29 Jan 2016 21:24:42 +0000 (14:24 -0700)]
layers: MR217 Fix unique_objects android build

Need to guard vkCreateXcbSurfaceKHR in appropriate ifdef

8 years agowinrtinstaller: update licenses
David Pinedo [Fri, 5 Feb 2016 21:45:15 +0000 (14:45 -0700)]
winrtinstaller: update licenses

8 years agoFix so that store images and buffers are assumed written.
Michael Lentine [Tue, 26 Jan 2016 21:49:34 +0000 (15:49 -0600)]
Fix so that store images and buffers are assumed written.

8 years agolayer: GL125 only check for fence in_use on valid fence handles
Tobin Ehlis [Fri, 5 Feb 2016 00:12:36 +0000 (17:12 -0700)]
layer: GL125 only check for fence in_use on valid fence handles

8 years agolayers: GL127 GL128 fix duplicate in_use updates
Tobin Ehlis [Fri, 5 Feb 2016 00:10:09 +0000 (17:10 -0700)]
layers: GL127 GL128 fix duplicate in_use updates

Only increment in_use at vkQueueSubmit() time. Also only need to
check ONE_TIME_SUBMIT case at that time. We were duplicating some
checks incorrectly at vkCmdExecuteCommands() time.

8 years agolayers: thread checks of VkCommandBuffer pool read
Mike Stroyan [Fri, 5 Feb 2016 16:46:01 +0000 (09:46 -0700)]
layers: thread checks of VkCommandBuffer pool read

Object reads of VkCommandBuffer should also be reads of their pool.
A single thread may have multiple uses of a pool in one call.
That will be allowed because the uses are all in a single thread.

8 years agolayers: thread checks for vkDestroyInstance and vkDestroyDevice
Mike Stroyan [Thu, 4 Feb 2016 23:39:53 +0000 (16:39 -0700)]
layers: thread checks for vkDestroyInstance and vkDestroyDevice

Add instance write to vkDestroyInstance.
Add device write to vkDestroyDevice.

8 years agolayers: allow one thread multiple uses of object
Mike Stroyan [Fri, 5 Feb 2016 16:11:32 +0000 (09:11 -0700)]
layers: allow one thread multiple uses of object

A single call in a thread may use an object more than once.
This first appeared with vkCmdExecuteCommands and buffer pools.
That is not distinguishable from recursive vulkan calls.
The error that this was looking for only happens if calling vulkan
while within another vulkan call.  Such calls from signal handlers
or callbacks should be very rare errors.  So just allow one thread
to have multiple uses of an object and keep accurate counters.

8 years agolayers: use less of namespace std
Mike Stroyan [Fri, 29 Jan 2016 22:33:21 +0000 (15:33 -0700)]
layers: use less of namespace std

Change to std::unordered_map instead of "using namespace std".

8 years agolayers: change android build to xml threading
Mike Stroyan [Fri, 29 Jan 2016 22:11:28 +0000 (15:11 -0700)]
layers: change android build to xml threading

Use threading validation layer generated from vk.xml for android.

8 years agolayers: Handle 32-bit threading validation
Mike Stroyan [Fri, 29 Jan 2016 22:09:04 +0000 (15:09 -0700)]
layers: Handle 32-bit threading validation

Non-dispatchable handles are all of the same type using 32-bit pointers.
Use a single counter for uses of such handles in that situation.

8 years agolayers: Add threading layer generation
Mike Stroyan [Mon, 2 Nov 2015 22:30:20 +0000 (15:30 -0700)]
layers: Add threading layer generation

Generate threading layer wrappers in thread_check.h.
Change path for generated vulkan.h.

8 years agolayers: bring xml and scripts from documentation
Mike Stroyan [Thu, 7 Jan 2016 22:35:37 +0000 (15:35 -0700)]
layers: bring xml and scripts from documentation

These are repo git@gitlab.khronos.org:vulkan/vulkan.git
from commit 51ffe091889e08ca5196c5635363a5358c85ff82

8 years agowinrtinstaller: Improve search for layer json files in SDK Bin dir
David Pinedo [Fri, 5 Feb 2016 16:48:26 +0000 (09:48 -0700)]
winrtinstaller: Improve search for layer json files in SDK Bin dir

8 years agowindowsrtinstaller: Change lincense info.
David Pinedo [Fri, 5 Feb 2016 00:04:44 +0000 (17:04 -0700)]
windowsrtinstaller: Change lincense info.

Also removed extra white space.

8 years agowindowsrtinstaller: updated license
David Pinedo [Thu, 4 Feb 2016 21:33:09 +0000 (14:33 -0700)]
windowsrtinstaller: updated license

8 years agowindowrtinstaller: Add more details to README.txt
David Pinedo [Thu, 4 Feb 2016 20:31:28 +0000 (13:31 -0700)]
windowrtinstaller: Add more details to README.txt

8 years agolayers: LX324, Fix descriptor indices in draw_state
Mark Lobodzinski [Fri, 5 Feb 2016 15:37:31 +0000 (08:37 -0700)]
layers: LX324, Fix descriptor indices in draw_state

Typo in BindDescriptorSets was using incorrect array index.

8 years agolayers: MR213 GL126 Fix render pass compatibility check
Michael Lentine [Fri, 5 Feb 2016 00:07:38 +0000 (18:07 -0600)]
layers: MR213 GL126 Fix render pass compatibility check

Use correct array size and add early-out if primary and secondary passes exactly match.

8 years agolayers: Fix subscript-out-of-range crash in mem_tracker
Mark Lobodzinski [Thu, 4 Feb 2016 23:09:12 +0000 (16:09 -0700)]
layers: Fix subscript-out-of-range crash in mem_tracker

Render pass map was not being updated for destroyed renderPasses.  When a
renderPass handle was reused by the driver its data became invalid causing
crashes in Windows.

8 years agolayers: Fix vkEnumeratePhysicalDevices()--was always returning an error.
Ian Elliott [Thu, 4 Feb 2016 22:34:59 +0000 (15:34 -0700)]
layers: Fix vkEnumeratePhysicalDevices()--was always returning an error.

8 years agolayers: Move logging callback destroy after logging calls
Mark Lobodzinski [Thu, 4 Feb 2016 20:50:23 +0000 (13:50 -0700)]
layers: Move logging callback destroy after logging calls

Swapchain was using deleted memory pointer causing crashes in
windows.

Conflicts:
layers/swapchain.cpp

8 years agoloader: filter device extensions in the terminator instead of trampoline
Jon Ashburn [Thu, 4 Feb 2016 21:11:25 +0000 (14:11 -0700)]
loader: filter device extensions in the terminator instead of trampoline

8 years agolayers: MR212 Add locking to the swapchain layer.
Ian Elliott [Thu, 4 Feb 2016 15:17:18 +0000 (08:17 -0700)]
layers: MR212 Add locking to the swapchain layer.

8 years agolayers: Fix for GL119 to correctly index into pBindings
Tobin Ehlis [Tue, 2 Feb 2016 16:57:25 +0000 (09:57 -0700)]
layers: Fix for GL119 to correctly index into pBindings

Added bindingToIndexMap to LAYOUT_NODE to map from the binding # to
the index into the pBinding array of layout create info.
Populate the map at vkCreateDescriptorSetLayout() time and use the
map when performing descriptor updates and when verifying that a
descriptor binding exists for given layout.

8 years agolayers: Verify that command buffer is recorded when submitted to a primary.
Michael Lentine [Wed, 3 Feb 2016 20:26:30 +0000 (14:26 -0600)]
layers: Verify that command buffer is recorded when submitted to a primary.

8 years agolayers: Validate secondary command buffers are most recently bound.
Michael Lentine [Wed, 3 Feb 2016 16:55:23 +0000 (10:55 -0600)]
layers: Validate secondary command buffers are most recently bound.

Secondary cmd buffer bound to new primary cmd buffer cannot be submitted
under the first primary cmd buffer.

This is based on spec valid usage restriction in vkQueueSubmit:

Any given element of pCommandBuffers must not contain commands that execute a
secondary command buffer, if that secondary command buffer has been recorded in
another primary command buffer after it was recorded into this VkCommandBuffer

8 years agolayers: Validate command buffer is not being used simultaneously unless specified.
Michael Lentine [Wed, 3 Feb 2016 15:20:33 +0000 (09:20 -0600)]
layers: Validate command buffer is not being used simultaneously unless specified.

8 years agolayers: MR208 Improve locking in the mem_tracker layer.
Ian Elliott [Mon, 1 Feb 2016 23:07:37 +0000 (16:07 -0700)]
layers: MR208 Improve locking in the mem_tracker layer.

8 years agolayers: Improve locking in the draw_state layer.
Ian Elliott [Sat, 30 Jan 2016 17:57:03 +0000 (10:57 -0700)]
layers: Improve locking in the draw_state layer.

This includes generating return values within locks, and doing the actual
return outside of the lock.

8 years agolayers: Fix 32-bit Windows build
Dustin Graves [Thu, 4 Feb 2016 18:38:48 +0000 (11:38 -0700)]
layers: Fix 32-bit Windows build

A reinterpret_cast from a non-dispatch handle to uint64_t was failing on
windows 32-bit where non-dispatch handles are defined as 'typdef uint64_t
object'.  Changed reinterpret_cast to a C-style cast, as is consistent
with the rest of the non-dispatch handle to uint64_t conversions in
draw_state.

8 years agoRemove WTFPL from LICENSE.txt
Karl Schultz [Thu, 4 Feb 2016 18:40:41 +0000 (11:40 -0700)]
Remove WTFPL from LICENSE.txt

8 years agodemos: Fix window resize on Linux
Damien Leone [Tue, 26 Jan 2016 22:34:12 +0000 (14:34 -0800)]
demos: Fix window resize on Linux

8 years agolayers: Validate that fence is not in use when submitted.
Michael Lentine [Wed, 3 Feb 2016 04:24:26 +0000 (22:24 -0600)]
layers: Validate that fence is not in use when submitted.

8 years agolayers: Validate subpass index in begin info is valid.
Michael Lentine [Tue, 2 Feb 2016 23:28:24 +0000 (17:28 -0600)]
layers: Validate subpass index in begin info is valid.

8 years agolayers: Make sure fb render pass and secondary render pass are compatible.
Michael Lentine [Tue, 2 Feb 2016 22:47:58 +0000 (16:47 -0600)]
layers: Make sure fb render pass and secondary render pass are compatible.

8 years agolayers: Validate that the framebuffer specified in the secondary command buffer is...
Michael Lentine [Tue, 2 Feb 2016 21:24:27 +0000 (15:24 -0600)]
layers: Validate that the framebuffer specified in the secondary command buffer is the same as the current one.

8 years agolayers: Validate render pass compatiblity for executed secondary command buffers.
Michael Lentine [Tue, 2 Feb 2016 20:26:02 +0000 (14:26 -0600)]
layers: Validate render pass compatiblity for executed secondary command buffers.

8 years agolayers: Fix issues with some command buffer tracking structures being left uninitialized
Chris Forbes [Tue, 2 Feb 2016 02:45:40 +0000 (15:45 +1300)]
layers: Fix issues with some command buffer tracking structures being left uninitialized

Signed-off-by: Chris Forbes <chrisforbes@google.com>
8 years agolayers: Fix 32-bit Windows build
Dustin Graves [Thu, 4 Feb 2016 17:57:00 +0000 (10:57 -0700)]
layers: Fix 32-bit Windows build

A reinterpret_cast from a non-dispatch handle to uint64_t was failing on
windows 32-bit where non-dispatch handles are defined as 'typdef uint64_t
object'.  Changed reinterpret_cast to a C-style cast, as is consistent
with the rest of the non-dispatch handle to uint64_t conversions in
draw_state.

8 years agoloader: GL120, move critical section to cover loader_get_icd_and_device
Andrzej Kotlowski [Wed, 3 Feb 2016 08:41:53 +0000 (09:41 +0100)]
loader: GL120, move critical section to cover loader_get_icd_and_device

8 years agodemos: Copyright update
Karl Schultz [Thu, 4 Feb 2016 17:29:00 +0000 (10:29 -0700)]
demos: Copyright update

8 years agolayers: MR209 Fix swapchain's vkDestroyInstance to error about devices ...
Ian Elliott [Thu, 4 Feb 2016 13:11:17 +0000 (06:11 -0700)]
layers: MR209 Fix swapchain's vkDestroyInstance to error about devices ...

not being previously destroyed, instead of physical devices not being
previously destroyed.

8 years agolayers: Valdiate query is not active when cmd buffer is ending.
Michael Lentine [Wed, 3 Feb 2016 00:29:30 +0000 (18:29 -0600)]
layers: Valdiate query is not active when cmd buffer is ending.

8 years agolayers: GL122 Init queueFamilyIndex in command pool.
Michael Lentine [Thu, 4 Feb 2016 03:20:25 +0000 (21:20 -0600)]
layers: GL122 Init queueFamilyIndex in command pool.

8 years agolayers: Fix Windows build error in device_limits
Jon Ashburn [Thu, 4 Feb 2016 00:06:33 +0000 (17:06 -0700)]
layers: Fix Windows build error in device_limits

8 years agolayers: GL96 validateCommandBufferState should return skipCall
Tobin Ehlis [Mon, 1 Feb 2016 14:50:57 +0000 (06:50 -0800)]
layers: GL96 validateCommandBufferState should return skipCall

When validation checks were rolled into separate validateCommandBufferState
function, forgot to return the skipCall value from that function.

8 years agolayers: GL64 Don't warn on descriptor set that's not updated
Tobin Ehlis [Fri, 29 Jan 2016 14:52:45 +0000 (07:52 -0700)]
layers: GL64 Don't warn on descriptor set that's not updated

Previously was not handling the case of 0 sets in a layout.
Now catching this case by verifying that a descriptor set's
layout bindingCount is not zero before incrementing internal
descriptorCount variable.

8 years agolayers: Check that queryFlags is valid if enabled.
Michael Lentine [Thu, 28 Jan 2016 21:03:46 +0000 (15:03 -0600)]
layers: Check that queryFlags is valid if enabled.

8 years agolayers: Add check to make sure inherited queries in enabled before use.
Michael Lentine [Thu, 28 Jan 2016 20:20:46 +0000 (14:20 -0600)]
layers: Add check to make sure inherited queries in enabled before use.

8 years agolayers: Add occlusion query precise check.
Michael Lentine [Thu, 28 Jan 2016 17:55:28 +0000 (11:55 -0600)]
layers: Add occlusion query precise check.

8 years agolayers: Improve in flight cmd buffer validation
Michael Lentine [Thu, 28 Jan 2016 02:42:07 +0000 (20:42 -0600)]
layers: Improve in flight cmd buffer validation

Validation in flight cmd buffers are not reset.
Validate cmd buffer is not in use when freed.

8 years agolayers: Add queue bit checks.
Michael Lentine [Wed, 27 Jan 2016 03:36:08 +0000 (21:36 -0600)]
layers: Add queue bit checks.

For each command check to make sure if the queue bits are set
correctly for that command.