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.
Tony Barbour [Thu, 6 Aug 2015 20:32:54 +0000 (14:32 -0600)]
demos: Initialize render pass in pipeline create
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
Tony Barbour [Thu, 23 Jul 2015 16:34:15 +0000 (10:34 -0600)]
demos: Fix trivial bugs in tri
Dejan Mircevski [Wed, 5 Aug 2015 19:17:06 +0000 (15:17 -0400)]
Update stale info in BUILD.md.
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
Cody Northrop [Tue, 4 Aug 2015 20:49:43 +0000 (14:49 -0600)]
v148: Bug 14368 - Minor fixes for VkPhysicalDeviceFeatures
Cody Northrop [Tue, 4 Aug 2015 20:44:03 +0000 (14:44 -0600)]
v147: Bugs 14352 and 14300
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
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
Cody Northrop [Tue, 4 Aug 2015 17:51:03 +0000 (11:51 -0600)]
v144: Bug 14292 - Rename VkRenderPassBeginInfo::attachmentCount to clearValueCount
Cody Northrop [Tue, 4 Aug 2015 17:16:41 +0000 (11:16 -0600)]
v143: Bug 14277 - Follow pointer naming convention in VkSubpassDescription
Cody Northrop [Tue, 4 Aug 2015 16:47:08 +0000 (10:47 -0600)]
v142: Bug 14275 - Remove image layouts in VkFramebufferCreateInfo
Cody Northrop [Mon, 3 Aug 2015 23:04:53 +0000 (17:04 -0600)]
v140: Bug 14251 - Inconsistencies in the definition of queries
Cody Northrop [Mon, 3 Aug 2015 18:47:29 +0000 (12:47 -0600)]
v139: Bug 14257 - Remove pCount parameter from vkAllocDescriptorSets
Mark Lobodzinski [Tue, 4 Aug 2015 16:54:43 +0000 (10:54 -0600)]
layers: Fixed formatting error in DrawState
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.
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.
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.
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
Jon Ashburn [Mon, 3 Aug 2015 23:34:47 +0000 (17:34 -0600)]
loader: Move long DEBUG_REPORT comments into debug report source code
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.
Jon Ashburn [Mon, 3 Aug 2015 15:08:46 +0000 (09:08 -0600)]
loader: Convert layer versions from manifest file to Vulkan int version
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 .
Dana Jansens [Thu, 30 Jul 2015 20:22:15 +0000 (13:22 -0700)]
Initialize VkDesciptorSet to VK_NULL_HANDLE
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
Jeremy Hayes [Fri, 31 Jul 2015 20:16:20 +0000 (14:16 -0600)]
layers: Validate renderPass.
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.
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.
GregF [Tue, 14 Jul 2015 17:35:45 +0000 (11:35 -0600)]
demos: use -o on glslangValidator to allow parallel make
Jon Ashburn [Fri, 31 Jul 2015 17:32:44 +0000 (10:32 -0700)]
loader: Fix Windows layers json files for backslash as separator
David Pinedo [Fri, 31 Jul 2015 16:56:20 +0000 (10:56 -0600)]
Screenshot layer: Works on SDK 0.2 branch
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.
Jon Ashburn [Fri, 31 Jul 2015 16:11:24 +0000 (10:11 -0600)]
loader: Fix alloca ro loader_stack_alloc() for Windows
Tony Barbour [Wed, 29 Jul 2015 20:26:21 +0000 (14:26 -0600)]
loader: get_registry_files needs to parse a list
Courtney Goeltzenleuchter [Thu, 30 Jul 2015 16:49:03 +0000 (10:49 -0600)]
layers: Add separate windows and linux json
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
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
Jeremy Hayes [Fri, 31 Jul 2015 18:54:58 +0000 (12:54 -0600)]
layers: Fix vkGetPipelineCacheSize validation.
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.
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.
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
Jon Ashburn [Fri, 31 Jul 2015 15:41:31 +0000 (09:41 -0600)]
loader: fix typo in log message
Courtney Goeltzenleuchter [Tue, 28 Jul 2015 14:59:17 +0000 (08:59 -0600)]
cube: We reuse cmd bufs, so dont do one_time flag
Courtney Goeltzenleuchter [Tue, 28 Jul 2015 15:09:45 +0000 (09:09 -0600)]
bug-14352: Update vulkan.h version
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
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.
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
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.
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.
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.
Courtney Goeltzenleuchter [Mon, 27 Jul 2015 19:47:08 +0000 (13:47 -0600)]
intel: Add support for GetRenderAreaGranularity
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
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>
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>
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>
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>
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>
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>
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.
David Pinedo [Fri, 24 Jul 2015 16:54:41 +0000 (10:54 -0600)]
Windows nulldrv: Add stub for vkGetPhysicalDeviceImageFormatProperties
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.
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
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.
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.
Jon Ashburn [Fri, 24 Jul 2015 00:48:20 +0000 (18:48 -0600)]
misc: Add vkGetPhysicalDeviceImageFormatProperties as a stub
Courtney Goeltzenleuchter [Thu, 23 Jul 2015 17:25:17 +0000 (11:25 -0600)]
layers: eliminate Windows compiler warning
Dan Ginsburg [Thu, 23 Jul 2015 17:15:00 +0000 (13:15 -0400)]
Fix win32 build
GregF [Thu, 23 Jul 2015 16:17:11 +0000 (10:17 -0600)]
compiler: upgrade to latest glslang and LunarGLASS for bug fixes
Jon Ashburn [Thu, 23 Jul 2015 16:59:21 +0000 (10:59 -0600)]
layers: update README.md
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.
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.
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.
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.
mschott [Wed, 22 Jul 2015 12:11:29 +0000 (14:11 +0200)]
loader_log: add OutputDebugString("\n");
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>
Tony Barbour [Tue, 21 Jul 2015 15:04:41 +0000 (09:04 -0600)]
demos: Add more validation layers and fix errors/warnings
Tony Barbour [Mon, 20 Jul 2015 16:52:13 +0000 (10:52 -0600)]
layers: objtrack has to call destroy in FreeDescriptorSets
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
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.
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.
Adam Jackson [Wed, 24 Jun 2015 17:39:49 +0000 (13:39 -0400)]
nulldrv: Link with -Bsymbolic so vkGetDeviceProcAddress behaves
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.
Adam Jackson [Tue, 23 Jun 2015 19:41:13 +0000 (15:41 -0400)]
cmake: Don't check for installed glm, it's in-tree
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.
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.
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 23:41:38 +0000 (17:41 -0600)]
cube: set VkAttachmentViewCreateInfo.format
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.
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.
Tobin Ehlis [Mon, 13 Jul 2015 20:51:15 +0000 (14:51 -0600)]
layers: In DrawState correctly return rasterSamples count for PSO
Mark Lobodzinski [Thu, 16 Jul 2015 16:35:18 +0000 (10:35 -0600)]
vulkan: Updated LICENSE.txt with all known license information
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
Jon Ashburn [Thu, 16 Jul 2015 16:54:55 +0000 (10:54 -0600)]
loader: Update loader readme and add ICD/ layer discovery documentation
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
Jon Ashburn [Thu, 16 Jul 2015 16:12:59 +0000 (10:12 -0600)]
icd: Generate vkInstanceProcAddr with real entrypoints
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.
Cody Northrop [Thu, 16 Jul 2015 16:29:32 +0000 (10:29 -0600)]
demos: Set size of uniform buffer in cube
Courtney Goeltzenleuchter [Wed, 15 Jul 2015 17:17:08 +0000 (11:17 -0600)]
demos: Remove reference to undefined variable
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.
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.