platform/upstream/Vulkan-Tools.git
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.

8 years agolayers: Rework APIDump changes to fix windows compilation errors
Mark Lobodzinski [Fri, 31 Jul 2015 19:47:42 +0000 (13:47 -0600)]
layers: Rework APIDump changes to fix windows compilation errors

MSVC compiler hated unions of structs with non-default constructors.

8 years agodemos: use -o on glslangValidator to allow parallel make
GregF [Tue, 14 Jul 2015 17:35:45 +0000 (11:35 -0600)]
demos: use -o on glslangValidator to allow parallel make

8 years agoloader: Fix Windows layers json files for backslash as separator
Jon Ashburn [Fri, 31 Jul 2015 17:32:44 +0000 (10:32 -0700)]
loader: Fix Windows layers json files for backslash as separator

8 years agoScreenshot layer: Works on SDK 0.2 branch
David Pinedo [Fri, 31 Jul 2015 16:56:20 +0000 (10:56 -0600)]
Screenshot layer: Works on SDK 0.2 branch

8 years agoObjectTracker Layer: Fix crash on windows in CreateInstance
David Pinedo [Fri, 31 Jul 2015 16:46:25 +0000 (10:46 -0600)]
ObjectTracker Layer: Fix crash on windows in CreateInstance

function explicit_CreateInstance was crashing when it tried to
use a mutex before it was initialized. Determined mutex wasn't needed
at the start of this function, so remove the lock.

8 years agoloader: Fix alloca ro loader_stack_alloc() for Windows
Jon Ashburn [Fri, 31 Jul 2015 16:11:24 +0000 (10:11 -0600)]
loader: Fix alloca ro loader_stack_alloc() for Windows

8 years agoloader: get_registry_files needs to parse a list
Tony Barbour [Wed, 29 Jul 2015 20:26:21 +0000 (14:26 -0600)]
loader: get_registry_files needs to parse a list

8 years agolayers: Add separate windows and linux json
Courtney Goeltzenleuchter [Thu, 30 Jul 2015 16:49:03 +0000 (10:49 -0600)]
layers: Add separate windows and linux json

8 years agoxchange-94: Use VK_ prefix for environment vars
Courtney Goeltzenleuchter [Wed, 29 Jul 2015 15:08:22 +0000 (09:08 -0600)]
xchange-94: Use VK_ prefix for environment vars

Use the Vulkan namespace (VK_ prefix) on debug environment
variables used in the loader and the Intel sample driver.
This resolves LunarXchange bug #94.
https://vulkan.lunarg.com/app/issues/55b76baa7ef24d0001000072

8 years agoxchange-93: Use VK_ prefix on DEBUG_REPORT_..._NAME
Courtney Goeltzenleuchter [Thu, 30 Jul 2015 17:32:46 +0000 (11:32 -0600)]
xchange-93: Use VK_ prefix on DEBUG_REPORT_..._NAME

Use the Vulkan namespace (VK_ prefix) on DEBUG_REPORT_EXTENSION_NAME
This resolves LunarXchange bug #93.
https://vulkan.lunarg.com/app/issues/55b76ae37ef24d0001000070

8 years agolayers: Fix vkGetPipelineCacheSize validation.
Jeremy Hayes [Fri, 31 Jul 2015 18:54:58 +0000 (12:54 -0600)]
layers: Fix vkGetPipelineCacheSize validation.

8 years agolayers: Enabled detailed output of void* memBarrier parameters
Mark Lobodzinski [Thu, 30 Jul 2015 16:11:32 +0000 (10:11 -0600)]
layers: Enabled detailed output of void* memBarrier parameters

APIDump now interprets these void* pointers and prints the appropriate
information.

8 years agolayers: Fix misc bugs in param checker.
Jeremy Hayes [Wed, 29 Jul 2015 17:23:46 +0000 (11:23 -0600)]
layers: Fix misc bugs in param checker.

