platform/upstream/Vulkan-Tools.git
9 years agoshader_checker: initial plumbing
Chris Forbes [Thu, 2 Apr 2015 00:22:31 +0000 (13:22 +1300)]
shader_checker: initial plumbing

9 years agovulkan: Rename bindInfo to pBindInfo.
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

9 years agobug 13632: Convert commands to plural form
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

9 years agovulkan: Update object memory requirements (13723).
Jeremy Hayes [Wed, 15 Apr 2015 20:17:56 +0000 (14:17 -0600)]
vulkan: Update object memory requirements (13723).

9 years agolayers: Change threading layer file name.
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.

9 years agoAdd GetPhysicalDeviceExtensionInfo() function to API
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.

9 years agolayers: Removing old GetExtensionSupport API call
Tobin Ehlis [Thu, 16 Apr 2015 17:17:12 +0000 (11:17 -0600)]
layers: Removing old GetExtensionSupport API call

9 years agodemos: Remove use of GetExtensionSupport API that's going away
Tobin Ehlis [Thu, 16 Apr 2015 16:04:35 +0000 (10:04 -0600)]
demos: Remove use of GetExtensionSupport API that's going away

9 years agobug 13466: Allow writing query results to buffer memory
Courtney Goeltzenleuchter [Thu, 16 Apr 2015 00:21:13 +0000 (18:21 -0600)]
bug 13466: Allow writing query results to buffer memory

9 years agovulkan: Updated vulkan.h for revision 79 -- Bug #13464
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.

9 years agoglave: Disable, will update on separate branch
Courtney Goeltzenleuchter [Thu, 16 Apr 2015 15:29:43 +0000 (09:29 -0600)]
glave: Disable, will update on separate branch

9 years agovulkan.h: V74. Unify memory pools. Bug #13633.
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.

9 years agovulkan.h: Rename parameters in vkCmdResolveImage calls
Tony Barbour [Mon, 13 Apr 2015 21:02:52 +0000 (15:02 -0600)]
vulkan.h: Rename parameters in vkCmdResolveImage calls

9 years agointel: Fix xglCmdImageResolve doesn't properly support MSAA texture arrays
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

9 years agomisc: Remove validation level
Jon Ashburn [Thu, 16 Apr 2015 00:03:47 +0000 (18:03 -0600)]
misc: Remove validation level

bug 13686

9 years agolayers: Add ThreadingChecker as a Validation layer
Tobin Ehlis [Wed, 15 Apr 2015 23:19:18 +0000 (17:19 -0600)]
layers: Add ThreadingChecker as a Validation layer

9 years agolayers: Improve validate helpers treatment of flag enums
Tobin Ehlis [Wed, 15 Apr 2015 23:04:03 +0000 (17:04 -0600)]
layers: Improve validate helpers treatment of flag enums

9 years agolayers: Add threading checking layer
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.

9 years agolayers: indirect GPA in dispatch table
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.

9 years agolayers: add GPA to intercepted functions list
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.

9 years agolayers: Add size helper exception for sampleCount which is not a dynamic array size
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

9 years agolayers: memtracker - waiting on only some fences
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.

9 years agovulkan: Consistent naming scheme for resources in XGL
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)

9 years agolayers: Check for NULL ptrs while iterating over fenceMap
Tobin Ehlis [Wed, 15 Apr 2015 20:25:02 +0000 (14:25 -0600)]
layers: Check for NULL ptrs while iterating over fenceMap

9 years agolayers: Remove unused object tracker code
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 20:20:01 +0000 (14:20 -0600)]
layers: Remove unused object tracker code

9 years agolayers: Fix APIDump in NoAddr mode so params aren't duplicated
Tobin Ehlis [Wed, 15 Apr 2015 20:13:10 +0000 (14:13 -0600)]
layers: Fix APIDump in NoAddr mode so params aren't duplicated

9 years agomem_tracker: Check for fence before retiring
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 20:10:51 +0000 (14:10 -0600)]
mem_tracker: Check for fence before retiring

9 years agolayers: MemTracker error message fixes
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.

9 years agoloader: Only check magic value from Icd on debug builds.
Jon Ashburn [Wed, 15 Apr 2015 19:34:33 +0000 (13:34 -0600)]
loader: Only check magic value from Icd on debug builds.

9 years agolayers: APIDump shouldn't unwrap gpu obj by default. Deleted some dead code.
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.

9 years agoDon't build the GlaveSnapshot layer.
Ian Elliott [Wed, 15 Apr 2015 18:55:43 +0000 (12:55 -0600)]
Don't build the GlaveSnapshot layer.

