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.
Courtney Goeltzenleuchter [Tue, 14 Jul 2015 17:56:44 +0000 (11:56 -0600)]
bug-14282: remove const
Tony Barbour [Tue, 14 Jul 2015 19:34:05 +0000 (13:34 -0600)]
Clean up warnings from release build
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.
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.
Tony Barbour [Mon, 13 Jul 2015 22:37:21 +0000 (16:37 -0600)]
Windows: Clean up more compiler errors and warnings
Tony Barbour [Mon, 13 Jul 2015 21:28:47 +0000 (15:28 -0600)]
Windows: more changes for windows compiler
Tony Barbour [Mon, 13 Jul 2015 21:06:12 +0000 (15:06 -0600)]
Windows: more fixes for windows compile
Tony Barbour [Mon, 13 Jul 2015 19:37:24 +0000 (13:37 -0600)]
Windows: More windows compilier fixes
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
Jeremy Hayes [Mon, 13 Jul 2015 21:21:40 +0000 (15:21 -0600)]
layers: Remove dead code.
Tobin Ehlis [Mon, 13 Jul 2015 20:21:59 +0000 (14:21 -0600)]
layers: In MemTracker remove non-intercepted WSI funcs from GetProcAddr
Courtney Goeltzenleuchter [Mon, 13 Jul 2015 20:01:15 +0000 (14:01 -0600)]
vulkan: Fix definition of LayerProperties
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.
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.
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.
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
Ian Elliott [Mon, 6 Jul 2015 20:34:08 +0000 (14:34 -0600)]
icd-common: 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.
Ian Elliott [Mon, 6 Jul 2015 20:29:31 +0000 (14:29 -0600)]
nulldrv: Changes to use new WSI swapchain extensions.
Ian Elliott [Mon, 6 Jul 2015 20:27:58 +0000 (14:27 -0600)]
demos: Changes to use new WSI swapchain extensions.
Ian Elliott [Fri, 19 Jun 2015 23:19:39 +0000 (17:19 -0600)]
WSI: Add swapchain-extension headers (versions 12 & 40).
Courtney Goeltzenleuchter [Mon, 13 Jul 2015 17:08:12 +0000 (11:08 -0600)]
misc: Bump patch number to reflect diffs
We've incorporated two changes that are not in the upstream
v138 header so updating patch number to indicate that things
are different.
Mike Stroyan [Fri, 10 Jul 2015 18:51:14 +0000 (12:51 -0600)]
layers: Add install step for layers rpath settings
This allows a "make -Cbuild install' command to fix layer rpath.
The new layer shared libraries are created in build/install_staging/.
Ian Elliott [Mon, 13 Jul 2015 17:09:59 +0000 (11:09 -0600)]
demos: Fix Linux compiler warnings in "vulkaninfo.c"
Chris Forbes [Sat, 11 Jul 2015 04:06:23 +0000 (16:06 +1200)]
mem_tracker: Provide ctor for embedded union (and name it so we can)
VkSwapChainCreateInfoWSI has a nontrivial default constructor due to
having an embedded VkSwapChain handle.
From the C++11 standard, 9.5:
"If any non-static data member of a union has a non-trivial default
constructor (12.1), copy constructor (12.8), move constructor (12.8),
copy assignment operator (12.8), move assignment operator (12.8), or
destructor (12.4), the corresponding member function of the union must
be user-provided or it will be implicitly deleted (8.4.3) for the
union."
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Courtney Goeltzenleuchter [Mon, 13 Jul 2015 15:23:51 +0000 (09:23 -0600)]
vulkan: Remove unused STRUCTURE_TYPE enum
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 21:42:02 +0000 (15:42 -0600)]
v106: remove optional primitiveRestartIndex
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 21:31:57 +0000 (15:31 -0600)]
vulkan.h: Remove unused LAYER_CREATE_INFO type
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 21:25:20 +0000 (15:25 -0600)]
v115: Remove pLinkConstBufferInfo
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 21:22:31 +0000 (15:22 -0600)]
v131?: Remove ColorBlendAttachments->format
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 21:08:32 +0000 (15:08 -0600)]
v122?: Remove provoking vertex, now always last
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 20:53:14 +0000 (14:53 -0600)]
v106: Remove optional pointOrigin
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 20:49:41 +0000 (14:49 -0600)]
v106: remove optional depthMode
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 20:45:38 +0000 (14:45 -0600)]
bug 14084: eliminate ERROR_INVALID_OBJECT_TYPE
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 20:35:22 +0000 (14:35 -0600)]
v127: Use PFN_vkVoidFunction for GetProcAddr
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 20:06:04 +0000 (14:06 -0600)]
v115: Remove linkConstBufferCount
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 20:00:58 +0000 (14:00 -0600)]
v106: Remove optional multisampleEnable
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 19:54:31 +0000 (13:54 -0600)]
v106: Remove clipOrigin
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 19:42:28 +0000 (13:42 -0600)]
v128: Remove maxInlineMemoryUpdateSize
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 19:20:05 +0000 (13:20 -0600)]
v133: eliminate version from extension properties
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 19:07:46 +0000 (13:07 -0600)]
v133: Update parameters on CmdPipelineBarrier
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 18:58:58 +0000 (12:58 -0600)]
v133: Update parameter types on CmdWaitEvents
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 18:52:09 +0000 (12:52 -0600)]
v115: remove GetPhysicalDevicePerformance
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 18:40:29 +0000 (12:40 -0600)]
rename: GetPhysicalDeviceFormatInfo to GetPhysicalDeviceFormatProperties
Courtney Goeltzenleuchter [Thu, 9 Jul 2015 00:41:08 +0000 (18:41 -0600)]
vulkan: Updates to match upstream vulkan.h
Courtney Goeltzenleuchter [Sun, 12 Jul 2015 18:21:19 +0000 (12:21 -0600)]
vulkan: Switch to upstream header
Chris Forbes [Sat, 11 Jul 2015 07:11:39 +0000 (19:11 +1200)]
vulkan.h: API changes for #13744 - sharing across queues
The ICD doesn't do anything differently interesting yet, but this is
enough that the API works.
V2: Fix testbinding.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Courtney Goeltzenleuchter [Sat, 11 Jul 2015 01:50:17 +0000 (19:50 -0600)]
tests: Integrate command pools into tests
Cody Northrop [Fri, 10 Jul 2015 00:08:32 +0000 (18:08 -0600)]
demos: Update for command pools
Cody Northrop [Fri, 10 Jul 2015 00:08:05 +0000 (18:08 -0600)]
icd: Support for command pools
Tobin Ehlis [Sat, 11 Jul 2015 00:25:07 +0000 (18:25 -0600)]
layers: Various layer fixes to get layer validation tests working with type safety changes
Courtney Goeltzenleuchter [Fri, 10 Jul 2015 23:44:33 +0000 (17:44 -0600)]
nulldrv: Fix up compile issues for Windows
Courtney Goeltzenleuchter [Fri, 10 Jul 2015 23:39:59 +0000 (17:39 -0600)]
loader: Fix MS compile warning
Chris Forbes [Fri, 10 Jul 2015 23:05:01 +0000 (11:05 +1200)]
layers: Fixup and reenable fs output validation in ShaderChecker
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Courtney Goeltzenleuchter [Fri, 10 Jul 2015 03:57:28 +0000 (21:57 -0600)]
bug-14184: Transient memory allocations
Tony Barbour [Fri, 10 Jul 2015 21:29:03 +0000 (15:29 -0600)]
Bug 14224: Remove abbreviations on some API symbols
Courtney Goeltzenleuchter [Fri, 10 Jul 2015 22:58:42 +0000 (16:58 -0600)]
misc: Bump header version
Tony Barbour [Fri, 10 Jul 2015 20:10:27 +0000 (14:10 -0600)]
Bug 14084: Get tests compiling and running
Some layer tests still have issues.
Tony Barbour [Fri, 10 Jul 2015 16:50:45 +0000 (10:50 -0600)]
Bug 14248: Add vkFreeDescriptorSets
Tobin Ehlis [Wed, 8 Jul 2015 23:08:02 +0000 (17:08 -0600)]
layers: Get MemTracker compiling with type safety header change
Still need to test functionality.
Tobin Ehlis [Tue, 7 Jul 2015 17:02:44 +0000 (11:02 -0600)]
layers: Get Generic layer to compile with type safety header changes
Chris Forbes [Thu, 9 Jul 2015 21:06:54 +0000 (09:06 +1200)]
layers: Update ShaderChecker for 14084
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Courtney Goeltzenleuchter [Fri, 10 Jul 2015 01:04:04 +0000 (19:04 -0600)]
TODO: Disable non-working layers for now
Tony Barbour [Thu, 9 Jul 2015 23:31:46 +0000 (17:31 -0600)]
Bug 14084 - Object Tracker, Image, Generic layers
Mike Stroyan [Thu, 9 Jul 2015 17:01:07 +0000 (11:01 -0600)]
layers: Threading layer type safety header changes
Change to one map per data type.
Change to one useObject and finishUsingObject function per data type.
Use object.handle as map key for non-dispatchable objects.
Change to VkDbgObjectType.
Jeremy Hayes [Thu, 9 Jul 2015 23:11:25 +0000 (17:11 -0600)]
layers: Fix param checker compilation errors.