platform/upstream/Vulkan-LoaderAndValidationLayers.git
9 years agolayers: Change MemTracker maps to contain structs
Mike Stroyan [Tue, 19 May 2015 23:03:40 +0000 (17:03 -0600)]
layers: Change MemTracker maps to contain structs

Remove one unnecessary level of indirection.

Conflicts:
layers/mem_tracker.cpp

9 years agolayers: Tuning MemTracker
Mike Stroyan [Tue, 19 May 2015 21:16:08 +0000 (15:16 -0600)]
layers: Tuning MemTracker

Reverse sense of fenceMap using VkFence instead of fenceID as key.
 This eliminates iterating over all of fenceMap.
Stop creating internal fences and let vkQueueSubmit pass NULL fence.
Track lastSubmittedFence and lastSubmittedQueue in command buffer info.
Use unordered_map instead of map for better performance.
Reuse iterator returned by map find whenever available.
 It is faster than repeating a find operation with "[]" notation.
Remove map entries at time of VkDestroy instead of other calls such as Wait.

9 years agoLayers: fix MemTracker threading crash
Mike Stroyan [Mon, 18 May 2015 22:33:03 +0000 (16:33 -0600)]
Layers: fix MemTracker threading crash

updateFenceTracking was using iterator for deleted item.

9 years agolayers: thread safe MemTracker
Mike Stroyan [Mon, 18 May 2015 22:31:44 +0000 (16:31 -0600)]
layers: thread safe MemTracker

Remove unneeded getFenceFromId() that crashed outside of mutex.

9 years agolayers: fast return of inactive MemTracker printing
Mike Stroyan [Mon, 18 May 2015 22:29:39 +0000 (16:29 -0600)]
layers: fast return of inactive MemTracker printing

9 years agotests: Fix compiler warning in layer validation tests
Mark Lobodzinski [Tue, 2 Jun 2015 14:41:30 +0000 (09:41 -0500)]
tests: Fix compiler warning in layer validation tests

9 years agov98: replace vkUpdateDescriptors() by vkUpdateDescriptorSets()
Chia-I Wu [Mon, 25 May 2015 08:27:55 +0000 (16:27 +0800)]
v98: replace vkUpdateDescriptors() by vkUpdateDescriptorSets()

Only slightly tested.

Conflicts:
include/vulkan.h

9 years agov98: remove vk{Begin,End}DescriptorPoolUpdate()
Chia-I Wu [Mon, 25 May 2015 08:27:50 +0000 (16:27 +0800)]
v98: remove vk{Begin,End}DescriptorPoolUpdate()

Assume VK_DESCRIPTOR_UPDATE_MODE_FASTEST.

Conflicts:
icd/intel/desc.c
include/vulkan.h

9 years agov98: rename count to arraySize in VkDescriptorSetLayoutBinding
Chia-I Wu [Mon, 25 May 2015 08:22:52 +0000 (16:22 +0800)]
v98: rename count to arraySize in VkDescriptorSetLayoutBinding

Conflicts:
include/vulkan.h

9 years agovulkan.h: V97 -- Remove multiple allocations. Bug# 13948.
Mark Lobodzinski [Fri, 29 May 2015 14:32:35 +0000 (09:32 -0500)]
vulkan.h: V97 -- Remove multiple allocations. Bug# 13948.

Remove multiple memory allocation requirements from API, and supporting
changes in driver, demos, layers, and tests.

9 years agotests: Added testing for DrawState descriptor update validation and MSAA sampleCount...
Tobin Ehlis [Thu, 28 May 2015 18:11:26 +0000 (12:11 -0600)]
tests: Added testing for DrawState descriptor update validation and MSAA sampleCount matching

9 years agolayers: Improved DrawState Descriptor Update validation
Tobin Ehlis [Thu, 28 May 2015 18:10:17 +0000 (12:10 -0600)]
layers: Improved DrawState Descriptor Update validation

9 years agolayers: Added DrawState test DSUpdateWithoutBegin
Tobin Ehlis [Wed, 27 May 2015 20:55:35 +0000 (14:55 -0600)]
layers: Added DrawState test DSUpdateWithoutBegin

