platform/upstream/Vulkan-Tools.git
8 years agoicd compiler, glslang: move to SPV 1.0
GregF [Fri, 20 Nov 2015 21:37:17 +0000 (14:37 -0700)]
icd compiler, glslang: move to SPV 1.0

8 years agolayers: Add link to example vk_layer_settings.txt
Cody Northrop [Mon, 23 Nov 2015 20:52:26 +0000 (13:52 -0700)]
layers: Add link to example vk_layer_settings.txt

8 years agolayers: Fix image layer issue validating aspectMasks
Mark Lobodzinski [Mon, 23 Nov 2015 16:07:20 +0000 (09:07 -0700)]
layers: Fix image layer issue validating aspectMasks

8 years agoRevert "icd compiler, glslang: move to SPV 1.0"
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.

8 years agoFix build in master
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.

8 years agolayers: MemTracker cleanup, remove redundant object-tracker type checks
Mark Lobodzinski [Thu, 19 Nov 2015 22:45:36 +0000 (15:45 -0700)]
layers: MemTracker cleanup, remove redundant object-tracker type checks

8 years agoicd compiler, glslang: move to SPV 1.0
GregF [Fri, 20 Nov 2015 21:37:17 +0000 (14:37 -0700)]
icd compiler, glslang: move to SPV 1.0

8 years agotests: Make some of the validation tests work on android
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

8 years agolayers: Fix thread-safety issues found in rendersystemtests
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.

8 years agoloader: Don't use ICD's VkDevice after it has been destroyed
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

8 years agolayers: Temporarily disable memory barrier validation in drawstate
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.

8 years agolayers: LX196, validate createImage paramters against format limits
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.

8 years agolayers: Add null-check in MemTracker to prevent layer crash
Mark Lobodzinski [Thu, 19 Nov 2015 22:48:49 +0000 (15:48 -0700)]
layers: Add null-check in MemTracker to prevent layer crash

8 years agolayers: Additional MapMemory validation checks in MemTracker
Mark Lobodzinski [Thu, 19 Nov 2015 21:13:44 +0000 (14:13 -0700)]
layers: Additional MapMemory validation checks in MemTracker

8 years agolayers: LX206, properly restore command buffer level on a reset
Mark Lobodzinski [Thu, 19 Nov 2015 20:22:11 +0000 (13:22 -0700)]
layers: LX206, properly restore command buffer level on a reset

8 years agolayers: LX205, fix BeginCommandBuffer log messages
Mark Lobodzinski [Thu, 19 Nov 2015 19:07:21 +0000 (12:07 -0700)]
layers: LX205, fix BeginCommandBuffer log messages

8 years agolayers: Fix memory barrier validation issues
Mark Lobodzinski [Thu, 19 Nov 2015 17:40:58 +0000 (10:40 -0700)]
layers: Fix memory barrier validation issues

Some Valve DrawState issues

8 years agoloader: Don't init icds if CreateInstance() from ICD fails.
Jon Ashburn [Thu, 19 Nov 2015 16:29:51 +0000 (09:29 -0700)]
loader: Don't init icds if CreateInstance() from ICD fails.

8 years agolayers: Add DrawState checks for incompatible layouts at BindDescriptorSets time
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.

8 years agolayers: Fix windows build errors in MemTracker
Mark Lobodzinski [Thu, 19 Nov 2015 15:31:31 +0000 (08:31 -0700)]
layers: Fix windows build errors in MemTracker

8 years agomem_tracker: Return VK_SUCCESS in vkCreateCommandPool, vkResetCommandPool
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.

8 years agoloader: Make version in layer JSON files consistent
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

8 years agoloader: Add parsing of api_version in ICD JSON
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.

8 years agoloader: Add dynamic dispatch for unknown device extension entrypoints
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.

8 years agodemos: Change tri to use GetInstanceProcAddr for WSI dev ext entry points
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

8 years agolayers: Add CommandBufferPool validation to MemTracker
Mark Lobodzinski [Fri, 13 Nov 2015 20:47:01 +0000 (13:47 -0700)]
layers: Add CommandBufferPool validation to MemTracker