Fix sType validation.
Improve nullptr validation.
Remove more false positives.
Fix VkResult validation.

8 years agoloader: Fix bug in Windows for mod a static string DEFAULT_VK_LAYERS_INFO
Jon Ashburn [Fri, 31 Jul 2015 15:33:21 +0000 (09:33 -0600)]
loader: Fix bug in Windows for mod a static string DEFAULT_VK_LAYERS_INFO

8 years agoloader: fix typo in log message
Jon Ashburn [Fri, 31 Jul 2015 15:41:31 +0000 (09:41 -0600)]
loader: fix typo in log message

8 years agocube: We reuse cmd bufs, so dont do one_time flag
Courtney Goeltzenleuchter [Tue, 28 Jul 2015 14:59:17 +0000 (08:59 -0600)]
cube: We reuse cmd bufs, so dont do one_time flag

8 years agobug-14352: Update vulkan.h version
Courtney Goeltzenleuchter [Tue, 28 Jul 2015 15:09:45 +0000 (09:09 -0600)]
bug-14352: Update vulkan.h version

8 years agobug-14352: Missing size parameter in VkSparseMemoryBindInfo
Courtney Goeltzenleuchter [Tue, 28 Jul 2015 15:05:09 +0000 (09:05 -0600)]
bug-14352: Missing size parameter in VkSparseMemoryBindInfo

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14352

8 years agodemos: Add dependency for SPIRV shader components
Courtney Goeltzenleuchter [Wed, 29 Jul 2015 15:07:01 +0000 (09:07 -0600)]
demos: Add dependency for SPIRV shader components

Occasional saw issues with parallel make because dependency
was not specified for the shader SPIRV components used by tri
and cube.

8 years agobug-14330: Initialize handle on Vulkan objects
Courtney Goeltzenleuchter [Wed, 29 Jul 2015 16:53:07 +0000 (10:53 -0600)]
bug-14330: Initialize handle on Vulkan objects

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14330
Accepted in gl_common 7/27

8 years agolayers: Add validation case for mismatched renderpass attachements and subpasses
Mark Lobodzinski [Wed, 29 Jul 2015 15:21:22 +0000 (09:21 -0600)]
layers: Add validation case for mismatched renderpass attachements and subpasses

Added to the Image validation layer.

8 years agoWSI: Initialize WSI entry points
Courtney Goeltzenleuchter [Mon, 27 Jul 2015 20:09:07 +0000 (14:09 -0600)]
WSI: Initialize WSI entry points

Had missed initializing some WSI function pointers for
the device dispatch table.

8 years agovulkan: Add vkCmdPushConstants entry point
Courtney Goeltzenleuchter [Mon, 27 Jul 2015 20:04:01 +0000 (14:04 -0600)]
vulkan: Add vkCmdPushConstants entry point

This patch fixes LunarXchange issue #84.
Also adds corresponding stub entry point to the Intel
sample driver.

8 years agointel: Add support for GetRenderAreaGranularity
Courtney Goeltzenleuchter [Mon, 27 Jul 2015 19:47:08 +0000 (13:47 -0600)]
intel: Add support for GetRenderAreaGranularity

9 years agotri/cube: Correct WSI swapChainPresentMode fallback is FIFO.
Ian Elliott [Mon, 27 Jul 2015 19:53:11 +0000 (13:53 -0600)]
tri/cube: Correct WSI swapChainPresentMode fallback is FIFO.

A copy and paste error from the spec made it seem that all ICDs will support
VK_PRESENT_MODE_IMMEDIATE_WSI (a.k.a. "immediate").  That's not true.  They all
need to support VK_PRESENT_MODE_FIFO_WSI.  Changed the comment and code so that
the preference of these demos is:

1) VK_PRESENT_MODE_MAILBOX_WSI
2) VK_PRESENT_MODE_IMMEDIATE_WSI
3) VK_PRESENT_MODE_FIFO_WSI