9 years agotests: Move VkDescriptorSetObj variable setup to initializers
Tobin Ehlis [Wed, 27 May 2015 20:33:27 +0000 (14:33 -0600)]
tests: Move VkDescriptorSetObj variable setup to initializers

9 years agotests: Added DrawState validation tests for no PSO bound and DS/CmdBuffer errors
Tobin Ehlis [Wed, 27 May 2015 20:32:28 +0000 (14:32 -0600)]
tests: Added DrawState validation tests for no PSO bound and DS/CmdBuffer errors

9 years agolayers: Add some early returns in DrawState fail cases to prevent segFs in driver
Tobin Ehlis [Wed, 27 May 2015 20:30:06 +0000 (14:30 -0600)]
layers: Add some early returns in DrawState fail cases to prevent segFs in driver

9 years agolayers: Added DrawState test for invalid Pipeline object
Tobin Ehlis [Tue, 26 May 2015 22:11:58 +0000 (16:11 -0600)]
layers: Added DrawState test for invalid Pipeline object

9 years agolayers: Fix drawState lock bug and don't call driver w/ bad pipeline
Tobin Ehlis [Tue, 26 May 2015 22:06:50 +0000 (16:06 -0600)]
layers: Fix drawState lock bug and don't call driver w/ bad pipeline

9 years agotests: Added some empty test functions with comments for DrawState layer testing
Tobin Ehlis [Fri, 22 May 2015 18:38:55 +0000 (12:38 -0600)]
tests: Added some empty test functions with comments for DrawState layer testing

9 years agolayers: Fix some DrawState checks
Tobin Ehlis [Fri, 22 May 2015 18:38:16 +0000 (12:38 -0600)]
layers: Fix some DrawState checks

9 years agoBUILD.md: Fix markdown language that didn't translate from github to gitlab
Cody Northrop [Tue, 26 May 2015 19:51:12 +0000 (15:51 -0400)]
BUILD.md: Fix markdown language that didn't translate from github to gitlab

9 years agovulkan.h: V96 -- xglCmdBlitImage filter mode. Bug# 13759.
Mark Lobodzinski [Fri, 22 May 2015 19:43:25 +0000 (14:43 -0500)]
vulkan.h: V96 -- xglCmdBlitImage filter mode. Bug# 13759.

9 years agolayers: Add additional check for RenderPass sampleCount
Tobin Ehlis [Thu, 21 May 2015 15:06:56 +0000 (09:06 -0600)]
layers: Add additional check for RenderPass sampleCount

Was checking PSO MSAA num samples against FrameBuffer sampleCount. This change adds an additional check against RenderPass sampleCount.

9 years agolayers: Build C++ version of generic layer
Mark Lobodzinski [Thu, 21 May 2015 19:19:45 +0000 (14:19 -0500)]
layers: Build C++ version of generic layer

All layers are now implemented in C++.

9 years agolayers: Convert object tracker to C++
Mark Lobodzinski [Wed, 20 May 2015 22:33:47 +0000 (17:33 -0500)]
layers: Convert object tracker to C++

9 years agowsi: Deal with drivers that don't allow query of swap-chain VkFormat.
Ian Elliott [Wed, 20 May 2015 20:54:42 +0000 (14:54 -0600)]
wsi: Deal with drivers that don't allow query of swap-chain VkFormat.

9 years agotests: Extend layer validation test for memtracker
Mark Lobodzinski [Tue, 19 May 2015 15:28:29 +0000 (10:28 -0500)]
tests: Extend layer validation test for memtracker

Added tests for memtracker's validation: that ResetCommandBuffer is not
called on an active command buffer; that BeginCommandBuffer is not called
on an active command buffer.

9 years agowsi: Deal with drivers that don't allow query of swap-chain VkFormat.
Ian Elliott [Fri, 15 May 2015 23:52:29 +0000 (17:52 -0600)]
wsi: Deal with drivers that don't allow query of swap-chain VkFormat.

9 years agowsi: Add queries for VkDisplayWSI's and VkFormat's to demos.
Ian Elliott [Tue, 21 Apr 2015 22:41:02 +0000 (16:41 -0600)]
wsi: Add queries for VkDisplayWSI's and VkFormat's to demos.