8 years agolayers: Add command pool validation to DrawState
Mark Lobodzinski [Wed, 18 Nov 2015 15:38:27 +0000 (08:38 -0700)]
layers: Add command pool validation to DrawState

8 years agolayers: Fix infinite loop in DrawState
Mark Lobodzinski [Wed, 18 Nov 2015 18:01:02 +0000 (11:01 -0700)]
layers: Fix infinite loop in DrawState

8 years agolayers: Fix error messages.
Jeremy Hayes [Wed, 18 Nov 2015 01:24:56 +0000 (18:24 -0700)]
layers: Fix error messages.

8 years agolayers: Validate barrier subresource range.
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.

8 years agolayers: Fix CreateImageView depth/stencil aspect validation
Mark Lobodzinski [Wed, 18 Nov 2015 16:14:04 +0000 (09:14 -0700)]
layers: Fix CreateImageView depth/stencil aspect validation

8 years agolayers: Remove invalid depth/stencil validation check
Mark Lobodzinski [Wed, 18 Nov 2015 15:58:31 +0000 (08:58 -0700)]
layers: Remove invalid depth/stencil validation check

8 years agolayers: Fix invalid depth/stencil attachment index validation
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.

8 years agolayers: Fix Dota 2 crash in draw_state layer
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.

8 years agolayers: Check compareEnable.
Jeremy Hayes [Tue, 17 Nov 2015 00:23:59 +0000 (17:23 -0700)]
layers: Check compareEnable.

Don't validate compareOp if compareEnable is false.

8 years agoChange version 1.0 to 0.10
David Pinedo [Tue, 17 Nov 2015 00:01:29 +0000 (17:01 -0700)]
Change version 1.0 to 0.10

8 years agolayers: Add validation for object pools
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.

8 years agoheader: bump to vers 210 only changes were to WSI
Jon Ashburn [Mon, 16 Nov 2015 16:12:13 +0000 (09:12 -0700)]
header: bump to vers 210 only changes were to WSI

8 years agoVersion change from 0.9 to 1.0
David Pinedo [Thu, 12 Nov 2015 23:25:53 +0000 (16:25 -0700)]
Version change from 0.9 to 1.0

8 years agolayers: Add missing null-check in DrawState
Mark Lobodzinski [Thu, 12 Nov 2015 23:14:04 +0000 (16:14 -0700)]
layers: Add missing null-check in DrawState

8 years agodemos: Fix access masks in layout transitions in tri
Tony Barbour [Wed, 11 Nov 2015 23:15:54 +0000 (16:15 -0700)]
demos: Fix access masks in layout transitions in tri

8 years agov209: bump API minor version
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v209: bump API minor version

8 years agobug 15120: rename vkCmdPushConstants "values" to "pValues"
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

8 years agoMR671: Rename VK_STRUCTURE_TYPE_LAYER_* to ..LOADER_*
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

8 years agolayers: LX194, Change 'fence already signaled' warning to INFO-level
Mark Lobodzinski [Thu, 12 Nov 2015 17:11:21 +0000 (10:11 -0700)]
layers: LX194, Change 'fence already signaled' warning to INFO-level

8 years agov208: bump API minor version
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v208: bump API minor version

8 years agobug 15089: Does "Across Command Buffer Boundaries" apply to second-level command...
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

8 years agov207: bump API minor version
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v207: bump API minor version

8 years agoMR640: Alloc -> Allocate naming fixes
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

8 years agoMR632: Valid usage xml global changes
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

8 years agobug 12998 part 9: add back explicit enum values
Chia-I Wu [Tue, 10 Nov 2015 21:55:25 +0000 (05:55 +0800)]
bug 12998 part 9: add back explicit enum values

8 years agobug 12998 part 8: add new formats
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 8: add new formats

8 years agobug 12998 part 7: drop unwanted USCALED formats
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 7: drop unwanted USCALED formats

8 years agobug 12998 part 6: add missing formats to icd and demos
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 6: add missing formats to icd and demos

8 years agobug 12998 part 5: reorder formats
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 5: reorder formats