9 years agoWin: Some compilation/link fixes.
Ian Elliott [Wed, 15 Apr 2015 18:53:19 +0000 (12:53 -0600)]
Win: Some compilation/link fixes.

9 years agoloader: Add support for loading layers that support a group
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.

9 years agolayers: Add extension Validation so loader will add layers with Validation
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()

9 years agolayers: Fix for registering a debug callback routine
Tony Barbour [Tue, 14 Apr 2015 16:22:46 +0000 (10:22 -0600)]
layers: Fix for registering a debug callback routine

9 years agoloader: Add check for invalid enabled extensions at CreateInstance
Jon Ashburn [Tue, 14 Apr 2015 15:15:32 +0000 (09:15 -0600)]
loader: Add check for invalid enabled extensions  at CreateInstance

9 years agoloader: Fix GetProcAddr to return proper function pointers for app
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)

9 years agoWin: Change xgl->vk/vulkan (towards being able to build on Windows).
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).

9 years agoChange "XGL" to "Vulkan" in header/copyright for auto-gen code.
Ian Elliott [Wed, 15 Apr 2015 17:15:13 +0000 (11:15 -0600)]
Change "XGL" to "Vulkan" in header/copyright for auto-gen code.

9 years agolayers: Layers now compiling on rename branch, still need to test but cube is current...
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

9 years agoloader: Fix disptach table init for non-dispatchable functions
Jon Ashburn [Mon, 13 Apr 2015 23:47:29 +0000 (17:47 -0600)]
loader: Fix disptach table init for non-dispatchable functions

9 years agolayers: Added in fence state validation to MemTracker
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.

9 years agolayers: Missed rename in xgl_layer_generate.py
Mark Lobodzinski [Mon, 13 Apr 2015 21:35:52 +0000 (16:35 -0500)]
layers: Missed rename in xgl_layer_generate.py

9 years agovulkan: Add vkGetGlobalExtensionInfo entrypoint
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)

9 years agovulkan: Match white space formating of upstream
Courtney Goeltzenleuchter [Sat, 11 Apr 2015 00:00:50 +0000 (18:00 -0600)]
vulkan: Match white space formating of upstream

9 years agovulkan: Avoid use of reserved underscore-uppercase sequence
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

9 years agovk_platform: Remove unneeded type after rename
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 23:33:47 +0000 (17:33 -0600)]
vk_platform: Remove unneeded type after rename

9 years agoparam_checker: Enable and update renamed bits
Courtney Goeltzenleuchter [Fri, 10 Apr 2015 23:06:20 +0000 (17:06 -0600)]
param_checker: Enable and update renamed bits

9 years agovulkan: Naming beautification
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

9 years agovulkan: Naming beautification
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

9 years agolayers: Remove wrapping of GPU objects by loader and layers
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.

9 years agoloader: Don't have GetExtensionSupport as loader special case code
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()

9 years agoloader: Activate layers at EnumerateGpus instead of CreateDevice
Jon Ashburn [Thu, 9 Apr 2015 00:20:54 +0000 (18:20 -0600)]
loader: Activate layers at EnumerateGpus instead of CreateDevice

9 years agoloader: refactor layer activation function to handle more general inputs
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)

9 years agoloader: Store the enabled extensions at CreateInstance
Jon Ashburn [Wed, 8 Apr 2015 21:49:00 +0000 (15:49 -0600)]
loader: Store the enabled extensions at CreateInstance

9 years agovulkan.h: v75. Add cube-compatible image create bit. Bug 13609
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.

9 years agovulkan.h: Added comments as specified in Bug 13606
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.

9 years agolayers: ObjTracker -- free each queue's memRefs
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

9 years agolayers: Get ObjectTracker working with memory reference changes
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.

9 years agovulkan: beautification changes
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)

9 years agoWin: Fix typo and incorrect strlen for finding/loading ICDs.
Ian Elliott [Fri, 10 Apr 2015 00:07:15 +0000 (18:07 -0600)]
Win: Fix typo and incorrect strlen for finding/loading ICDs.

9 years agoglavesnapshot: Follow vulkan.h changes
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 01:07:22 +0000 (19:07 -0600)]
glavesnapshot: Follow vulkan.h changes

9 years agoFixed Windows compilation/link errors ...
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 01:07:06 +0000 (19:07 -0600)]
Fixed Windows compilation/link errors ...

without Glave auto-gen changes.

9 years agovulkan: API renaming
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

9 years agorename programming guide.
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 19:42:03 +0000 (13:42 -0600)]
rename programming guide.

9 years agorename vkPlatform.h -> vk_platform.h
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 17:52:55 +0000 (11:52 -0600)]
rename vkPlatform.h -> vk_platform.h

