Jon Ashburn [Tue, 24 Nov 2015 23:40:36 +0000 (16:40 -0700)]
layers: Fix documentation file for new wsi surface ext
Mark Lobodzinski [Tue, 24 Nov 2015 22:49:46 +0000 (15:49 -0700)]
loader: Fix typo in wsi file
Ian Elliott [Tue, 24 Nov 2015 22:39:10 +0000 (15:39 -0700)]
loader: Add vkGetPhysicalDevice*PresentationSupportKHR()
These queries involve trampoline and terminator functions (the latter
of which calls the ICD's function).
Jon Ashburn [Tue, 24 Nov 2015 18:12:20 +0000 (11:12 -0700)]
vulkan: Fix parameter name for GetSwapchainImagesKHR
Mark Lobodzinski [Tue, 24 Nov 2015 19:04:15 +0000 (12:04 -0700)]
wsi: Fix windows build issues
Mark Lobodzinski [Tue, 24 Nov 2015 17:28:31 +0000 (10:28 -0700)]
layers: Fix build issue and fence warnings in ObjectTracker
Jon Ashburn [Tue, 24 Nov 2015 01:55:15 +0000 (18:55 -0700)]
layers: add DestroySurfaceKHR to instance dispatch table
Jon Ashburn [Tue, 24 Nov 2015 01:23:29 +0000 (18:23 -0700)]
misc: Add DestroySurfaceKHR to the codegen WSI surface extension
Conflicts:
vulkan.py
Ian Elliott [Tue, 24 Nov 2015 16:47:14 +0000 (09:47 -0700)]
WSI-ICD: Fix Windows compilation error.
Ian Elliott [Mon, 23 Nov 2015 23:18:59 +0000 (16:18 -0700)]
TEMPORARY: TURN OFF COMPILATION OF TRACE/REPLAY ... DON'T KEEP THIS!
Ian Elliott [Mon, 23 Nov 2015 22:25:28 +0000 (15:25 -0700)]
object_track: Remove some obsolete code
Ian Elliott [Mon, 23 Nov 2015 19:48:15 +0000 (12:48 -0700)]
demos: Some cleanup, including calling GIPA.
Includes Calling GIPA instead of GDPA for functions that moved to instance
extension.
Ian Elliott [Mon, 23 Nov 2015 17:17:23 +0000 (10:17 -0700)]
loader: Address Jon Ashburn's review comments.
It took a few commits (squashed down into 1) to get it correct. Includes:
Use loader_heap_{alloc|free}().
Try to deal correctly with initializing the vkCreate*SurfaceKHR()'s.
Ian Elliott [Fri, 20 Nov 2015 23:39:34 +0000 (16:39 -0700)]
swapchain: Can build after major updates for new WSI (works?)
Plus: Move 3 entrypoints from GDPA to GIPA
Ian Elliott [Fri, 20 Nov 2015 21:13:17 +0000 (14:13 -0700)]
layers: Convert most of the layers to the new WSI.
Ian Elliott [Fri, 20 Nov 2015 20:08:34 +0000 (13:08 -0700)]
demos: Enabled the appropriate platform-specific WSI extension.
Ian Elliott [Fri, 20 Nov 2015 18:55:46 +0000 (11:55 -0700)]
demos: Get compiling with new WSI extensions.
Conflicts:
demos/cube.c
demos/tri.c
demos/vulkaninfo.c
Ian Elliott [Thu, 19 Nov 2015 23:39:21 +0000 (16:39 -0700)]
loader: Add WSI "device" trampoline funcs (e.g. vkCreateSwapchainKHR).
This is because these entrypoints are now "statically defined" (i.e. the loader
on Windows, Linux, and Android will export these symbols directly, with no need
to call a GPA() function).
Ian Elliott [Thu, 19 Nov 2015 23:05:09 +0000 (16:05 -0700)]
loader: Add new vkGetPhysicalDeviceSurface*KHR() functions.
- vkGetPhysicalDeviceSurfaceCapabilitiesKHR()
- vkGetPhysicalDeviceSurfaceFormatsKHR()
- vkGetPhysicalDeviceSurfacePresentModesKHR()
Ian Elliott [Thu, 19 Nov 2015 20:14:05 +0000 (13:14 -0700)]
loader: Wrote vk{Create|Destroy}*SurfaceKHR() trampoline functions.
This is an area where the loader-ICD interface is different. Instead of the
trampoline function calling down a call-chain, For Windows and Linux, this
function actually fully implements the function. A VkSurfaceKHR is actually a
pointer to a platform-specific struct (declared in "vk_icd.h"). The memory for
the struct is allocated, and the struct is initialized. All ICDs and layers on
Windows and Linux are supposed to treat VkSurfaceKHR's (e.g. in other calls) as
such a pointer to a struct.
Also, per a Skype conversation with Jon Ashburn, there will be
per-WSI-extension sections of the file, with pairs of trampoline-terminator
functions right next to each other.
Ian Elliott [Thu, 19 Nov 2015 19:37:51 +0000 (12:37 -0700)]
loader: Export the trampoline code for vkGetPhysicalDeviceSurfaceSupportKHR
Also, fix which extension is used to enable this function.
Ian Elliott [Thu, 19 Nov 2015 18:58:08 +0000 (11:58 -0700)]
loader: Create defaults for which platforms WSI is supported on.
Windows: VK_USE_PLATFORM_WIN32_KHR
Linux: VK_USE_PLATFORM_XCB_KHR
Ian Elliott [Fri, 30 Oct 2015 23:45:05 +0000 (17:45 -0600)]
loader: Started plumbing the platform extensions.
Ian Elliott [Fri, 30 Oct 2015 21:28:23 +0000 (15:28 -0600)]
loader: Started porting loader to new WSI (GIPA missing).
Ian Elliott [Wed, 18 Nov 2015 22:32:38 +0000 (15:32 -0700)]
nulldrv: Get compiling.
Conflicts:
icd/common/icd.h
Ian Elliott [Wed, 18 Nov 2015 22:20:45 +0000 (15:20 -0700)]
loader: Get loader compiling.
Ian Elliott [Wed, 18 Nov 2015 21:57:08 +0000 (14:57 -0700)]
WSI: Eliminate a lot of references to WSI header files.
Conflicts:
include/vulkan/vk_layer.h
loader/loader.h
Ian Elliott [Wed, 18 Nov 2015 19:19:12 +0000 (12:19 -0700)]
WSI-ICD: Created per-platform structs for platform-specific info.
Per Khronos Bugzilla Bug 15077, on Windows and Linux, VkSurfaceKHR is treated
as a pointer to platform-specific structs that contain the platform-specific
connection and surface/window info. The Vulkan loader vkCreate*SurfaceKHR()
functions will fill in the struct. ICDs and layers will cast VkSurfaceKHR to a
pointer to the appropriate VkIcdSurface* struct.
Ian Elliott [Fri, 30 Oct 2015 17:45:42 +0000 (11:45 -0600)]
WSI-debug_report: Add VK_OBJECT_TYPE_SURFACE_KHR
Ian Elliott [Thu, 29 Oct 2015 22:35:06 +0000 (16:35 -0600)]
vulkan.py: Changes in previous WSI functions.
Ian Elliott [Wed, 18 Nov 2015 18:47:20 +0000 (11:47 -0700)]
nulldrv: WSI hand-edits
Ian Elliott [Wed, 18 Nov 2015 00:46:38 +0000 (17:46 -0700)]
loader: Hand-edits
Ian Elliott [Wed, 18 Nov 2015 00:29:40 +0000 (17:29 -0700)]
WSI: sed-generated changes to WSI code (not all that's needed).
Conflicts:
demos/cube.c
demos/tri.c
demos/vulkaninfo.c
icd/common/icd.h
loader/loader.h
Ian Elliott [Tue, 17 Nov 2015 23:53:14 +0000 (16:53 -0700)]
WSI: Remove old WSI headers (content now in "vulkan.h").
Ian Elliott [Wed, 18 Nov 2015 19:24:57 +0000 (12:24 -0700)]
WSI: Add WSI content to "vulkan.h" and "vk_platform.h".
This commit makes those files equal to the official 0.210.0 version of those
files.
Mark Lobodzinski [Tue, 10 Nov 2015 22:25:01 +0000 (15:25 -0700)]
layers: LX195, Drawstate ignores compute pipelines
Mark Lobodzinski [Mon, 30 Nov 2015 15:37:47 +0000 (08:37 -0700)]
layers: Update README file for new SDK releases
Chris Forbes [Thu, 26 Nov 2015 21:49:09 +0000 (10:49 +1300)]
layers/SC: Fix location counting for stages which take arrayed input.
Jeremy Hayes [Thu, 26 Nov 2015 20:32:58 +0000 (13:32 -0700)]
layers: Fix path for vulkan header.
Chris Forbes [Mon, 23 Nov 2015 22:13:29 +0000 (11:13 +1300)]
layers/SC: LX187: compute size of array and matrix types
This fixes spurious warnings previously emitted by SC when using
larger-than-vec4 types across the VI->VS interface.
Chris Forbes [Mon, 23 Nov 2015 22:13:21 +0000 (11:13 +1300)]
layers/SC: consider types larger than vec4 when collecting interfaces
This is required for proper handling of array or matrix types on the
VI->VS interface.
Chris Forbes [Mon, 23 Nov 2015 22:13:05 +0000 (11:13 +1300)]
layers/SC: fix a bogus leftover comment in descriptor validation
Chris Forbes [Tue, 24 Nov 2015 20:36:03 +0000 (09:36 +1300)]
layers: Use spirv.hpp from colocated glslang tree
Chris Forbes [Tue, 24 Nov 2015 19:32:46 +0000 (08:32 +1300)]
layers/SC: Delete disabled FS broadcast checking code
The support for collecting builtins on an interface is still kept
however -- we're likely to want to validate other builtin usage against
the pipeline config.
Michael Lentine [Tue, 24 Nov 2015 15:48:23 +0000 (09:48 -0600)]
Update param checker.
Verify that the app isn't making an empty draw.
Michael Lentine [Mon, 23 Nov 2015 23:52:53 +0000 (17:52 -0600)]
layers: Remove mem/object deletion ordering
Current the spec allows for deleting memory backing an option and then
subsequently deleting the object which throws an error.
Michael Lentine [Fri, 20 Nov 2015 17:48:52 +0000 (09:48 -0800)]
Update access bits for 210 header.
Jon Ashburn [Wed, 25 Nov 2015 15:25:11 +0000 (08:25 -0700)]
demos: Fix layer names for cube
David Pinedo [Tue, 24 Nov 2015 16:00:24 +0000 (09:00 -0700)]
Layers: changed layer names to conform to spec
GregF [Mon, 23 Nov 2015 22:14:18 +0000 (15:14 -0700)]
layers: port ShaderChecker layer to SPIR-V 1.0
GregF [Fri, 20 Nov 2015 21:37:17 +0000 (14:37 -0700)]
icd compiler, glslang: move to SPV 1.0
Cody Northrop [Mon, 23 Nov 2015 20:52:26 +0000 (13:52 -0700)]
layers: Add link to example vk_layer_settings.txt
Mark Lobodzinski [Mon, 23 Nov 2015 16:07:20 +0000 (09:07 -0700)]
layers: Fix image layer issue validating aspectMasks
Jon Ashburn [Fri, 20 Nov 2015 23:02:33 +0000 (16:02 -0700)]
Revert "icd compiler, glslang: move to SPV 1.0"
This reverts commit
0775868ddec7cc20b83bc3ed7aecdfff2179b1a4.
Michael Lentine [Fri, 20 Nov 2015 20:11:42 +0000 (12:11 -0800)]
Fix build in master
Use dispatchable handles in mdd, fix include path for vulkan.h,
and do not build armeabi.
Mark Lobodzinski [Thu, 19 Nov 2015 22:45:36 +0000 (15:45 -0700)]
layers: MemTracker cleanup, remove redundant object-tracker type checks
GregF [Fri, 20 Nov 2015 21:37:17 +0000 (14:37 -0700)]
icd compiler, glslang: move to SPV 1.0
Michael Lentine [Wed, 4 Nov 2015 00:20:30 +0000 (16:20 -0800)]
tests: Make some of the validation tests work on android
Conflicts:
tests/vkrenderframework.h
Mark Lobodzinski [Fri, 20 Nov 2015 21:33:48 +0000 (14:33 -0700)]
layers: Fix thread-safety issues found in rendersystemtests
MemTracker and DrawState needed some mutex protection.
Jon Ashburn [Thu, 19 Nov 2015 22:43:26 +0000 (15:43 -0700)]
loader: Don't use ICD's VkDevice after it has been destroyed
LX # 201
Conflicts:
loader/trampoline.c
Mark Lobodzinski [Fri, 20 Nov 2015 16:27:27 +0000 (09:27 -0700)]
layers: Temporarily disable memory barrier validation in drawstate
Commented out memory barrier validation until confidence is reached for
an implementation.
Mark Lobodzinski [Thu, 12 Nov 2015 22:14:35 +0000 (15:14 -0700)]
layers: LX196, validate createImage paramters against format limits
Relocated some validation from DeviceLimits layer to Image layer,
added additional per-format limit validation for CreateImage parameters.
Mark Lobodzinski [Thu, 19 Nov 2015 22:48:49 +0000 (15:48 -0700)]
layers: Add null-check in MemTracker to prevent layer crash
Mark Lobodzinski [Thu, 19 Nov 2015 21:13:44 +0000 (14:13 -0700)]
layers: Additional MapMemory validation checks in MemTracker
Mark Lobodzinski [Thu, 19 Nov 2015 20:22:11 +0000 (13:22 -0700)]
layers: LX206, properly restore command buffer level on a reset
Mark Lobodzinski [Thu, 19 Nov 2015 19:07:21 +0000 (12:07 -0700)]
layers: LX205, fix BeginCommandBuffer log messages
Mark Lobodzinski [Thu, 19 Nov 2015 17:40:58 +0000 (10:40 -0700)]
layers: Fix memory barrier validation issues
Some Valve DrawState issues
Jon Ashburn [Thu, 19 Nov 2015 16:29:51 +0000 (09:29 -0700)]
loader: Don't init icds if CreateInstance() from ICD fails.
Tobin Ehlis [Thu, 5 Nov 2015 16:52:49 +0000 (09:52 -0700)]
layers: Add DrawState checks for incompatible layouts at BindDescriptorSets time
At vkCmdBindDescriptorSets() time, verify that each set being bound is compatible
with the referenced VkPipelineLayout "layout". Also track bound descriptorSets per
CommandBuffer and if previously-bound sets outside of the current binding range
are being disturbed, mark them as INVALID and report an INFO message.
Mark Lobodzinski [Thu, 19 Nov 2015 15:31:31 +0000 (08:31 -0700)]
layers: Fix windows build errors in MemTracker
David Pinedo [Thu, 19 Nov 2015 15:26:02 +0000 (08:26 -0700)]
mem_tracker: Return VK_SUCCESS in vkCreateCommandPool, vkResetCommandPool
Build on Windows was failing.
Jon Ashburn [Wed, 18 Nov 2015 23:46:48 +0000 (16:46 -0700)]
loader: Make version in layer JSON files consistent
bugzilla #15057 part two
Jon Ashburn [Wed, 18 Nov 2015 00:35:40 +0000 (17:35 -0700)]
loader: Add parsing of api_version in ICD JSON
bugzilla #15057 part one
Also make this version for Intel sample driver be v210.
Jon Ashburn [Tue, 17 Nov 2015 22:31:02 +0000 (15:31 -0700)]
loader: Add dynamic dispatch for unknown device extension entrypoints
GetInstancePorcAddr() is specified to return trampoline entrypoints for all
Vulkan core and extension entrypoints that are dispatched on an instance object
or a child of that instance object. However, typically, device extensions would
be unknown to the loader (don't want to rev the loader everytime an IHV creates
a new device extension).
This patch allows loader to dynamically discover device extension entrypoints
and configure generic trampoline code for these discovered device extensions.
Jon Ashburn [Tue, 17 Nov 2015 22:22:07 +0000 (15:22 -0700)]
demos: Change tri to use GetInstanceProcAddr for WSI dev ext entry points
This is a better test for loader dynamic dev extension dispatch
Mark Lobodzinski [Fri, 13 Nov 2015 20:47:01 +0000 (13:47 -0700)]
layers: Add CommandBufferPool validation to MemTracker
Mark Lobodzinski [Wed, 18 Nov 2015 15:38:27 +0000 (08:38 -0700)]
layers: Add command pool validation to DrawState
Mark Lobodzinski [Wed, 18 Nov 2015 18:01:02 +0000 (11:01 -0700)]
layers: Fix infinite loop in DrawState
Jeremy Hayes [Wed, 18 Nov 2015 01:24:56 +0000 (18:24 -0700)]
layers: Fix error messages.
Jeremy Hayes [Wed, 18 Nov 2015 01:19:55 +0000 (18:19 -0700)]
layers: Validate barrier subresource range.
Check subresource range for image memory barriers.
Mark Lobodzinski [Wed, 18 Nov 2015 16:14:04 +0000 (09:14 -0700)]
layers: Fix CreateImageView depth/stencil aspect validation
Mark Lobodzinski [Wed, 18 Nov 2015 15:58:31 +0000 (08:58 -0700)]
layers: Remove invalid depth/stencil validation check
Mark Lobodzinski [Tue, 17 Nov 2015 22:11:24 +0000 (15:11 -0700)]
layers: Fix invalid depth/stencil attachment index validation
Was validating against color attachment index instead of attachment
index for depth/stencil ClearAttachment calls.
Mark Lobodzinski [Tue, 17 Nov 2015 19:42:57 +0000 (12:42 -0700)]
layers: Fix Dota 2 crash in draw_state layer
Memsetting STL vectors again -- added default constructor to struct.
Jeremy Hayes [Tue, 17 Nov 2015 00:23:59 +0000 (17:23 -0700)]
layers: Check compareEnable.
Don't validate compareOp if compareEnable is false.
David Pinedo [Tue, 17 Nov 2015 00:01:29 +0000 (17:01 -0700)]
Change version 1.0 to 0.10
Mark Lobodzinski [Thu, 12 Nov 2015 23:02:35 +0000 (16:02 -0700)]
layers: Add validation for object pools
Added proper alloc/free tracking for ObjectTracker -- it now handles
multiple command buffers and descriptor sets.
Jon Ashburn [Mon, 16 Nov 2015 16:12:13 +0000 (09:12 -0700)]
header: bump to vers 210 only changes were to WSI
David Pinedo [Thu, 12 Nov 2015 23:25:53 +0000 (16:25 -0700)]
Version change from 0.9 to 1.0
Mark Lobodzinski [Thu, 12 Nov 2015 23:14:04 +0000 (16:14 -0700)]
layers: Add missing null-check in DrawState
Tony Barbour [Wed, 11 Nov 2015 23:15:54 +0000 (16:15 -0700)]
demos: Fix access masks in layout transitions in tri
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v209: bump API minor version
Chia-I Wu [Wed, 11 Nov 2015 22:09:22 +0000 (06:09 +0800)]
bug 15120: rename vkCmdPushConstants "values" to "pValues"
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15120
Chia-I Wu [Wed, 11 Nov 2015 22:09:22 +0000 (06:09 +0800)]
MR671: Rename VK_STRUCTURE_TYPE_LAYER_* to ..LOADER_*
Nothing to do.
https://gitlab.khronos.org/vulkan/vulkan/merge_requests/671
Mark Lobodzinski [Thu, 12 Nov 2015 17:11:21 +0000 (10:11 -0700)]
layers: LX194, Change 'fence already signaled' warning to INFO-level
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v208: bump API minor version
Chia-I Wu [Wed, 11 Nov 2015 02:18:12 +0000 (10:18 +0800)]
bug 15089: Does "Across Command Buffer Boundaries" apply to second-level command buffers?
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15089
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v207: bump API minor version
Chia-I Wu [Tue, 10 Nov 2015 08:21:09 +0000 (16:21 +0800)]
MR640: Alloc -> Allocate naming fixes
Drop a workaround in get_struct_name_from_struct_type in vk_helper.py.
s/VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO/VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO/g
s/VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOC_INFO/VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO/g
s/VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOC_INFO/VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO/g
https://gitlab.khronos.org/vulkan/vulkan/merge_requests/640
Chia-I Wu [Tue, 10 Nov 2015 08:21:09 +0000 (16:21 +0800)]
MR632: Valid usage xml global changes
Nothing to do.
https://gitlab.khronos.org/vulkan/vulkan/merge_requests/632