9 years agolayers: Adjust SC to validate bulk pipeline creation
Chris Forbes [Fri, 24 Jul 2015 01:53:47 +0000 (13:53 +1200)]
layers: Adjust SC to validate bulk pipeline creation

Previously we passed `count` down to the validator and then dropped it
on the floor, ignoring anything other than pipeline 0.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Courtney Goeltzenleuchter <courtney@lunarg.com>
9 years agoFurther layer search path fix: s/implicit/explict
James Jones [Fri, 24 Jul 2015 18:35:16 +0000 (11:35 -0700)]
Further layer search path fix: s/implicit/explict

A cut+paste error resulted in using the same value
for the explicit and implicit layer config paths.
This change remedies that.

Signed-off-by: James Jones <jajones@nvidia.com>
9 years agoAdded ICD loading path debug messages
Liam Middlebrook [Fri, 24 Jul 2015 01:32:20 +0000 (18:32 -0700)]
Added ICD loading path debug messages

Reviewed-by: James Jones <jajones@nvidia.com>
9 years agoFix loader paths for "etc" directories.
James Jones [Fri, 24 Jul 2015 16:47:37 +0000 (09:47 -0700)]
Fix loader paths for "etc" directories.

The previous libdir/confdir patches mistakenly
used /usr/etc rather than /etc as the default
location for configuration files.  This patch
corrects that mistake.

Signed-off-by: James Jones <jajones@nvidia.com>
Tested-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
9 years agolinux: Fix standard GNU path usage
James Jones [Fri, 24 Jul 2015 00:39:37 +0000 (17:39 -0700)]
linux: Fix standard GNU path usage

The previous attempt at using GNU standard paths
limited searching to the prefix where the loader
was installed.  What we really want though is to
always search in /usr, also search in whatever
local prefix the user installed at if it wasn't
/usr, and use the standard GNU libdir, sysconfdir,
and datadir under those prefixes.  This change
implements that behavior.

Signed-off-by: James Jones <jajones@nvidia.com>
Tested-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
9 years agolinux: Use standard GNU install paths
Adam Jackson [Thu, 23 Jul 2015 20:29:26 +0000 (16:29 -0400)]
linux: Use standard GNU install paths

These should get inherited from the build environment, which should
handle the variation between /usr/lib/$triple on debian vs /usr/lib{,64}
on redhat.

Signed-off-by: Adam Jackson <ajax@redhat.com>
9 years agoRevert "vulkan: Updated LICENSE.txt with all known license information"
Courtney Goeltzenleuchter [Fri, 24 Jul 2015 17:21:01 +0000 (11:21 -0600)]
Revert "vulkan: Updated LICENSE.txt with all known license information"

This reverts commit 3d2dc08ed28b159f1d86476add4719b3ec975b1b.

Just adding attributiones here does not match our SDK
and loader redistributable plans. Will add attributions to
specific areas rather than a global attribution file.

9 years agoWindows nulldrv: Add stub for vkGetPhysicalDeviceImageFormatProperties
David Pinedo [Fri, 24 Jul 2015 16:54:41 +0000 (10:54 -0600)]
Windows nulldrv: Add stub for vkGetPhysicalDeviceImageFormatProperties

9 years agoloader: Only check 32-bits for magic value
Courtney Goeltzenleuchter [Fri, 24 Jul 2015 16:18:40 +0000 (10:18 -0600)]
loader: Only check 32-bits for magic value

The loaderMagic grew to be 64-bits to look better
but need to mask it to 32bits for the validation check.

9 years agoloader: Update the Linux and Windows manifest file documentation to match khr
Jon Ashburn [Fri, 24 Jul 2015 15:20:11 +0000 (09:20 -0600)]
loader: Update the Linux and Windows manifest file documentation to match khr

9 years agoloader: Change VK_LAYERS_FOLDERS to VK_LAYER_FOLDERS to match documentation
Jon Ashburn [Fri, 24 Jul 2015 00:58:21 +0000 (18:58 -0600)]
loader: Change VK_LAYERS_FOLDERS to VK_LAYER_FOLDERS to match documentation

