Tobin Ehlis [Fri, 17 Apr 2015 14:55:13 +0000 (08:55 -0600)]
layers: Add ShaderChecker as Validation layer
Tobin Ehlis [Fri, 17 Apr 2015 00:04:57 +0000 (18:04 -0600)]
demos: Update demos and tests to use vkGetGlobalExtensionInfo to check extensions
Courtney Goeltzenleuchter [Fri, 17 Apr 2015 03:44:35 +0000 (21:44 -0600)]
bug-13466: Note conflict with upstream on VkQueryResultFlags
Courtney Goeltzenleuchter [Fri, 17 Apr 2015 03:42:44 +0000 (21:42 -0600)]
misc: non-functional changes to match upstream header
Fix up white space and comments to exactly match upstream vulkan.h
Chia-I Wu [Fri, 17 Apr 2015 02:49:15 +0000 (10:49 +0800)]
loader: add a missing VKAPI
loader_gpa_internal() needs VKAPI.
Tony Barbour [Fri, 17 Apr 2015 01:23:13 +0000 (19:23 -0600)]
Bug 13632 Header 84 Add VkFlushMappedMemory
Tony Barbour [Fri, 17 Apr 2015 01:09:28 +0000 (19:09 -0600)]
Bug 13632 Header 84 Add offset and size to VkMapMemory
Chia-I Wu [Thu, 16 Apr 2015 18:00:54 +0000 (02:00 +0800)]
vulkan: Remove VkDescriptorSetLayoutChain from vkCmdBindDescriptorSets
This is part of r30446 on vulkan.h, discussed in bug 13632.
Meaty chunks of this commit done by Olv, basic hook up and testing by Cody.
Tony Barbour [Thu, 16 Apr 2015 21:59:00 +0000 (15:59 -0600)]
Bug 13632 Header 84 Assorted questions and comments on vulkan.h
Jon Ashburn [Wed, 15 Apr 2015 17:31:12 +0000 (11:31 -0600)]
misc: Change vkEnumerateGpus to vkEnumeratePhysicalDevices
Conflicts:
loader/loader.h
Tobin Ehlis [Thu, 16 Apr 2015 21:56:11 +0000 (15:56 -0600)]
layers: Fix bug in how dynamic array Counts were interpreted by APIDump
Ian Elliott [Fri, 17 Apr 2015 00:10:19 +0000 (18:10 -0600)]
nulldrv: Add vkCmdCopyQueryPoolResults()
Chris Forbes [Thu, 16 Apr 2015 22:13:28 +0000 (10:13 +1200)]
shader_checker: convert printf to debug output
Chris Forbes [Tue, 14 Apr 2015 18:59:41 +0000 (06:59 +1200)]
shader_checker: add plumbing for debug
Chris Forbes [Thu, 9 Apr 2015 23:41:20 +0000 (11:41 +1200)]
shader_checker: first pass at typechecks
Chris Forbes [Tue, 7 Apr 2015 22:37:20 +0000 (10:37 +1200)]
shader_checker: validate fs outputs against cb
Chris Forbes [Tue, 7 Apr 2015 22:36:37 +0000 (10:36 +1200)]
shader_checker: validate vertex attribs against vs inputs
Chris Forbes [Tue, 7 Apr 2015 22:19:16 +0000 (10:19 +1200)]
shader_checker: add validation of interface between vs and fs
Chris Forbes [Tue, 7 Apr 2015 22:16:45 +0000 (10:16 +1200)]
shader_checker: collect pipeline stages in vkCreateGraphicsPipeline
Chris Forbes [Tue, 7 Apr 2015 22:15:35 +0000 (10:15 +1200)]
shader_checker: add hook for xglCreateGraphicsPipeline
Chris Forbes [Mon, 13 Apr 2015 00:14:52 +0000 (12:14 +1200)]
shader_checker: collect interface definitions from shaders
Chris Forbes [Tue, 7 Apr 2015 22:11:59 +0000 (10:11 +1200)]
shader_checker: capture spir-v for every shader at vkCreateShader time
Chris Forbes [Thu, 2 Apr 2015 00:22:31 +0000 (13:22 +1300)]
shader_checker: initial plumbing
Jeremy Hayes [Wed, 15 Apr 2015 21:20:03 +0000 (15:20 -0600)]
vulkan: Rename bindInfo to pBindInfo.
Conflicts:
include/vulkan.h
layers/param_checker.cpp
Courtney Goeltzenleuchter [Thu, 16 Apr 2015 19:38:46 +0000 (13:38 -0600)]
bug 13632: Convert commands to plural form
part of multiple commits to implement bug #13632.
bug 13632
header version 82
svn version: 30446
This patch converts:
vkCmdBindVertexBuffer -> vkCmdBindVertexBuffers
vkQueueAddMemReference -> vkQueueAddMemReferences
vkQueueRemoveMemReference -> vkQueueRemoveMemReferences
Jeremy Hayes [Wed, 15 Apr 2015 20:17:56 +0000 (14:17 -0600)]
vulkan: Update object memory requirements (13723).
Mike Stroyan [Thu, 16 Apr 2015 20:11:54 +0000 (14:11 -0600)]
layers: Change threading layer file name.
Threading layer file name was ThreadingChecker.
That was inconsistent with the layer name.
Tobin Ehlis [Thu, 16 Apr 2015 18:51:37 +0000 (12:51 -0600)]
Add GetPhysicalDeviceExtensionInfo() function to API
Added function to driver, currently returning a count of 0 and VK_ERROR_INVALID_VALUE if an attempt it made to retrieve extension properties.
This change is slightly leading another so the first paramter is currently "VkPhysicalGpu" but should be migrated to "VkPhysicalDevice" when that change comes in.
Tobin Ehlis [Thu, 16 Apr 2015 17:17:12 +0000 (11:17 -0600)]
layers: Removing old GetExtensionSupport API call
Tobin Ehlis [Thu, 16 Apr 2015 16:04:35 +0000 (10:04 -0600)]
demos: Remove use of GetExtensionSupport API that's going away
Courtney Goeltzenleuchter [Thu, 16 Apr 2015 00:21:13 +0000 (18:21 -0600)]
bug 13466: Allow writing query results to buffer memory
Mark Lobodzinski [Thu, 16 Apr 2015 16:44:05 +0000 (11:44 -0500)]
vulkan: Updated vulkan.h for revision 79 -- Bug #13464
Implemented the changes required for adding fine-grained synchronization
to vkBindMemoryObject and related APIs.
Courtney Goeltzenleuchter [Thu, 16 Apr 2015 15:29:43 +0000 (09:29 -0600)]
glave: Disable, will update on separate branch
Mark Lobodzinski [Thu, 16 Apr 2015 13:52:00 +0000 (08:52 -0500)]
vulkan.h: V74. Unify memory pools. Bug #13633.
Simplify the memory API to use one pool for both image and buffer resources.
Tony Barbour [Mon, 13 Apr 2015 21:02:52 +0000 (15:02 -0600)]
vulkan.h: Rename parameters in vkCmdResolveImage calls
Tony Barbour [Mon, 13 Apr 2015 19:11:12 +0000 (13:11 -0600)]
intel: Fix xglCmdImageResolve doesn't properly support MSAA texture arrays
Conflicts:
icd/intel/cmd_meta.c
include/vulkan.h
Jon Ashburn [Thu, 16 Apr 2015 00:03:47 +0000 (18:03 -0600)]
misc: Remove validation level
bug 13686
Tobin Ehlis [Wed, 15 Apr 2015 23:19:18 +0000 (17:19 -0600)]
layers: Add ThreadingChecker as a Validation layer
Tobin Ehlis [Wed, 15 Apr 2015 23:04:03 +0000 (17:04 -0600)]
layers: Improve validate helpers treatment of flag enums
Mike Stroyan [Thu, 2 Apr 2015 17:59:05 +0000 (11:59 -0600)]
layers: Add threading checking layer
New layer checks for use of objects from multiple threads.
Mike Stroyan [Wed, 8 Apr 2015 16:31:48 +0000 (10:31 -0600)]
layers: indirect GPA in dispatch table
layer_initialize_dispatch_table was using gpa pointer without lookup.
That could put the loader GPA function in for the lowest dispatch table
instead of the icd GPA function.
Use the same return from GPA call for GPA itself.
There was code fixing up GPA dispatch in draw_state.cpp and mem_tracker.cpp.
Remove that now that layer_initialize_dispatch_table does the right thing.
Mike Stroyan [Wed, 8 Apr 2015 16:27:43 +0000 (10:27 -0600)]
layers: add GPA to intercepted functions list
GetProcAddr is always intercepted, but not by self.generate_intercept.
Add it to the intercepted functions list for layer_intercept_proc.
InitAndEnumerateGpus is now longer in the protos list.
Tobin Ehlis [Wed, 15 Apr 2015 22:01:16 +0000 (16:01 -0600)]
layers: Add size helper exception for sampleCount which is not a dynamic array size
Mike Stroyan [Wed, 15 Apr 2015 21:37:47 +0000 (15:37 -0600)]
layers: memtracker - waiting on only some fences
Record correctly when only some fences of a queue are waited for.
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 21:29:59 +0000 (15:29 -0600)]
vulkan: Consistent naming scheme for resources in XGL
Bug 13230
header: 0.78.0
includes review feedback.
v2: replace VK_FORMAT_IMAGE_COPY_BIT by VK_FORMAT_COLOR_ATTACHMENT_BIT for now
(olv)
Tobin Ehlis [Wed, 15 Apr 2015 20:25:02 +0000 (14:25 -0600)]
layers: Check for NULL ptrs while iterating over fenceMap
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 20:20:01 +0000 (14:20 -0600)]
layers: Remove unused object tracker code
Tobin Ehlis [Wed, 15 Apr 2015 20:13:10 +0000 (14:13 -0600)]
layers: Fix APIDump in NoAddr mode so params aren't duplicated
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 20:10:51 +0000 (14:10 -0600)]
mem_tracker: Check for fence before retiring
Mark Lobodzinski [Tue, 14 Apr 2015 19:09:32 +0000 (14:09 -0500)]
layers: MemTracker error message fixes
Missed a couple of error message renaming changes necessary for layer
validation tests.
Jon Ashburn [Wed, 15 Apr 2015 19:34:33 +0000 (13:34 -0600)]
loader: Only check magic value from Icd on debug builds.
Tobin Ehlis [Wed, 15 Apr 2015 19:20:56 +0000 (13:20 -0600)]
layers: APIDump shouldn't unwrap gpu obj by default. Deleted some dead code.
Ian Elliott [Wed, 15 Apr 2015 18:55:43 +0000 (12:55 -0600)]
Don't build the GlaveSnapshot layer.
Ian Elliott [Wed, 15 Apr 2015 18:53:19 +0000 (12:53 -0600)]
Win: Some compilation/link fixes.
Jon Ashburn [Tue, 14 Apr 2015 20:14:48 +0000 (14:14 -0600)]
loader: Add support for loading layers that support a group
Specifically support the "Validation" group for activating any layer
which supports that name.
Jon Ashburn [Tue, 14 Apr 2015 20:12:59 +0000 (14:12 -0600)]
layers: Add extension Validation so loader will add layers with Validation
Also fix extension supported list in DrawState and ObjectTracker to include
their local extensions in GetGlobalExtensionInfo()
Tony Barbour [Tue, 14 Apr 2015 16:22:46 +0000 (10:22 -0600)]
layers: Fix for registering a debug callback routine
Jon Ashburn [Tue, 14 Apr 2015 15:15:32 +0000 (09:15 -0600)]
loader: Add check for invalid enabled extensions at CreateInstance
Jon Ashburn [Tue, 14 Apr 2015 00:10:06 +0000 (18:10 -0600)]
loader: Fix GetProcAddr to return proper function pointers for app
Add case of handling null gpu object for global functions.
For device specifc functions use the dispatch table or the loader entrypoints
depending on if the trampoline code can be skipped or not.
Conflicts:
loader/CMakeLists.txt
vk-generate.py
v2: undo accidental rename of LayerInterceptProcSubcommand
fix WinDefFileSubcommand due to rebase (olv)
Ian Elliott [Wed, 15 Apr 2015 17:16:04 +0000 (11:16 -0600)]
Win: Change xgl->vk/vulkan (towards being able to build on Windows).
Ian Elliott [Wed, 15 Apr 2015 17:15:13 +0000 (11:15 -0600)]
Change "XGL" to "Vulkan" in header/copyright for auto-gen code.
Tobin Ehlis [Wed, 15 Apr 2015 13:46:12 +0000 (07:46 -0600)]
layers: Layers now compiling on rename branch, still need to test but cube is currenting hitting segF by itself
Jon Ashburn [Mon, 13 Apr 2015 23:47:29 +0000 (17:47 -0600)]
loader: Fix disptach table init for non-dispatchable functions
Mark Lobodzinski [Thu, 9 Apr 2015 18:46:09 +0000 (13:46 -0500)]
layers: Added in fence state validation to MemTracker
Validation checks for SIGNALED/UNSIGNALED fences in appropriate locations.
Mark Lobodzinski [Mon, 13 Apr 2015 21:35:52 +0000 (16:35 -0500)]
layers: Missed rename in xgl_layer_generate.py
Jon Ashburn [Fri, 10 Apr 2015 20:33:07 +0000 (14:33 -0600)]
vulkan: Add vkGetGlobalExtensionInfo entrypoint
have loader use it to enumerate all extensions from layers and drivers.
Non-gode_gen layers also updated to include vkGetGlobalExtensionInfo
Includes verion info as part of GetExtensionSupport return data.
TODO: vk-layer-generate needs work
v2: do not check for non-existing ENABLE_WSI_X11 (olv)
Courtney Goeltzenleuchter [Sat, 11 Apr 2015 00:00:50 +0000 (18:00 -0600)]
vulkan: Match white space formating of upstream
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 23:59:44 +0000 (17:59 -0600)]
vulkan: Avoid use of reserved underscore-uppercase sequence
- use typedef {enum,struct} VkFoo_ instead of _VkFoo
- MAX_ENUM uses the typedefed name instead of the tag name
(otherwise it would have double underscore which is also reserved)
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/vulkan@30132
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 23:33:47 +0000 (17:33 -0600)]
vk_platform: Remove unneeded type after rename
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 23:06:20 +0000 (17:06 -0600)]
param_checker: Enable and update renamed bits
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 22:34:21 +0000 (16:34 -0600)]
vulkan: Naming beautification
Done incremental renaming versions, bump version to 0.72.0
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30121
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30120
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
- rename VK_ENUM_NAME -> VkEnumName (enum values unchanged)
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30119
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
- rename VK_THING to VkThing simple typedefs
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30118
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
VK_STRUCTURE_NAME -> VkStructureName
rename the memory function pointers to be consistent with other function pointers
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30117
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
vkPlatform.h -> vk_platform.h (to avoid issues on case-sensitive file systems)
Fix #include in vulkan.h
VK_OBJECT_NAME -> VkObjectName
xgl<FunctionName>Type -> PFN_vk<FunctionName> for function pointers
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30113
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 22:24:50 +0000 (16:24 -0600)]
vulkan: Naming beautification
- remove "Object" from the name of VkDynamic*State objects.
(no other leaf classes have "Object" in the name).
- fix some minor spacing issues
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30120
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
Jon Ashburn [Thu, 9 Apr 2015 03:33:34 +0000 (21:33 -0600)]
layers: Remove wrapping of GPU objects by loader and layers
Loader only wraps GPU objects for creating a layer chain. After layer activation
layers and loader use unwrapped gpu object returned by the driver.
This is a large simplification.
This fixes a nasty bug where layers intercepting entrypoints with gpu objects
but not all these entrypoints would fail. These would cause non-uniform
unwrapping of gpu objects by the time the driver was called with a gpu object.
Fixes issue in loader_get_icd where it was trying to compare a wrapped GPU
against a non-wrapped GPU.
Jon Ashburn [Thu, 9 Apr 2015 00:57:27 +0000 (18:57 -0600)]
loader: Don't have GetExtensionSupport as loader special case code
Allows layers to intercept GetExtensionSupport()
Jon Ashburn [Thu, 9 Apr 2015 00:20:54 +0000 (18:20 -0600)]
loader: Activate layers at EnumerateGpus instead of CreateDevice
Jon Ashburn [Mon, 6 Apr 2015 16:58:22 +0000 (10:58 -0600)]
loader: refactor layer activation function to handle more general inputs
Renamed structure types as well.
TODO: verify vk-layer-generate.py
v2: fix LoaderEntrypointsSubcommand (olv)
Jon Ashburn [Wed, 8 Apr 2015 21:49:00 +0000 (15:49 -0600)]
loader: Store the enabled extensions at CreateInstance
Mark Lobodzinski [Thu, 9 Apr 2015 23:46:33 +0000 (18:46 -0500)]
vulkan.h: v75. Add cube-compatible image create bit. Bug 13609
Khronos SVN change #30288. Did not update version number.
Mark Lobodzinski [Thu, 9 Apr 2015 23:31:21 +0000 (18:31 -0500)]
vulkan.h: Added comments as specified in Bug 13606
Specified units for some VkImage* structure members.
Mark Lobodzinski [Thu, 9 Apr 2015 17:09:45 +0000 (12:09 -0500)]
layers: ObjTracker -- free each queue's memRefs
Cleanup and free memRef-related resources for each queue upon device
destruction.
TODO: Verify vk-layer-generation.py
TODO: APIDump layer needs some help
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 06:14:36 +0000 (00:14 -0600)]
layers: Get ObjectTracker working with memory reference changes
Memory References are no longer specified in the QueueSubmit API, but
are controlled through new APIs. Update mem ref validation for new
entry points.
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 14:34:15 +0000 (08:34 -0600)]
vulkan: beautification changes
TODO: verify vk-layer-generate.py
TODO: need to rename object tracker generator
v2: fix "python3 vulkan.py"
fix dead cod in tri introduced by rebase
beautify wsi_null.c (olv)
Ian Elliott [Fri, 10 Apr 2015 00:07:15 +0000 (18:07 -0600)]
Win: Fix typo and incorrect strlen for finding/loading ICDs.
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 01:07:22 +0000 (19:07 -0600)]
glavesnapshot: Follow vulkan.h changes
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 01:07:06 +0000 (19:07 -0600)]
Fixed Windows compilation/link errors ...
without Glave auto-gen changes.
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 00:48:46 +0000 (18:48 -0600)]
vulkan: API renaming
VK_DEVICE_QUEUE_CREATE_INFO => VkDeviceQueueCreateInfo
VK_DEVICE_CREATE_INFO => VkDeviceCreateInfo
VK_INSTANCE_CREATE_INFO => VkInstanceCreateInfo
VK_LAYER_CREATE_INFO => VkLayerCreateInfo
VK_MEMORY_ALLOC_INFO => VkMemoryAllocInfo
VK_MEMORY_ALLOC_IMAGE_INFO => VkMemoryAllocImageInfo
VK_MEMORY_ALLOC_BUFFER_INFO => VkMemoryAllocBufferInfo
VK_BUFFER_CREATE_INFO => VkBufferCreateInfo
VK_BUFFER_VIEW_CREATE_INFO => VkBufferViewCreateInfo
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 19:42:03 +0000 (13:42 -0600)]
rename programming guide.
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 17:52:55 +0000 (11:52 -0600)]
rename vkPlatform.h -> vk_platform.h
Tobin Ehlis [Wed, 8 Apr 2015 16:58:37 +0000 (10:58 -0600)]
layers: Migrate remaining malloc/free calls in DrawState to new/delete
Tobin Ehlis [Thu, 9 Apr 2015 15:19:36 +0000 (09:19 -0600)]
layers: Unify APIDump into a single layer with settings to vary behavior
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 17:43:10 +0000 (11:43 -0600)]
xgl.h v70. Fix for vkUpdateDescriptors. Bug 13615
git-svn-id: https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL@30104
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
Courtney Goeltzenleuchter [Tue, 14 Apr 2015 22:30:53 +0000 (16:30 -0600)]
vk_helper: convert xgl refs to vk/vulkan refs
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 03:15:34 +0000 (21:15 -0600)]
layers: remove unused functions from generator
Courtney Goeltzenleuchter [Tue, 14 Apr 2015 20:55:44 +0000 (14:55 -0600)]
renaming: Move many xgl files to vk version
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 16:06:13 +0000 (10:06 -0600)]
rename: more renaming
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 16:05:30 +0000 (10:05 -0600)]
rename: Clean header to match svn version
Courtney Goeltzenleuchter [Wed, 8 Apr 2015 21:36:08 +0000 (15:36 -0600)]
Stage 1 of rename
TODO: re-enable glave build, advance API for glave
v2: get rid of outdated code in tri introduced by rebase
rename wsi_null.c (olv)
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 00:04:29 +0000 (18:04 -0600)]
Symbolic links while things are moving
Courtney Goeltzenleuchter [Wed, 8 Apr 2015 19:57:08 +0000 (13:57 -0600)]
param_check: Add Queue[Add|Remove]MemReference
Tony Barbour [Wed, 8 Apr 2015 19:11:36 +0000 (13:11 -0600)]
intel: Add XGL_PIPE_EVENT_LOCAL_FRAGMENT_PROCESSING_COMPLETE