Show how to query which VkFormat to use for a WSI swap chain.  In order to work
correctly, changes are needed to existing ICDs:

- Changed the order of VkFormats for the intel sample driver, so that the
  desired value will be first (which is what the demos will use).

- Enhanced the nulldrv to support the
  VK_PHYSICAL_DEVICE_INFO_TYPE_DISPLAY_PROPERTIES_WSI query.

9 years agoAdd win32 condition variables.
Mike Stroyan [Fri, 15 May 2015 23:34:51 +0000 (17:34 -0600)]
Add win32 condition variables.

9 years agolayers: Make threading layer provide thread-safety
Mike Stroyan [Fri, 15 May 2015 14:50:57 +0000 (08:50 -0600)]
layers: Make threading layer provide thread-safety

Add mutual exclusion behavior to threading layer after reporting collisions.
This will allow applications to continue beyond first threading error.
It can't help reentrant calls.

9 years agotests: Add test for TextureGather
Cody Northrop [Thu, 7 May 2015 20:39:12 +0000 (14:39 -0600)]
tests: Add test for TextureGather

9 years agotests: Golden image for TextureGather
Cody Northrop [Thu, 7 May 2015 20:37:36 +0000 (14:37 -0600)]
tests: Golden image for TextureGather

9 years agocompiler: Handle textureGather binding table offsets
Cody Northrop [Wed, 6 May 2015 21:53:51 +0000 (15:53 -0600)]
compiler: Handle textureGather binding table offsets

For Haswell and earlier, the mesa backend creates a second set of
binding table entries for textureGather opcodes.  The entries come
after uniform entries.  To support this, we must update our
resource map creation code.

This commit creates a new set of resource map entries that
effectively mirror the bindings of texture samplers, but correspond
to the entries used by textureGather opcodes.

9 years agocompiler: Treat result of FPtoUI as unsigned
Cody Northrop [Wed, 6 May 2015 19:17:30 +0000 (13:17 -0600)]
compiler: Treat result of FPtoUI as unsigned

9 years agocompiler: Fix translation of struct loads
Cody Northrop [Wed, 6 May 2015 18:41:50 +0000 (12:41 -0600)]
compiler: Fix translation of struct loads

We've finally hit large enough structs that LLVM does not promote
them all to scalars.  This triggered a bug in our translator that would
always redeclare structs if you weren't loading individual elements.

The fix is to see if a temp has already been created rather than
redeclare it, which caused lots of dead code.

9 years agotests: Add some geometry shader tests
Cody Northrop [Wed, 15 Apr 2015 17:19:06 +0000 (11:19 -0600)]
tests: Add some geometry shader tests

render_test GeometryShaderHelloWorld
render_test GSUniformBufferLayout
render_test GSPositions
render_test GSTriStrip

9 years agotests: Golden images for new GS tests
Cody Northrop [Wed, 15 Apr 2015 17:24:41 +0000 (11:24 -0600)]
tests: Golden images for new GS tests

Golden image for GeometryShaderHelloWorld
Golden image for GSUniformBufferLayout
Golden image for GSPositions
Golden image for GSTriStrip

9 years agogeometry shaders: Turn on GS stage support
Cody Northrop [Tue, 5 May 2015 15:42:33 +0000 (09:42 -0600)]
geometry shaders: Turn on GS stage support

9 years agogeometry shaders: Clean up the driver interface a bit
Cody Northrop [Mon, 20 Apr 2015 17:22:57 +0000 (11:22 -0600)]
geometry shaders: Clean up the driver interface a bit

9 years agogeometry shaders: Changes to support GS in icd
Cody Northrop [Tue, 5 May 2015 15:38:03 +0000 (09:38 -0600)]
geometry shaders: Changes to support GS in icd

9 years agogeometry shaders: Changes to support GS in compiler
Cody Northrop [Tue, 5 May 2015 15:28:21 +0000 (09:28 -0600)]
geometry shaders: Changes to support GS in compiler

9 years agotests: Halt run_all_tests.sh if an error has occurred
Cody Northrop [Thu, 14 May 2015 21:26:07 +0000 (15:26 -0600)]
tests: Halt run_all_tests.sh if an error has occurred