This effects Windows layers.

9 years agoloader: Add missing entrypoints CmdPushConstants, GetRenderArea, GetPDImgFormat
Jon Ashburn [Fri, 24 Jul 2015 00:49:07 +0000 (18:49 -0600)]
loader: Add missing entrypoints CmdPushConstants, GetRenderArea, GetPDImgFormat

Also fix several other missing entrypoints from dispatch table related functions.
Also reorder some of these functions to better match header list order so
can more easily spot missing entry points.

9 years agomisc: Add vkGetPhysicalDeviceImageFormatProperties as a stub
Jon Ashburn [Fri, 24 Jul 2015 00:48:20 +0000 (18:48 -0600)]
misc: Add vkGetPhysicalDeviceImageFormatProperties as a stub

9 years agolayers: eliminate Windows compiler warning
Courtney Goeltzenleuchter [Thu, 23 Jul 2015 17:25:17 +0000 (11:25 -0600)]
layers: eliminate Windows compiler warning

9 years agoFix win32 build
Dan Ginsburg [Thu, 23 Jul 2015 17:15:00 +0000 (13:15 -0400)]
Fix win32 build

9 years agocompiler: upgrade to latest glslang and LunarGLASS for bug fixes
GregF [Thu, 23 Jul 2015 16:17:11 +0000 (10:17 -0600)]
compiler: upgrade to latest glslang and LunarGLASS for bug fixes

9 years agolayers: update README.md
Jon Ashburn [Thu, 23 Jul 2015 16:59:21 +0000 (10:59 -0600)]
layers: update README.md

9 years agoloader: have loader_magic be uintptr_t
Courtney Goeltzenleuchter [Wed, 22 Jul 2015 14:35:04 +0000 (08:35 -0600)]
loader: have loader_magic be uintptr_t

Twice we've have feedback on this structure not being
correct - folks missed the union statment - so changing
this to be the same size as a pointer to make it more
clear that loaderMagic is the same size as *loaderData.

9 years agocube: Add support for debug break
Courtney Goeltzenleuchter [Wed, 22 Jul 2015 17:03:51 +0000 (11:03 -0600)]
cube: Add support for debug break

When cube sees --break on the command line it will
install the DebugBreak helper callback for layer validation
errors and warnings.

9 years agoloader: Add support for debug break helper
Courtney Goeltzenleuchter [Wed, 22 Jul 2015 17:01:53 +0000 (11:01 -0600)]
loader: Add support for debug break helper

Implement BreakCallback that an application can use
to set a debugger breakpoint when running on Visual Studio
or gdb for requested debug message flags.

9 years agoloader: Do not include dbg helpers in dispatch
Courtney Goeltzenleuchter [Thu, 23 Jul 2015 15:58:17 +0000 (09:58 -0600)]
loader: Do not include dbg helpers in dispatch

The DEBUG_REPORT callback helpers do not need to be
included in the dispatch table as they are not API entrypoints.
They are functions specifically and only for DEBUG_REPORT
DbgCreateMsgCallback.

9 years agoloader_log: add OutputDebugString("\n");
mschott [Wed, 22 Jul 2015 12:11:29 +0000 (14:11 +0200)]
loader_log: add OutputDebugString("\n");

9 years agoloader: Fix ICD and layer directory scan order on Linux
Adam Jackson [Mon, 20 Jul 2015 17:15:43 +0000 (13:15 -0400)]
loader: Fix ICD and layer directory scan order on Linux

The convention is to scan /etc for host-specific settings before looking
in /usr/share, which may be a shared network filesystem.

Signed-off-by: Adam Jackson <ajax@redhat.com>
9 years agodemos: Add more validation layers and fix errors/warnings
Tony Barbour [Tue, 21 Jul 2015 15:04:41 +0000 (09:04 -0600)]
demos: Add more validation layers and fix errors/warnings