9 years agolayers: Migrate remaining malloc/free calls in DrawState to new/delete
Tobin Ehlis [Wed, 8 Apr 2015 16:58:37 +0000 (10:58 -0600)]
layers: Migrate remaining malloc/free calls in DrawState to new/delete

9 years agolayers: Unify APIDump into a single layer with settings to vary behavior
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

9 years agoxgl.h v70. Fix for vkUpdateDescriptors. Bug 13615
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

9 years agovk_helper: convert xgl refs to vk/vulkan refs
Courtney Goeltzenleuchter [Tue, 14 Apr 2015 22:30:53 +0000 (16:30 -0600)]
vk_helper: convert xgl refs to vk/vulkan refs

9 years agolayers: remove unused functions from generator
Courtney Goeltzenleuchter [Wed, 15 Apr 2015 03:15:34 +0000 (21:15 -0600)]
layers: remove unused functions from generator

9 years agorenaming: Move many xgl files to vk version
Courtney Goeltzenleuchter [Tue, 14 Apr 2015 20:55:44 +0000 (14:55 -0600)]
renaming: Move many xgl files to vk version

9 years agorename: more renaming
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 16:06:13 +0000 (10:06 -0600)]
rename: more renaming

9 years agorename: Clean header to match svn version
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 16:05:30 +0000 (10:05 -0600)]
rename: Clean header to match svn version

9 years agoStage 1 of rename
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)

9 years agoSymbolic links while things are moving
Courtney Goeltzenleuchter [Thu, 9 Apr 2015 00:04:29 +0000 (18:04 -0600)]
Symbolic links while things are moving

9 years agoparam_check: Add Queue[Add|Remove]MemReference
Courtney Goeltzenleuchter [Wed, 8 Apr 2015 19:57:08 +0000 (13:57 -0600)]
param_check: Add Queue[Add|Remove]MemReference

9 years agointel: Add XGL_PIPE_EVENT_LOCAL_FRAGMENT_PROCESSING_COMPLETE
Tony Barbour [Wed, 8 Apr 2015 19:11:36 +0000 (13:11 -0600)]
intel: Add XGL_PIPE_EVENT_LOCAL_FRAGMENT_PROCESSING_COMPLETE

9 years agoinclude: Dbg entrypoints should be protected by XGL_PROTOTYPES
Jon Ashburn [Mon, 6 Apr 2015 23:38:17 +0000 (17:38 -0600)]
include: Dbg entrypoints should be protected by XGL_PROTOTYPES
Needed if including header file and want to define one's own entrypoints statically

9 years agomisc: Add create_info struct to CreateInstance()
Jon Ashburn [Sat, 4 Apr 2015 20:52:07 +0000 (14:52 -0600)]
misc: Add create_info struct to CreateInstance()

Allows extnesion or layer enablement at CreateInstance
Khronos Bug 13637

9 years agolayers: Update GetExtensionSupport() to handle queries for layer name
Jon Ashburn [Thu, 2 Apr 2015 18:06:28 +0000 (12:06 -0600)]
layers: Update GetExtensionSupport() to handle queries for layer name

Layers now support loader querying their layer name via GetExtensionSupport
in addition to EnumerateLayers.
Also fixed bugs in ObjectTracker and DrawState to add the extensions they
support in the GetExtensionSupport queries.

Conflicts:
xgl-layer-generate.py

9 years agoloader: Merge extensions and layers
Courtney Goeltzenleuchter [Fri, 27 Feb 2015 22:19:33 +0000 (15:19 -0700)]
loader: Merge extensions and layers

Update loader so that it extensions and layers work in same
basic fashion. That is, application can query for extension/layer
support by calling GetExtensionSupport. The loader will then query
the available drivers AND layers for that support. Likewise,
when the application does CreateDevice the list of "extensions"
can be both layers and extensions and the loader will figure out
the right thing to do.

Conflicts:
loader/loader.c
xgl-generate.py

9 years agolayers: Set default debug output to stdout
Courtney Goeltzenleuchter [Sun, 22 Feb 2015 23:15:32 +0000 (16:15 -0700)]
layers: Set default debug output to stdout

9 years agoUpdated header file to version 67 (xglResetFences)
Mark Lobodzinski [Tue, 7 Apr 2015 21:07:57 +0000 (16:07 -0500)]
Updated header file to version 67 (xglResetFences)

Added changes to fence semantics for this revision.

tests: Create contructor with no args

intel: Added Tony's patch for ResetFences support in the ICD.

v2: reset fence in intel_fence_seq_seqno().  We need the reset to make
    xglQueueWaitIdle() work (olv)