9 years agotests: Force reporting level in layer validation tests
Mark Lobodzinski [Thu, 14 May 2015 19:30:48 +0000 (14:30 -0500)]
tests: Force reporting level in layer validation tests

Programmatically set reporting level to WARNING in order to catch
validations of that type. Without this change a settings file can
override the defaults and cause failures.

9 years agotests: Expand layer validation test coverage
Mark Lobodzinski [Thu, 14 May 2015 20:08:13 +0000 (15:08 -0500)]
tests: Expand layer validation test coverage

Added layer validation tests for several ObjectTracker and
MemTracker validation cases. Also improved error handling
in object tracker layer to handle validation failures that
could cause unrecoverable driver errors.

9 years agoMerge branch 'master' of
FslNopper [Thu, 14 May 2015 07:47:05 +0000 (09:47 +0200)]
Merge branch 'master' of
https://gitlab.khronos.org/vulkan/LoaderAndTools.git

9 years agoRevert "demos: Add msaa-tri.c for msaa rendering example modified from tri.c"
Courtney Goeltzenleuchter [Wed, 13 May 2015 22:25:37 +0000 (16:25 -0600)]
Revert "demos: Add msaa-tri.c for msaa rendering example modified from tri.c"

This reverts commit 0e83c4d651d5602a35b5c54eb59f2543310b5f31.

9 years agodemos: Add msaa-tri.c for msaa rendering example modified from tri.c
Henry Song [Wed, 13 May 2015 21:53:31 +0000 (14:53 -0700)]
demos: Add msaa-tri.c for msaa rendering example modified from tri.c

9 years agoloader: On Windows disable global optimization for API entrypoints
Tobin Ehlis [Wed, 13 May 2015 17:57:18 +0000 (11:57 -0600)]
loader: On Windows disable global optimization for API entrypoints

Without this change, on a Windows Release build, mhook is unable to hook the entrypoint functions.

9 years agotests: Add test for thread checking layer
Mike Stroyan [Tue, 12 May 2015 22:00:45 +0000 (16:00 -0600)]
tests: Add test for thread checking layer

9 years agolayers: rework Threading layer to match version 91
Mike Stroyan [Mon, 11 May 2015 23:18:14 +0000 (17:18 -0600)]
layers: rework Threading layer to match version 91

Handle multiple thread checked parameters.
Thread-check parameters in some calls that start with a VkDevice parameter.
Use more recent WSI name pattern.

9 years agolayers: fix calculation of intercepting functions.
Mike Stroyan [Mon, 11 May 2015 19:44:24 +0000 (13:44 -0600)]
layers: fix calculation of intercepting functions.

Assign _gen_layer_get_global_extension_info to intercept.
Remove duplicate calculation of lookups.

9 years agovulkan.h: Fix warnings due to unused queue variables
Mark Lobodzinski [Tue, 12 May 2015 15:57:21 +0000 (10:57 -0500)]
vulkan.h: Fix warnings due to unused queue variables

9 years agovulkan.h: V93 -- fine-grained memory binding synchronization. Bug# 13464
Mark Lobodzinski [Mon, 11 May 2015 22:21:15 +0000 (17:21 -0500)]
vulkan.h: V93 -- fine-grained memory binding synchronization. Bug# 13464

New names and behavior for QueueBind* APIs.

9 years agoshader_checker: check types between FS output and CB
Chris Forbes [Mon, 4 May 2015 02:20:10 +0000 (14:20 +1200)]
shader_checker: check types between FS output and CB

9 years agoshader_checker: add type checking between VF and VS
Chris Forbes [Mon, 4 May 2015 02:04:24 +0000 (14:04 +1200)]
shader_checker: add type checking between VF and VS

9 years agoshader_checker: add helper to walk a type tree and return the basic type
Chris Forbes [Mon, 4 May 2015 02:04:06 +0000 (14:04 +1200)]
shader_checker: add helper to walk a type tree and return the basic type

9 years agoshader_checker: fix fs output/cb attachment walking after assert fixes
Chris Forbes [Mon, 4 May 2015 23:34:14 +0000 (11:34 +1200)]
shader_checker: fix fs output/cb attachment walking after assert fixes