9 years agolayers: objtrack has to call destroy in FreeDescriptorSets
Tony Barbour [Mon, 20 Jul 2015 16:52:13 +0000 (10:52 -0600)]
layers: objtrack has to call destroy in FreeDescriptorSets

9 years agoheaders: Updated debug object-to-string fcn with missing object types
Mark Lobodzinski [Fri, 17 Jul 2015 18:00:21 +0000 (12:00 -0600)]
headers: Updated debug object-to-string fcn with missing object types

In vk_debug_report_lunarg.h

9 years agolayers: Add destroy_obj calls for ObjectTracker
Mark Lobodzinski [Fri, 17 Jul 2015 17:51:24 +0000 (11:51 -0600)]
layers: Add destroy_obj calls for ObjectTracker

This eliminates a ton of bad destroy messages, also removes check for
leftover instances when device is destroyed.

9 years agolayers: Only verify data ptr not report_data
Courtney Goeltzenleuchter [Fri, 17 Jul 2015 16:20:11 +0000 (10:20 -0600)]
layers: Only verify data ptr not report_data

report_data is only defined if DEBUG_REPORT is enabled,
so asserting that it must be non-null prevents things from
running for no reason.

9 years agonulldrv: Link with -Bsymbolic so vkGetDeviceProcAddress behaves
Adam Jackson [Wed, 24 Jun 2015 17:39:49 +0000 (13:39 -0400)]
nulldrv: Link with -Bsymbolic so vkGetDeviceProcAddress behaves

9 years agocmake: Specify -std=c++11
Adam Jackson [Tue, 23 Jun 2015 19:33:48 +0000 (15:33 -0400)]
cmake: Specify -std=c++11

gcc 5.1 will complain (and refuse to compile) if you use 'auto' in the
C++11 sense but haven't asked for C++11.

9 years agocmake: Don't check for installed glm, it's in-tree
Adam Jackson [Tue, 23 Jun 2015 19:41:13 +0000 (15:41 -0400)]
cmake: Don't check for installed glm, it's in-tree

9 years agoMinor SDK-0.2 fixes for "tri"
Piers Daniell [Thu, 16 Jul 2015 15:35:35 +0000 (09:35 -0600)]
Minor SDK-0.2 fixes for "tri"

Changes to "tri" are similar to the fixes for "cube":

1) WSI function were being called with an uninitialized pPlatformWindow.
Fixed by splitting demo_init_vk into two functions.

2) VkAttachmentViewCreateInfo.format wasn't being set.

3) VkShaderCreateInfo.pName wasn't being set.

4) demo->cmdPool was being leaked.

9 years agocube: Fill in pPlatformWindow after you have a window
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 23:45:38 +0000 (17:45 -0600)]
cube: Fill in pPlatformWindow after you have a window

demo_init_vk(), which sets the surface_description.pPlatformWindow was
getting called before the window was created so surface_description.pPlatformWindow
was always NULL. I added a new demo_init_vk_wsi() which splits demo_init_vk()
in two so that the window is created before surface_description.pPlatformWindow is assigned.

9 years agocube: set VkAttachmentViewCreateInfo.format
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 23:41:38 +0000 (17:41 -0600)]
cube: set VkAttachmentViewCreateInfo.format

9 years agocube: Keep track of queue_count in demo structure
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 23:40:20 +0000 (17:40 -0600)]
cube: Keep track of queue_count in demo structure

Need to know the number of queues in multiple places so just
save it as part of the demo info data structure.

9 years agoloader: Switch to using layer manifest file info for layer extension info
Jon Ashburn [Thu, 16 Jul 2015 23:19:31 +0000 (17:19 -0600)]
loader: Switch to using layer manifest file info for layer extension info

Remove the direct queries for the layer extensions and properties.