layers: Added ResetFences support to MemTracker

Add new entrypoint and fence semantics for fence status flags.

layers: Completed changed fence semantics for MemTracker

Completed the changes for xgl header revision 67, adding resetFences.

layers: Changes to support xglResetFences

v2: squashed into one commit (olv)

9 years agolayers: Incorporated memory reference handling into MemTracker
Mark Lobodzinski [Tue, 7 Apr 2015 18:38:21 +0000 (13:38 -0500)]
layers: Incorporated memory reference handling into MemTracker

API was changed for handling memory references, updated memtracker
layer to correctly track and validate memory references.

9 years agolayers: Fixes to get them building and working with descriptor changes
Mark Lobodzinski [Tue, 7 Apr 2015 14:34:09 +0000 (09:34 -0500)]
layers: Fixes to get them building and working with descriptor changes

9 years agolayers: Updated for explicit fence validation with multiple queues
Courtney Goeltzenleuchter [Tue, 14 Apr 2015 06:01:21 +0000 (00:01 -0600)]
layers: Updated for explicit fence validation with multiple queues

Fences were being validated to make sure they had been retired, layer
was updated to validate that the app has checked the fences.

9 years agolayers: Added support for multiple queues
Mark Lobodzinski [Thu, 2 Apr 2015 13:52:53 +0000 (08:52 -0500)]
layers: Added support for multiple queues

Not supported on Intel, but will be on other hw.

9 years agolayers: Added GetDeviceQueue API, fixed up variable names
Mark Lobodzinski [Tue, 31 Mar 2015 21:05:35 +0000 (16:05 -0500)]
layers: Added GetDeviceQueue API, fixed up variable names

Updated LinkedList-related variable names

Conflicts:
layers/mem_tracker.cpp

9 years agoxgl: Enable new mem ref functions
Courtney Goeltzenleuchter [Tue, 7 Apr 2015 23:13:38 +0000 (17:13 -0600)]
xgl: Enable new mem ref functions

v2: remove a stale comment in the sample driver (olv)

9 years agotri: Add AddMemRef support
Courtney Goeltzenleuchter [Thu, 2 Apr 2015 22:30:29 +0000 (16:30 -0600)]
tri: Add AddMemRef support

9 years agocube: Add AddMemReferences
Courtney Goeltzenleuchter [Thu, 2 Apr 2015 22:25:42 +0000 (16:25 -0600)]
cube: Add AddMemReferences

9 years agoxgl: Remove QueueSetGlobalMemReferences
Courtney Goeltzenleuchter [Tue, 7 Apr 2015 22:40:50 +0000 (16:40 -0600)]
xgl: Remove QueueSetGlobalMemReferences

9 years agoxgl: Remove old GPU maxMemReferencesPerSubmission
Courtney Goeltzenleuchter [Tue, 7 Apr 2015 22:23:00 +0000 (16:23 -0600)]
xgl: Remove old GPU maxMemReferencesPerSubmission

The GPU property maxMemReferencesPerSubmission is now
in the GPU QUEUE properties as maxMemReferences.

9 years agoxgl: Add MaxMemReferences to GPU_QUEUE_PROPS
Courtney Goeltzenleuchter [Thu, 2 Apr 2015 20:22:12 +0000 (14:22 -0600)]
xgl: Add MaxMemReferences to GPU_QUEUE_PROPS

9 years agoxgl: Add QueueMemReference functions
Courtney Goeltzenleuchter [Thu, 2 Apr 2015 19:39:07 +0000 (13:39 -0600)]
xgl: Add QueueMemReference functions

9 years agolayers: Fix multi-line strings.
Jeremy Hayes [Tue, 7 Apr 2015 19:38:03 +0000 (13:38 -0600)]
layers: Fix multi-line strings.

9 years agolayers: Improve xglCreateInstance validation.
Jeremy Hayes [Tue, 7 Apr 2015 19:30:04 +0000 (13:30 -0600)]
layers: Improve xglCreateInstance validation.

9 years agolayers: Improve xglCreateRenderPass validation.
Jeremy Hayes [Tue, 7 Apr 2015 15:49:05 +0000 (09:49 -0600)]
layers: Improve xglCreateRenderPass validation.

9 years agolayers: move APIDump layers to generate_intercept
Mike Stroyan [Fri, 3 Apr 2015 23:45:53 +0000 (17:45 -0600)]
layers: move APIDump layers to generate_intercept

Finish moving the rest of layer generation to using generate_intercept.
Make APIDump variants for File and NoAddr subclasses of APIDump and APIDumpCpp.