9 years agointel: Fill out the rest of VkPhysicalDeviceProperties
Chris Forbes [Tue, 5 May 2015 21:01:36 +0000 (09:01 +1200)]
intel: Fill out the rest of VkPhysicalDeviceProperties

Previously we just left whatever junk was in this memory.

Fixes LunarXchange#12.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
9 years agointel: Check viewport/scissor count against proper limit
Chris Forbes [Thu, 7 May 2015 23:01:16 +0000 (11:01 +1200)]
intel: Check viewport/scissor count against proper limit

This has nothing to do with #render targets.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
9 years agolayers: remove assumption that there's a glslang source tree alongside
Chris Forbes [Fri, 8 May 2015 22:31:21 +0000 (10:31 +1200)]
layers: remove assumption that there's a glslang source tree alongside

We have an in-tree spirv.h now, just use that.

9 years agoWindows: Fix build from recent loader changes
Jon Ashburn [Mon, 11 May 2015 16:34:20 +0000 (09:34 -0700)]
Windows: Fix build from recent loader changes

9 years agospirv: Update to matching header
Courtney Goeltzenleuchter [Fri, 8 May 2015 21:46:40 +0000 (15:46 -0600)]
spirv: Update to matching header

9 years agovulkan.h: V94 -- remove vkCmdCloneImageData. Bug #16550.
Mark Lobodzinski [Fri, 8 May 2015 14:50:33 +0000 (09:50 -0500)]
vulkan.h: V94 -- remove vkCmdCloneImageData.  Bug #16550.

9 years agolayers: Remove use_count from ObjectTracker
Mark Lobodzinski [Fri, 8 May 2015 14:12:28 +0000 (09:12 -0500)]
layers: Remove use_count from ObjectTracker

Removed ll_increment_use_count from layer
Fixed some issues with thread safety
Simplified handling of special-case APIs
Removed GetExtensionSupport dead code

9 years agomisc: Add vkGetInstanceProcAddr() entrypoint
Jon Ashburn [Wed, 6 May 2015 16:15:07 +0000 (10:15 -0600)]
misc: Add vkGetInstanceProcAddr() entrypoint

Adding this entrypoint as this has been discussed in khronos  and is needed
for the loader/layer/extension proposal.

Caveats:
1) Have not updated layers or any tests/demos yet that will come later;
2) No one including loader is using this call yet;
3) Leaving exisitng vkGetProcAddr() as is for now; later once loader
is using vkGetInstanceProcAddr call can switch vkGetProcAddr() to
vkGetDeviceProcAddr()

9 years agoloader: No longer generate code, instead directly check in source code
Jon Ashburn [Wed, 6 May 2015 15:02:10 +0000 (09:02 -0600)]
loader: No longer generate code, instead directly check in source code

9 years agolayers: Fix bug of GetGlobalExtensionInfo not being added to layer_intercept
Jon Ashburn [Tue, 5 May 2015 22:11:15 +0000 (16:11 -0600)]
layers: Fix bug of GetGlobalExtensionInfo not being added to layer_intercept

9 years agoloader: logging on Windows to both debug output and stderr
Jon Ashburn [Tue, 5 May 2015 22:20:46 +0000 (16:20 -0600)]
loader: logging on Windows to both debug output and stderr

9 years agoThreadsafe vkEndCommandBuffer aperture space check
Mike Stroyan [Fri, 1 May 2015 22:20:00 +0000 (16:20 -0600)]
Threadsafe vkEndCommandBuffer aperture space check

The bo_gem->included_in_check_aperture flags used by
drm_intel_gem_compute_batch_space are not thread safe.
Add a mutex around the tree traversals in drm_intel_gem_bo_get_aperture_space
and drm_intel_gem_bo_clear_aperture_space_flag.

9 years agolayers: update object tracker memory ref validation
Mike Stroyan [Tue, 5 May 2015 22:33:08 +0000 (16:33 -0600)]
layers: update object tracker memory ref validation

Allocate enough space for queueInfo.
Record queueNodeIndex to allow setGpuQueueInfoState between addQueueInfo and validateQueueFlags.
Report case when queue flags remain unknown to application and layer.
Move expanded common code into validateQueueFlags.
Initialize g_pQueueInfo to NULL. Handle case when it is NULL.
Handle when malloc or realloc fails.