9 years agolayers: In DrawState correctly return rasterSamples count for PSO
Tobin Ehlis [Mon, 13 Jul 2015 20:51:15 +0000 (14:51 -0600)]
layers: In DrawState correctly return rasterSamples count for PSO

9 years agovulkan: Updated LICENSE.txt with all known license information
Mark Lobodzinski [Thu, 16 Jul 2015 16:35:18 +0000 (10:35 -0600)]
vulkan: Updated LICENSE.txt with all known license information

9 years agoloader:Remove dead code involving layer library queries now in manifest file
Jon Ashburn [Thu, 16 Jul 2015 17:06:07 +0000 (11:06 -0600)]
loader:Remove dead code involving layer library queries now in manifest file

9 years agoloader: Update loader readme and add ICD/ layer discovery documentation
Jon Ashburn [Thu, 16 Jul 2015 16:54:55 +0000 (10:54 -0600)]
loader: Update loader readme and add ICD/ layer discovery documentation

9 years agoloader: Use GetInstanceProcAddr rather than dlsym for most ICD entrypoints
Jon Ashburn [Thu, 16 Jul 2015 16:17:29 +0000 (10:17 -0600)]
loader: Use GetInstanceProcAddr rather than dlsym for most ICD entrypoints

Conflicts:
loader/loader.c

9 years agoicd: Generate vkInstanceProcAddr with real entrypoints
Jon Ashburn [Thu, 16 Jul 2015 16:12:59 +0000 (10:12 -0600)]
icd: Generate vkInstanceProcAddr with real entrypoints

9 years agoloader: use VkDevice when initializing device table
Courtney Goeltzenleuchter [Thu, 16 Jul 2015 16:36:57 +0000 (10:36 -0600)]
loader: use VkDevice when initializing device table

Had ICD that actually checked the device parameter at GetProcAddr
and discovered we weren't using the device object.

9 years agodemos: Set size of uniform buffer in cube
Cody Northrop [Thu, 16 Jul 2015 16:29:32 +0000 (10:29 -0600)]
demos: Set size of uniform buffer in cube

9 years agodemos: Remove reference to undefined variable
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 17:17:08 +0000 (11:17 -0600)]
demos: Remove reference to undefined variable

9 years agomisc: Create new glslang directory if needed
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 17:15:37 +0000 (11:15 -0600)]
misc: Create new glslang directory if needed

glslang has now moved to git. The update script will
recreate the glslang folder if the existing one is
the svn version.

9 years agoUpdated BUILD.md to ref the specs on how the loader finds ICDs/layers.
Ian Elliott [Wed, 15 Jul 2015 15:46:10 +0000 (09:46 -0600)]
Updated BUILD.md to ref the specs on how the loader finds ICDs/layers.

Since specifications now exist, those specs are pointed to instead of
duplicated in this document.

9 years agobug-14282: remove const
Courtney Goeltzenleuchter [Tue, 14 Jul 2015 17:56:44 +0000 (11:56 -0600)]
bug-14282: remove const

9 years agoClean up warnings from release build
Tony Barbour [Tue, 14 Jul 2015 19:34:05 +0000 (13:34 -0600)]
Clean up warnings from release build

9 years agomem_tracker: Use device object for dispatch tables
Courtney Goeltzenleuchter [Tue, 14 Jul 2015 00:41:17 +0000 (18:41 -0600)]
mem_tracker: Use device object for dispatch tables

Need to use the device object to lookup the right dispatch
table now that WSI objects are non-dispatchable.

9 years agomem_tracker: Don't try to copy data if none available
Courtney Goeltzenleuchter [Tue, 14 Jul 2015 00:40:35 +0000 (18:40 -0600)]
mem_tracker: Don't try to copy data if none available

Check that call received data before trying to copy.

9 years agoWindows: Clean up more compiler errors and warnings
Tony Barbour [Mon, 13 Jul 2015 22:37:21 +0000 (16:37 -0600)]
Windows: Clean up more compiler errors and warnings