8 years agobug 12998 part 4: drop explicit enum values temporarily
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 4: drop explicit enum values temporarily

There is no real change.

8 years agobug 12998 part 3: append _PACK* to remaining packed formats
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 3: append _PACK* to remaining packed formats

s/VK_FORMAT_R4G4_UNORM\b/VK_FORMAT_R4G4_UNORM_PACK8/g
s/VK_FORMAT_B4G4R4A4_UNORM\b/VK_FORMAT_B4G4R4A4_UNORM_PACK16/g
s/VK_FORMAT_B5G6R5_UNORM\b/VK_FORMAT_B5G6R5_UNORM_PACK16/g
s/VK_FORMAT_R5G6B5_UNORM\b/VK_FORMAT_R5G6B5_UNORM_PACK16/g
s/VK_FORMAT_B5G5R5A1_UNORM\b/VK_FORMAT_B5G5R5A1_UNORM_PACK16/g
s/VK_FORMAT_R5G5B5A1_UNORM\b/VK_FORMAT_R5G5B5A1_UNORM_PACK16/g
s/STR(R4G4_UNORM\b/STR(R4G4_UNORM_PACK8/g
s/STR(B4G4R4A4_UNORM\b/STR(B4G4R4A4_UNORM_PACK16/g
s/STR(B5G6R5_UNORM\b/STR(B5G6R5_UNORM_PACK16/g
s/STR(R5G6B5_UNORM\b/STR(R5G6B5_UNORM_PACK16/g
s/STR(B5G5R5A1_UNORM\b/STR(B5G5R5A1_UNORM_PACK16/g
s/STR(R5G5B5A1_UNORM\b/STR(R5G5B5A1_UNORM_PACK16/g
s/VK_FORMAT_R4G4B4A4_UNORM/VK_FORMAT_R4G4B4A4_UNORM_PACK16/g
s/STR(R4G4B4A4_UNORM/STR(R4G4B4A4_UNORM_PACK16/g

8 years agobug 12998 part 2: append _PACK* to packed formats that change conventions
Chia-I Wu [Tue, 10 Nov 2015 09:01:22 +0000 (17:01 +0800)]
bug 12998 part 2: append _PACK* to packed formats that change conventions

s/VK_FORMAT_R11G11B10_UFLOAT\b/VK_FORMAT_B10G11R11_UFLOAT_PACK32/g
s/VK_FORMAT_R9G9B9E5_UFLOAT\b/VK_FORMAT_E5B9G9R9_UFLOAT_PACK32/g
s/VK_FORMAT_D24_UNORM_X8\b/VK_FORMAT_X8_D24_UNORM_PACK32/g
s/VK_FORMAT_R10G10B10A2_UNORM\b/VK_FORMAT_A2B10G10R10_UNORM_PACK32/g
s/VK_FORMAT_R10G10B10A2_SNORM\b/VK_FORMAT_A2B10G10R10_SNORM_PACK32/g
s/VK_FORMAT_R10G10B10A2_USCALED\b/VK_FORMAT_A2B10G10R10_USCALED_PACK32/g
s/VK_FORMAT_R10G10B10A2_SSCALED\b/VK_FORMAT_A2B10G10R10_SSCALED_PACK32/g
s/VK_FORMAT_R10G10B10A2_UINT\b/VK_FORMAT_A2B10G10R10_UINT_PACK32/g
s/VK_FORMAT_R10G10B10A2_SINT\b/VK_FORMAT_A2B10G10R10_SINT_PACK32/g
s/VK_FORMAT_B10G10R10A2_UNORM\b/VK_FORMAT_A2R10G10B10_UNORM_PACK32/g
s/VK_FORMAT_B10G10R10A2_SNORM\b/VK_FORMAT_A2R10G10B10_SNORM_PACK32/g
s/VK_FORMAT_B10G10R10A2_USCALED\b/VK_FORMAT_A2R10G10B10_USCALED_PACK32/g
s/VK_FORMAT_B10G10R10A2_SSCALED\b/VK_FORMAT_A2R10G10B10_SSCALED_PACK32/g
s/VK_FORMAT_B10G10R10A2_UINT\b/VK_FORMAT_A2R10G10B10_UINT_PACK32/g
s/VK_FORMAT_B10G10R10A2_SINT\b/VK_FORMAT_A2R10G10B10_SINT_PACK32/g
s/STR(R11G11B10_UFLOAT\b/STR(B10G11R11_UFLOAT_PACK32/g
s/STR(R9G9B9E5_UFLOAT\b/STR(E5B9G9R9_UFLOAT_PACK32/g
s/STR(D24_UNORM_X8\b/STR(X8_D24_UNORM_PACK32/g
s/STR(R10G10B10A2_UNORM\b/STR(A2B10G10R10_UNORM_PACK32/g
s/STR(R10G10B10A2_SNORM\b/STR(A2B10G10R10_SNORM_PACK32/g
s/STR(R10G10B10A2_USCALED\b/STR(A2B10G10R10_USCALED_PACK32/g
s/STR(R10G10B10A2_SSCALED\b/STR(A2B10G10R10_SSCALED_PACK32/g
s/STR(R10G10B10A2_UINT\b/STR(A2B10G10R10_UINT_PACK32/g
s/STR(R10G10B10A2_SINT\b/STR(A2B10G10R10_SINT_PACK32/g
s/STR(B10G10R10A2_UNORM\b/STR(A2R10G10B10_UNORM_PACK32/g
s/STR(B10G10R10A2_SNORM\b/STR(A2R10G10B10_SNORM_PACK32/g
s/STR(B10G10R10A2_USCALED\b/STR(A2R10G10B10_USCALED_PACK32/g
s/STR(B10G10R10A2_SSCALED\b/STR(A2R10G10B10_SSCALED_PACK32/g
s/STR(B10G10R10A2_UINT\b/STR(A2R10G10B10_UINT_PACK32/g
s/STR(B10G10R10A2_SINT\b/STR(A2R10G10B10_SINT_PACK32/g

8 years agobug 12998 part 1: append _BLOCK to compressed formats
Chia-I Wu [Tue, 10 Nov 2015 08:44:23 +0000 (16:44 +0800)]
bug 12998 part 1: append _BLOCK to compressed formats

s/VK_FORMAT_BC1_RGB_UNORM\b/VK_FORMAT_BC1_RGB_UNORM_BLOCK/g
s/VK_FORMAT_BC1_RGB_SRGB\b/VK_FORMAT_BC1_RGB_SRGB_BLOCK/g
s/VK_FORMAT_BC1_RGBA_UNORM\b/VK_FORMAT_BC1_RGBA_UNORM_BLOCK/g
s/VK_FORMAT_BC1_RGBA_SRGB\b/VK_FORMAT_BC1_RGBA_SRGB_BLOCK/g
s/VK_FORMAT_BC2_UNORM\b/VK_FORMAT_BC2_UNORM_BLOCK/g
s/VK_FORMAT_BC2_SRGB\b/VK_FORMAT_BC2_SRGB_BLOCK/g
s/VK_FORMAT_BC3_UNORM\b/VK_FORMAT_BC3_UNORM_BLOCK/g
s/VK_FORMAT_BC3_SRGB\b/VK_FORMAT_BC3_SRGB_BLOCK/g
s/VK_FORMAT_BC4_UNORM\b/VK_FORMAT_BC4_UNORM_BLOCK/g
s/VK_FORMAT_BC4_SNORM\b/VK_FORMAT_BC4_SNORM_BLOCK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
s/STR(ASTC_10x5_SRGB\b/STR(ASTC_10x5_SRGB_BLOCK/g
s/STR(ASTC_10x6_UNORM\b/STR(ASTC_10x6_UNORM_BLOCK/g
s/STR(ASTC_10x6_SRGB\b/STR(ASTC_10x6_SRGB_BLOCK/g
s/STR(ASTC_10x8_UNORM\b/STR(ASTC_10x8_UNORM_BLOCK/g
s/STR(ASTC_10x8_SRGB\b/STR(ASTC_10x8_SRGB_BLOCK/g
s/STR(ASTC_10x10_UNORM\b/STR(ASTC_10x10_UNORM_BLOCK/g
s/STR(ASTC_10x10_SRGB\b/STR(ASTC_10x10_SRGB_BLOCK/g
s/STR(ASTC_12x10_UNORM\b/STR(ASTC_12x10_UNORM_BLOCK/g
s/STR(ASTC_12x10_SRGB\b/STR(ASTC_12x10_SRGB_BLOCK/g
s/STR(ASTC_12x12_UNORM\b/STR(ASTC_12x12_UNORM_BLOCK/g
s/STR(ASTC_12x12_SRGB\b/STR(ASTC_12x12_SRGB_BLOCK/g
s/VK_FORMAT_ETC2_R8G8B8_SRGB\b/VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK/g
s/VK_FORMAT_ETC2_R8G8B8A1_SRGB\b/VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK/g
s/VK_FORMAT_ETC2_R8G8B8A8_SRGB\b/VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK/g

8 years agolayers: LX190, Image layer doe snot recognize swapchain images
Mark Lobodzinski [Tue, 10 Nov 2015 18:01:32 +0000 (11:01 -0700)]
layers: LX190, Image layer doe snot recognize swapchain images

Image layer was using helper function limited only to header definitions,
ignoring the WSI extension images for image layouts.

8 years agoReset the "access_flags" for each loop iteration
Piers Daniell [Thu, 5 Nov 2015 23:58:26 +0000 (16:58 -0700)]
Reset the "access_flags" for each loop iteration

Without out this fix the access_flags will have KEY_WOW64_32KEY set for
all iterations except the first one.

9 years agovulkan: Bump header to API version 206
Jon Ashburn [Fri, 6 Nov 2015 22:47:20 +0000 (15:47 -0700)]
vulkan: Bump header to API version 206

9 years agoloader: Compile fixes to instance extension from rebase of bug 15068 changes
Jon Ashburn [Fri, 6 Nov 2015 22:31:44 +0000 (15:31 -0700)]
loader: Compile fixes to instance extension from rebase of bug 15068 changes

9 years agobug 15086: maxDrawIndirectInstanceCount?
Chia-I Wu [Fri, 6 Nov 2015 02:29:05 +0000 (10:29 +0800)]
bug 15086: maxDrawIndirectInstanceCount?

s/maxDrawIndirectInstanceCount/maxDrawIndirectCount/g

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15086

9 years agobug 15085: queue creation naming issues
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
bug 15085: queue creation naming issues

Manually rename arraySize and

s/queuePriorityCount/queueCount/g
s/requestedQueueCount/queueCreateInfoCount/g
s/pRequestedQueues/pQueueCreateInfos/g

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15085

Conflicts:
layers/draw_state.cpp

9 years agobug 15004: Non-coherent memory, when is flush and invalidate required
Chia-I Wu [Fri, 6 Nov 2015 02:37:51 +0000 (10:37 +0800)]
bug 15004: Non-coherent memory, when is flush and invalidate required

Add nonCoherentAtomSize.

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15004

9 years agobug 15038: Need a way to express the total limit of resources per stage
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
bug 15038: Need a way to express the total limit of resources per stage

Add maxPerStageResources.

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15038

9 years agov205: bump API minor version
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v205: bump API minor version

9 years agov204: bump API minor version
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
v204: bump API minor version

9 years agobug 15050: Add device limit for max number of input attachments
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
bug 15050: Add device limit for max number of input attachments

Add maxPerStageDescriptorInputAttachments and
maxDescriptorSetInputAttachments.

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15050

9 years agobug 15068: Use hardfp calling convention on Android for 32-bit ARM targets
Chia-I Wu [Thu, 5 Nov 2015 22:42:02 +0000 (06:42 +0800)]
bug 15068: Use hardfp calling convention on Android for 32-bit ARM targets

Update python scripts.

s/(VKAPI \*/(VKAPI_PTR */g
s/void VKAPI\b/VKAPI_ATTR void VKAPI_CALL/g
s/VkResult VKAPI\b/VKAPI_ATTR VkResult VKAPI_CALL/g
s/PFN_vkVoidFunction VKAPI\b/VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL/g
s/void\* VKAPI\b/VKAPI_ATTR void* VKAPI_CALL/g

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15068

9 years agoloader: Update calling conventions on instance extension functions
Jon Ashburn [Fri, 6 Nov 2015 21:31:07 +0000 (14:31 -0700)]
loader: Update calling conventions on instance extension functions

9 years agoMerge branch 'david_include_change_20151106'
David Pinedo [Fri, 6 Nov 2015 21:32:33 +0000 (14:32 -0700)]
Merge branch 'david_include_change_20151106'

Move header files to include/vulkan

9 years agoloader: Convert GetInstanceProcAddr and GetDeviceProcAddr over to new semantics
Jon Ashburn [Fri, 6 Nov 2015 18:02:40 +0000 (11:02 -0700)]
loader: Convert GetInstanceProcAddr and GetDeviceProcAddr over to new semantics

As per Vulkan bug 13288. Still need to handle device extensions correctly.

9 years agoMoved header files from include to include/vulkan
David Pinedo [Fri, 6 Nov 2015 19:54:48 +0000 (12:54 -0700)]
Moved header files from include to include/vulkan

9 years agolayers: LX187: Change unused input WARN to PERF_WARN
Mark Lobodzinski [Fri, 6 Nov 2015 17:24:23 +0000 (10:24 -0700)]
layers: LX187: Change unused input WARN to PERF_WARN

Shaderchecker will now throw PERF_WARN messages for unused vertex
attributes or for unused inputs between shader stages.

9 years agodemos: Stage is no longer needed for demo_prepare_shader_module
Tony Barbour [Fri, 6 Nov 2015 17:10:37 +0000 (10:10 -0700)]
demos: Stage is no longer needed for demo_prepare_shader_module

9 years agotests: Add InvalidDynamicOffsetCount validation test
Tobin Ehlis [Wed, 4 Nov 2015 20:30:34 +0000 (13:30 -0700)]
tests: Add InvalidDynamicOffsetCount validation test

This test hits the validation error case where a descriptorSet with a dynamic type is bound, but no dynamicOffest is provided.

9 years agolayers: Add DrawState check for correct dynamicOffsetCount
Tobin Ehlis [Wed, 4 Nov 2015 19:28:28 +0000 (12:28 -0700)]
layers: Add DrawState check for correct dynamicOffsetCount

At vkCmdBindDescriptorSets() time, the dynamicOffsetCount must match the actual count of dynamic descriptors that are being bound. If not, validation flags an error of type DRAWSTATE_INVALID_DYNAMIC_OFFSET_COUNT.

9 years agolayers: Fix compilation on 32bit platforms
Michael Lentine [Wed, 4 Nov 2015 22:35:12 +0000 (14:35 -0800)]
layers: Fix compilation on 32bit platforms

Merge Request 57
     Remove use of nullptr for handles
     Modify maps to use uint64_t
     Modify overloaded functions to have different signatures

Conflicts:
vk-layer-generate.py

9 years agolayers: Fix printf formats
Michael Lentine [Wed, 4 Nov 2015 00:19:46 +0000 (16:19 -0800)]
layers: Fix printf formats

Add validation to printf format strings

9 years agolayers: Fix GPA and debug output in swapchain layer
Mark Lobodzinski [Thu, 5 Nov 2015 22:27:03 +0000 (15:27 -0700)]
layers: Fix GPA and debug output in swapchain layer

9 years agolayers: Fix barrier access flag validation warnings in Cube.
Mark Lobodzinski [Wed, 4 Nov 2015 20:49:48 +0000 (13:49 -0700)]
layers: Fix barrier access flag validation warnings in Cube.

9 years agolayers: Remove ObjectTracker check of pTexelBufferView array
Tobin Ehlis [Mon, 2 Nov 2015 22:24:32 +0000 (15:24 -0700)]
layers: Remove ObjectTracker check of pTexelBufferView array

The different UpdateDescriptorSets() cases are validated in DrawState. Skipping these object checks in ObjectTracker to avoid duplication and to avoid needing custom code gen to handle different update cases and their associated objects.

Updated InvalidBufferViewObject test to now catch descriptor error update instead of the ObjectTracker error.

9 years agolayers: Validate Flush/Invalidate ranges.
Michael Lentine [Thu, 29 Oct 2015 17:41:47 +0000 (10:41 -0700)]
layers: Validate Flush/Invalidate ranges.

Merge Request 53
Conflicts:
layers/mem_tracker.cpp
layers/mem_tracker.h

9 years agolayers: Fix some bugs in the memory barrier validation code
Mark Lobodzinski [Wed, 4 Nov 2015 20:51:23 +0000 (13:51 -0700)]
layers: Fix some bugs in the memory barrier validation code

Fix some merge-request related issues in DrawState

9 years agovktrace: Update authorship for generated files
Jon Ashburn [Tue, 3 Nov 2015 20:46:15 +0000 (13:46 -0700)]
vktrace: Update authorship for generated files

9 years agolayers: update copyright and authorship on some files
Jon Ashburn [Tue, 3 Nov 2015 20:41:23 +0000 (13:41 -0700)]
layers: update copyright and authorship on some files

9 years agomisc: Fix build errors from the author changes
Jon Ashburn [Tue, 3 Nov 2015 18:57:00 +0000 (11:57 -0700)]
misc: Fix build errors from the author changes

9 years agomisc: Update author information
Courtney Goeltzenleuchter [Fri, 30 Oct 2015 17:14:30 +0000 (11:14 -0600)]
misc: Update author information

Author information was added to any file
with the standard license text.
Authors were added that added/changed >= 3%
of the lines of a file.

9 years agomisc: switch copyright to Valve
Courtney Goeltzenleuchter [Thu, 29 Oct 2015 19:50:34 +0000 (13:50 -0600)]
misc: switch copyright to Valve

9 years agomisc: Remove Vulkan name from Copyright
Courtney Goeltzenleuchter [Thu, 29 Oct 2015 19:17:36 +0000 (13:17 -0600)]
misc: Remove Vulkan name from Copyright

9 years agoAdd skip call to the shader checker.
Michael Lentine [Wed, 4 Nov 2015 00:18:46 +0000 (16:18 -0800)]
Add skip call to the shader checker.

9 years agomisc: Remove glsl backdoor
Courtney Goeltzenleuchter [Fri, 30 Oct 2015 21:19:27 +0000 (15:19 -0600)]
misc: Remove glsl backdoor

SPIR-V support is now supported well enough in IHV's
drivers that we don't have to send GLSL directly anymore
so remove that from cube and tri demos.

9 years agolayers: Add map range validation.
Michael Lentine [Wed, 28 Oct 2015 23:26:14 +0000 (16:26 -0700)]
layers: Add map range validation.

Merge Request 52

9 years agolayers: Add Secondary Command Buffer Validation.
Michael Lentine [Wed, 28 Oct 2015 22:55:18 +0000 (15:55 -0700)]
layers: Add Secondary Command Buffer Validation.

Merge Request 51
Conflicts:
layers/draw_state.cpp

9 years agolayers: Fix some merge-related issues in demos and tests
Mark Lobodzinski [Wed, 28 Oct 2015 19:03:56 +0000 (13:03 -0600)]
layers: Fix some merge-related issues in demos and tests

9 years agoAdd validation for masks in barriers
Michael Lentine [Fri, 16 Oct 2015 23:08:09 +0000 (18:08 -0500)]
Add validation for masks in barriers

9 years agoAdd layout validation for mapped images.
Michael Lentine [Fri, 23 Oct 2015 19:41:44 +0000 (12:41 -0700)]
Add layout validation for mapped images.

9 years agoAdd validation for barriers within render passes.
Michael Lentine [Thu, 15 Oct 2015 22:07:00 +0000 (17:07 -0500)]
Add validation for barriers within render passes.

Conflicts:
layers/draw_state.cpp