9 years agoMerge branch 'master' of https://gitlab.khronos.org/vulkan/LoaderAndTools.git
FslNopper [Wed, 6 May 2015 19:43:49 +0000 (21:43 +0200)]
Merge branch 'master' of https://gitlab.khronos.org/vulkan/LoaderAndTools.git

9 years agoRemoved warning in cube demo.
FslNopper [Wed, 6 May 2015 19:42:01 +0000 (21:42 +0200)]
Removed warning in cube demo.

9 years agotests: Add test for mismatched types
Tony Barbour [Wed, 6 May 2015 15:35:56 +0000 (09:35 -0600)]
tests: Add test for mismatched types

9 years agotests: Fix typo in image_tests caught by layer validation updates.
Mark Lobodzinski [Tue, 28 Apr 2015 23:05:35 +0000 (18:05 -0500)]
tests: Fix typo in image_tests caught by layer validation updates.

Wrong object type was being used in a destroyObject call.

9 years agolayers: Add object type validation to object tracker
Mark Lobodzinski [Tue, 5 May 2015 23:24:45 +0000 (18:24 -0500)]
layers: Add object type validation to object tracker

Validate that objects match the objectType any time both are specified.

9 years agolayers: Use native Vulkan object type definitions
Mark Lobodzinski [Tue, 5 May 2015 20:01:37 +0000 (15:01 -0500)]
layers: Use native Vulkan object type definitions

ObjectTracker was using locally-defined object types as the vulkan
ones were unavailable. Replaced them with ones from Vulkan.h.

9 years agoloader: Fix bugs where non-dispatchable objects overwrite dispatch table
Jon Ashburn [Tue, 5 May 2015 15:37:01 +0000 (09:37 -0600)]
loader: Fix bugs where non-dispatchable objects overwrite dispatch table

Also fix the GPA for non pass through cases

9 years agoloader: Fix bug in vkGetProcAddr so trampoline code is returned as needed
Jon Ashburn [Mon, 4 May 2015 22:48:55 +0000 (16:48 -0600)]
loader: Fix bug in vkGetProcAddr so trampoline code is returned as needed

9 years agoloader: Separate out the python generator script
Jon Ashburn [Mon, 4 May 2015 15:16:41 +0000 (09:16 -0600)]
loader: Separate out the python generator script

Loader is a reference component. Intel driver is a sample component. Loader
should not be sharing files with driver. This is a first step in that direction.
Also loader has special cases that are not in driver or layers. So it simplifies
their scripts not to have loader baggage in them.

9 years agoloader: rename a few dispatch utilties
Jon Ashburn [Sat, 2 May 2015 00:00:33 +0000 (18:00 -0600)]
loader: rename a few dispatch utilties

9 years agobug 13854: Remove memory references
Courtney Goeltzenleuchter [Fri, 1 May 2015 23:56:13 +0000 (17:56 -0600)]
bug 13854: Remove memory references

header: 0.93.0
svn: 30980

9 years agoFix file permissions
BogDan Vatra [Mon, 20 Apr 2015 15:47:57 +0000 (18:47 +0300)]
Fix file permissions

9 years agoRemove unused dependency.
BogDan Vatra [Mon, 20 Apr 2015 15:43:28 +0000 (18:43 +0300)]
Remove unused dependency.

9 years agoRemove autogenerated file from git.
BogDan Vatra [Mon, 20 Apr 2015 15:42:44 +0000 (18:42 +0300)]
Remove autogenerated file from git.

9 years agoUse primary_node when render_node is not available.
BogDan Vatra [Thu, 30 Apr 2015 16:28:26 +0000 (19:28 +0300)]
Use primary_node when render_node is not available.

Render node was intruduce on Linux 3.17.

9 years agobug-13690: Clarification on vkFlushMappedMemory
Courtney Goeltzenleuchter [Wed, 29 Apr 2015 23:16:21 +0000 (17:16 -0600)]
bug-13690: Clarification on vkFlushMappedMemory

Bug 13690 - Clarification on the behavior of vkFlushMappedMemory
svn ID: 30914 & 30888