9 years agoWindows: more changes for windows compiler
Tony Barbour [Mon, 13 Jul 2015 21:28:47 +0000 (15:28 -0600)]
Windows: more changes for windows compiler

9 years agoWindows: more fixes for windows compile
Tony Barbour [Mon, 13 Jul 2015 21:06:12 +0000 (15:06 -0600)]
Windows: more fixes for windows compile

9 years agoWindows: More windows compilier fixes
Tony Barbour [Mon, 13 Jul 2015 19:37:24 +0000 (13:37 -0600)]
Windows: More windows compilier fixes

9 years agowindows: clean up windows compile issues
Tony Barbour [Sat, 11 Jul 2015 00:32:33 +0000 (18:32 -0600)]
windows:  clean up windows compile issues

Conflicts:
layers/object_track.h
vk-layer-generate.py

9 years agolayers: Remove dead code.
Jeremy Hayes [Mon, 13 Jul 2015 21:21:40 +0000 (15:21 -0600)]
layers: Remove dead code.

9 years agolayers: In MemTracker remove non-intercepted WSI funcs from GetProcAddr
Tobin Ehlis [Mon, 13 Jul 2015 20:21:59 +0000 (14:21 -0600)]
layers: In MemTracker remove non-intercepted WSI funcs from GetProcAddr

9 years agovulkan: Fix definition of LayerProperties
Courtney Goeltzenleuchter [Mon, 13 Jul 2015 20:01:15 +0000 (14:01 -0600)]
vulkan: Fix definition of LayerProperties

9 years agolayers: MemTracker fix to skip COLOR usage bit check for now
Tobin Ehlis [Mon, 13 Jul 2015 19:42:25 +0000 (13:42 -0600)]
layers: MemTracker fix to skip COLOR usage bit check for now

Now that Attachments are generalized and not color or DS specific, need to make sure we only check usage bits appropriate for a given image.

9 years agolayers: Fix some failing layer validation tests
Tobin Ehlis [Mon, 13 Jul 2015 19:14:24 +0000 (13:14 -0600)]
layers: Fix some failing layer validation tests

Correctly set stageCount to 1 for simple VS-only pipelines. Moved some DrawState code so state is only updated in event of no validation ERROR.

9 years agodemos: Hack to get cube working--only 2 swap chain images.
Ian Elliott [Mon, 13 Jul 2015 18:20:56 +0000 (12:20 -0600)]
demos: Hack to get cube working--only 2 swap chain images.

Other people have hard-coded the number of framebuffers, command buffers,
etc. as being equal to DEMO_BUFFER_COUNT (i.e. 2).  Without reworking all of
that code, this demo won't work.  Go with the flow for the time being, and
hard-code the number of swap chain images as 2.

9 years agoloader: Changes to use new WSI swapchain extensions.
Ian Elliott [Mon, 6 Jul 2015 20:36:13 +0000 (14:36 -0600)]
loader: Changes to use new WSI swapchain extensions.

Use device extension list, not global.  When validating the PhysicalDevice
extensions really need to use the device extension list not the loader's global
list.

Fix include to find aligned_alloc

9 years agoicd-common: Changes to use new WSI swapchain extensions.
Ian Elliott [Mon, 6 Jul 2015 20:34:08 +0000 (14:34 -0600)]
icd-common: Changes to use new WSI swapchain extensions.

9 years agolayers: INITIAL Changes to use new WSI swapchain extensions.
Ian Elliott [Mon, 6 Jul 2015 20:31:32 +0000 (14:31 -0600)]
layers: INITIAL Changes to use new WSI swapchain extensions.

There are still some FIXME's that must be addressed, as well as fully
supporting the new entrypoints.  This patch serves as a basis for review and
further work with other Vulkan engineers.

9 years agonulldrv: Changes to use new WSI swapchain extensions.
Ian Elliott [Mon, 6 Jul 2015 20:29:31 +0000 (14:29 -0600)]
nulldrv: Changes to use new WSI swapchain extensions.