9 years agobug-13751: Update vkCmdClearColorImage color parameter
Courtney Goeltzenleuchter [Thu, 23 Apr 2015 23:49:22 +0000 (17:49 -0600)]
bug-13751: Update vkCmdClearColorImage color parameter

svn ID: 30918
Change the VkCmdClearColroImage color parameter
be a pointer.

9 years agotests: Update for VK origin convention
Courtney Goeltzenleuchter [Thu, 30 Apr 2015 23:44:12 +0000 (17:44 -0600)]
tests: Update for VK origin convention

Use GL conventions in vertex data and transform
to Vulkan conventions in the vertex shader with:
gl_Position.y = -gl_Position.y;
gl_Position.z = (gl_Position.z + gl_Position.w) / 2.0;

Changed CubeWithVertexFetchAndMVPAndTexture to use UV
from vertex data and to draw a couple of positions to
test for correct culling & front face

9 years agointel: support only VK_DEPTH_MODE_ZERO_TO_ONE
Chia-I Wu [Wed, 22 Apr 2015 06:20:52 +0000 (14:20 +0800)]
intel: support only VK_DEPTH_MODE_ZERO_TO_ONE

Fail pipeline creation when VK_DEPTH_MODE_NEGATIVE_ONE_TO_ONE is specified.
Update viewport transformation for depth range [0, 1].

Demos are updated too.

9 years agointel: only VK_COORDINATE_ORIGIN_UPPER_LEFT is supported
Chia-I Wu [Wed, 22 Apr 2015 07:54:06 +0000 (15:54 +0800)]
intel: only VK_COORDINATE_ORIGIN_UPPER_LEFT is supported

More specifically, only VK_COORDINATE_ORIGIN_UPPER_LEFT with clip space
coordinates (-1, -1) being the upper-left is supported.

9 years agodemos/cube: use GL conventions
Chia-I Wu [Wed, 22 Apr 2015 06:56:17 +0000 (14:56 +0800)]
demos/cube: use GL conventions

Use GL conventions in vertex data and contents.  Tranform to VK conventions
in the vertex shader with

  gl_Position.y = -gl_Position.y;

9 years agodemos/tri: fix facing and enable culling
Chia-I Wu [Wed, 22 Apr 2015 07:44:24 +0000 (15:44 +0800)]
demos/tri: fix facing and enable culling

9 years agotri: Fix command buffer use for staging texture
Courtney Goeltzenleuchter [Thu, 30 Apr 2015 16:58:33 +0000 (10:58 -0600)]
tri: Fix command buffer use for staging texture

9 years agolayers: Move OT validation calls inside mutex
Mark Lobodzinski [Mon, 27 Apr 2015 20:26:11 +0000 (15:26 -0500)]
layers: Move OT validation calls inside mutex

ObjectTracker generated validation code was being added outside the
mutex-protected area compromising thread-safety.

9 years agolayers: Add memory manager queue validation to object tracker
Mark Lobodzinski [Thu, 30 Apr 2015 22:04:27 +0000 (17:04 -0500)]
layers: Add memory manager queue validation to object tracker

Validate that sparse-memory binding operations only take place on queues
with MEMMGR capability.

9 years agointel: Turn on standalone_compiler
Cody Northrop [Wed, 29 Apr 2015 19:25:59 +0000 (13:25 -0600)]
intel: Turn on standalone_compiler

Resulting binary will be icd/intel/compiler/standalone_compiler

9 years agointel: Changes to enable standalone shader compiler
Cody Northrop [Wed, 29 Apr 2015 19:22:07 +0000 (13:22 -0600)]
intel: Changes to enable standalone shader compiler

9 years agotests: Pass debug function to InitFramework to register
Tony Barbour [Wed, 29 Apr 2015 23:34:29 +0000 (17:34 -0600)]
tests: Pass debug function to InitFramework to register

And mod layer_validation_tests to use it.
Add layer_validation tests to run_all_tests

9 years agolayers: Add another routine to the list that don't need use counts
Tony Barbour [Wed, 29 Apr 2015 22:23:52 +0000 (16:23 -0600)]
layers: Add another routine to the list that don't need use counts