platform/upstream/Vulkan-Tools.git
8 years agov198: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v198: bump API minor version

8 years agobug 14918 part 4: more cleanups (WIP)
Chia-I Wu [Tue, 27 Oct 2015 11:00:15 +0000 (19:00 +0800)]
bug 14918 part 4: more cleanups (WIP)

8 years agobug 14918 part 3: sed renames
Chia-I Wu [Tue, 27 Oct 2015 11:25:11 +0000 (19:25 +0800)]
bug 14918 part 3: sed renames

s/VK_MAX_PHYSICAL_DEVICE_NAME\b/VK_MAX_PHYSICAL_DEVICE_NAME_SIZE/g
s/VK_UUID_LENGTH/VK_UUID_SIZE/g
s/VK_MAX_EXTENSION_NAME\b/VK_MAX_EXTENSION_NAME_SIZE/g
s/VK_MAX_DESCRIPTION\b/VK_MAX_DESCRIPTION_SIZE/g
s/VK_STRUCTURE_TYPE_PIPELINE_RASTER_STATE_CREATE_INFO/VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO/g
s/VK_CHANNEL_SWIZZLE/VK_COMPONENT_SWIZZLE/g
s/VkChannelSwizzle/VkComponentSwizzle/g
s/VK_VERTEX_INPUT_STEP_RATE/VK_VERTEX_INPUT_RATE/g
s/VkVertexInputStepRate/VkVertexInputRate/g
s/VK_FILL_MODE_SOLID/VK_POLYGON_MODE_FILL/g
s/VK_FILL_MODE_WIREFRAME/VK_POLYGON_MODE_LINE/g
s/VK_FILL_MODE_POINTS/VK_POLYGON_MODE_POINT/g
s/VkFillMode/VkPolygonMode/g
s/fillMode/polygonMode/g
s/VkBlend\b/VkBlendFactor/g
s/VK_BLEND_ZERO/VK_BLEND_FACTOR_ZERO/g
s/VK_BLEND_ONE/VK_BLEND_FACTOR_ONE/g
s/VK_BLEND_SRC/VK_BLEND_FACTOR_SRC/g
s/VK_BLEND_DST/VK_BLEND_FACTOR_DST/g
s/VK_BLEND_CONSTANT/VK_BLEND_FACTOR_CONSTANT/g
s/VK_RENDER_PASS_CONTENTS/VK_SUBPASS_CONTENTS/g
s/VkRenderPassContents/VkSubpassContents/g
s/VK_QUEUE_DMA_BIT/VK_QUEUE_TRANSFER_BIT/g
s/VK_CHANNEL_/VK_COLOR_COMPONENT_/g
s/VkChannelFlagBits/VkColorComponentFlagBits/g
s/VK_QUERY_CONTROL_CONSERVATIVE_BIT/VK_QUERY_CONTROL_PRECISE_BIT/g
s/occlusionQueryNonConservative/occlusionQueryPrecise/g
s/recommendedBufferCopyOffsetAlignment/optimalBufferCopyOffsetAlignment/g
s/recommendedBufferCopyRowPitchAlignment/optimalBufferCopyRowPitchAlignment/g
s/stencilCompareMask/compareMask/g
s/stencilWriteMask/writeMask/g
s/stencilReference/reference/g
s/VkImageSubresourceCopy/VkImageSubresourceLayers/g
s/typeCount/poolSizeCount/g
s/pTypeCounts/pPoolSizes/g
s/VkDescriptorTypeCount/VkDescriptorPoolSize/g
s/srcBlendColor/srcColorBlendFactor/g
s/dstBlendColor/dstColorBlendFactor/g
s/blendOpColor/colorBlendOp/g
s/srcBlendAlpha/srcAlphaBlendFactor/g
s/dstBlendAlpha/dstAlphaBlendFactor/g
s/blendOpAlpha/alphaBlendOp/g
s/channelWriteMask/colorWriteMask/g
s/stencilFailOp/failOp/g
s/stencilPassOp/passOp/g
s/stencilDepthFailOp/depthFailOp/g
s/stencilCompareOp/compareOp/g
s/stencilCompareMask/compareMask/g
s/stencilWriteMask/writeMask/g
s/stencilReference/reference/g
s/originX/x/g
s/originY/y/g
s/stepRate/inputRate/g
s/VkChannelMapping/VkComponentMapping/g

8 years agobug 14921 part 3: typos
Chia-I Wu [Tue, 27 Oct 2015 10:59:16 +0000 (18:59 +0800)]
bug 14921 part 3: typos

Nothing to do.

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

8 years agobug 14968: Limitations of transfer operations on DMA queues (WIP)
Chia-I Wu [Tue, 27 Oct 2015 10:58:24 +0000 (18:58 +0800)]
bug 14968: Limitations of transfer operations on DMA queues (WIP)

Add minImageTransferGranularity.

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

8 years agobug 14940: Capitalization of Abbreviations/Acryonyms (WIP)
Chia-I Wu [Tue, 27 Oct 2015 10:58:00 +0000 (18:58 +0800)]
bug 14940: Capitalization of Abbreviations/Acryonyms (WIP)

s/shaderResourceMinLOD/shaderResourceMinLod/g
s/vendorId/vendorID/g
s/deviceId/deviceID/g
s/imageMipTailStartLOD/imageMipTailStartLod/g
s/constantId/constantID/g

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

8 years agov197: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v197: bump API minor version

8 years agobug 14922: Consistent memory properties (WIP)
Chia-I Wu [Tue, 27 Oct 2015 10:53:22 +0000 (18:53 +0800)]
bug 14922: Consistent memory properties (WIP)

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

8 years agobug 14936: Sparse questions/issues (WIP)
Chia-I Wu [Tue, 27 Oct 2015 10:52:46 +0000 (18:52 +0800)]
bug 14936: Sparse questions/issues (WIP)

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

8 years agobug 14570: Which formats are supported for image loads and stores? (WIP)
Chia-I Wu [Tue, 27 Oct 2015 10:52:05 +0000 (18:52 +0800)]
bug 14570: Which formats are supported for image loads and stores? (WIP)

New features and update vulkaninfo.

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

8 years agov196: bug 14921 part 2: Expanding abbreviations for consistency (WIP)
Chia-I Wu [Tue, 27 Oct 2015 09:53:18 +0000 (17:53 +0800)]
v196: bug 14921 part 2: Expanding abbreviations for consistency (WIP)

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

8 years agobug 14921 part 1: sed renames
Chia-I Wu [Tue, 27 Oct 2015 10:04:07 +0000 (18:04 +0800)]
bug 14921 part 1: sed renames

Workaround header bug (ALLOC_INFO vs AllocateInfo) in vk_helper.py. This
affects the debug extensions as well.

s/NONDISP/NON_DISPATCHABLE/g
s/CmdBuffer/CommandBuffer/g
s/cmdBuffer/commandBuffer/g
s/CMD_BUFFER/COMMAND_BUFFER/g
s/AllocMemory/AllocateMemory/g
s/AllocDescriptorSets/AllocateDescriptorSets/g
s/AllocCommandBuffers/AllocateCommandBuffers/g
s/VkAllocCallbacks/VkAllocationCallbacks/g
s/VkSystemAllocScope/VkSystemAllocationScope/g
s/allocScope/allocationScope/g
s/allocType/allocationType/g
s/pfnAlloc\b/pfnAllocation/g
s/pfnRealloc\b/pfnReallocation/g
s/VK_SYSTEM_ALLOC_/VK_SYSTEM_ALLOCATION_/g
s/extName/extensionName/g
s/implVersion/implementationVersion/g
s/pAppInfo/pApplicationInfo/g
s/pMem\b/pMemory/g
s/VkMemoryAllocInfo/VkMemoryAllocateInfo/g
s/VkDescriptorSetAllocInfo/VkDescriptorSetAllocateInfo/g
s/CmdPool/CommandPool/g
s/cmdPool/commandPool/g
s/CMD_POOL/COMMAND_POOL/g
s/VkCommandBufferAllocInfo/VkCommandBufferAllocateInfo/g
s/maxTessellationGenLevel/maxTessellationGenerationLevel/g
s/maxFragmentDualSourceAttachments/maxFragmentDualSrcAttachments/g
s/destSubpass/dstSubpass/g
s/destStageMask/dstStageMask/g
s/dualSourceBlend/dualSrcBlend/g
s/destBlendColor/dstBlendColor/g
s/destBlendAlpha/dstBlendAlpha/g
s/VK_FORMAT_NUM/VK_FORMAT_RANGE_SIZE/g
s/VK_DYNAMIC_STATE_NUM/VK_DYNAMIC_STATE_RANGE_SIZE/g
s/pAppName/pApplicationName/g
s/appVersion/applicationVersion/g
s/numLevels/levelCount/g
s/numLayers/layerCount/g
s/destOffset/dstOffset/g
s/destSubresource/dstSubresource/g
s/VK_IMAGE_LAYOUT_TRANSFER_SOURCE_OPTIMAL/VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL/g
s/VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL/VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL/g
s/VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT/VK_IMAGE_USAGE_TRANSFER_SRC_BIT/g
s/VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT/VK_IMAGE_USAGE_TRANSFER_DST_BIT/g
s/destBuffer/dstBuffer/g
s/destQueueFamilyIndex/dstQueueFamilyIndex/g
s/destSet/dstSet/g
s/destBinding/dstBinding/g
s/destArrayElement/dstArrayElement/g
s/VK_BLEND_DEST_COLOR/VK_BLEND_DST_COLOR/g
s/VK_BLEND_ONE_MINUS_DEST_COLOR/VK_BLEND_ONE_MINUS_DST_COLOR/g
s/VK_BLEND_DEST_ALPHA/VK_BLEND_DST_ALPHA/g
s/VK_BLEND_ONE_MINUS_DEST_ALPHA/VK_BLEND_ONE_MINUS_DST_ALPHA/g
s/VK_FORMAT_FEATURE_BLIT_SOURCE_BIT/VK_FORMAT_FEATURE_BLIT_SRC_BIT/g
s/VK_FORMAT_FEATURE_BLIT_DESTINATION_BIT/VK_FORMAT_FEATURE_BLIT_DST_BIT/g
s/VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT/VK_BUFFER_USAGE_TRANSFER_SRC_BIT/g
s/VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT/VK_BUFFER_USAGE_TRANSFER_DST_BIT/g
s/VK_COMPARE_OP_LESS_EQUAL/VK_COMPARE_OP_LESS_OR_EQUAL/g
s/VK_COMPARE_OP_GREATER_EQUAL/VK_COMPARE_OP_GREATER_OR_EQUAL/g
s/VkPipelineRasterStateCreateInfo/VkPipelineRasterizationStateCreateInfo/g
s/rasterSamples/rasterizationSamples/g
s/pRasterState/pRasterizationState/g
s/VK_FRONT_FACE_CCW/VK_FRONT_FACE_COUNTER_CLOCKWISE/g
s/VK_FRONT_FACE_CW/VK_FRONT_FACE_CLOCKWISE/g
s/VK_PRIMITIVE_TOPOLOGY_LINE_LIST_ADJ/VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY/g
s/VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_ADJ/VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY/g
s/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_ADJ/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY/g
s/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_ADJ/VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY/g
s/VK_STENCIL_OP_INC_CLAMP/VK_STENCIL_OP_INCREMENT_AND_CLAMP/g
s/VK_STENCIL_OP_DEC_CLAMP/VK_STENCIL_OP_DECREMENT_AND_CLAMP/g
s/VK_STENCIL_OP_INC_WRAP/VK_STENCIL_OP_INCREMENT_AND_WRAP/g
s/VK_STENCIL_OP_DEC_WRAP/VK_STENCIL_OP_DECREMENT_AND_WRAP/g
s/VK_LOGIC_OP_NOOP/VK_LOGIC_OP_NO_OP/g
s/VK_LOGIC_OP_EQUIV\b/VK_LOGIC_OP_EQUIVALENT/g
s/memBarrierCount/memoryBarrierCount/g
s/ppMemBarriers/ppMemoryBarriers/g
s/destImage/dstImage/g
s/destImageLayout/dstImageLayout/g
s/destCache/dstCache/g
s/memOffset/memoryOffset/g
s/vk_print_vkmemoryallocinfo/vk_print_vkmemoryallocateinfo/g
s/pAllocInfo/pAllocateInfo/g
s/memRangeCount/memoryRangeCount/g
s/pMemRanges/pMemoryRanges/g
s/VK_IMAGE_TYPE_NUM/VK_IMAGE_TYPE_RANGE_SIZE/g
s/VK_PIPELINE_BIND_POINT_NUM/VK_PIPELINE_BIND_POINT_RANGE_SIZE/g
s/vk_size_vkdescriptorsetallocinfo/vk_size_vkdescriptorsetallocateinfo/g
s/remap_cmdbuffers/remap_commandbuffers/g
s/remap_cmdpool/remap_commandpool/g
s/add_to_cmdbuffers_map/add_to_commandbuffers_map/g

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

a

8 years agov195: bug 14932: Pipeline Cache clarifications needed (WIP)
Chia-I Wu [Tue, 27 Oct 2015 09:50:57 +0000 (17:50 +0800)]
v195: bug 14932: Pipeline Cache clarifications needed (WIP)

Remove maxSize.

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

8 years agov194: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v194: bump API minor version

8 years agoMR 542: Remaining items from the cleanup bug (WIP)
Chia-I Wu [Mon, 26 Oct 2015 09:32:47 +0000 (17:32 +0800)]
MR 542: Remaining items from the cleanup bug (WIP)

depthStencilAttachment is replaced by pDepthStencilAttachment.

s/VK_CULL_MODE_FRONT\b/VK_CULL_MODE_FRONT_BIT/g
s/VK_CULL_MODE_BACK\b/VK_CULL_MODE_BACK_BIT/g
s/VK_SAMPLER_ADDRESS_MODE_WRAP\b/VK_SAMPLER_ADDRESS_MODE_REPEAT/g
s/VK_SAMPLER_ADDRESS_MODE_MIRROR\b/VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT/g
s/VK_SAMPLER_ADDRESS_MODE_CLAMP\b/VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE/g
s/VK_SAMPLER_ADDRESS_MODE_MIRROR_ONCE\b/VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE/g
s/VK_SAMPLER_ADDRESS_MODE_CLAMP_BORDER\b/VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER/g

https://gitlab.khronos.org/vulkan/vulkan/merge_requests/542

8 years agov193: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v193: bump API minor version

8 years agobug 14918 part 2: some simple renames (WIP)
Chia-I Wu [Mon, 26 Oct 2015 09:24:52 +0000 (17:24 +0800)]
bug 14918 part 2: some simple renames (WIP)

s/VK_QUEUE_SPARSE_MEMMGR_BIT/VK_QUEUE_SPARSE_BINDING_BIT/g
s/VK_SPARSE_IMAGE_FMT_/VK_SPARSE_IMAGE_FORMAT_/g
s/maxTexelBufferSize/maxTexelBufferElements/g
s/residencyStandard2DMSBlockShape/residencyStandard2DMultisampleBlockShape/g
s/formatProps/formatProperties/g
s/strideInBytes/stride/g
s/offsetInBytes/offset/g
s/blendConst\b/blendConstants/g
s/fillSize/size/g

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

8 years agobug 14892 part 2: rename more "count" (WIP)
Chia-I Wu [Mon, 26 Oct 2015 09:20:32 +0000 (17:20 +0800)]
bug 14892 part 2: rename more "count" (WIP)

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

8 years agobug 14778: VK_IMAGE_VIEW_CREATE_READ_ONLY_DEPTH_BIT underspecified (WIP)
Chia-I Wu [Mon, 26 Oct 2015 09:18:26 +0000 (17:18 +0800)]
bug 14778: VK_IMAGE_VIEW_CREATE_READ_ONLY_DEPTH_BIT underspecified (WIP)

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

8 years agov192: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v192: bump API minor version

8 years agobug 14918 part1: consistency/cleanup ideas (from jbolz/pdaniell/dkoch) (WIP)
Chia-I Wu [Mon, 26 Oct 2015 09:08:33 +0000 (17:08 +0800)]
bug 14918 part1: consistency/cleanup ideas (from jbolz/pdaniell/dkoch) (WIP)

Change alignment types and replace byRegion by VkDependencyFlags.

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

8 years agov191: bug 14574: Capability bit for stores from non-fragment/compute shaders (WIP)
Chia-I Wu [Mon, 26 Oct 2015 09:04:32 +0000 (17:04 +0800)]
v191: bug 14574: Capability bit for stores from non-fragment/compute shaders (WIP)

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

8 years agov190: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v190: bump API minor version

8 years agobug 14641: VkXXXCreateFlags are not consistently used for the various VkXXXCreateInfo...
Chia-I Wu [Mon, 26 Oct 2015 09:00:46 +0000 (17:00 +0800)]
bug 14641: VkXXXCreateFlags are not consistently used for the various VkXXXCreateInfo (WIP)

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

8 years agobug 14848: Verifying Sparse Behavior (WIP)
Chia-I Wu [Mon, 26 Oct 2015 08:55:27 +0000 (16:55 +0800)]
bug 14848: Verifying Sparse Behavior (WIP)

Merge vkQueueBindSparse*() to one.

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

8 years agov189: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v189: bump API minor version

8 years agobug 14543: rename VkTex* enums to VkTexture* similarly for VK_TEX_* to VK_TEXTURE_...
Chia-I Wu [Mon, 26 Oct 2015 08:49:32 +0000 (16:49 +0800)]
bug 14543: rename VkTex* enums to VkTexture* similarly for VK_TEX_* to VK_TEXTURE_* (WIP)

s/VK_TEX_FILTER_/VK_FILTER_/g
s/VkTexFilter/VkFilter/g
s/VK_TEX_MIPMAP_MODE_/VK_SAMPLER_MIPMAP_MODE_/g
s/VkTexMipmapMode/VkSamplerMipmapMode/g
s/VK_TEX_ADDRESS_MODE_/VK_SAMPLER_ADDRESS_MODE_/g
s/VkTexAddressMode/VkSamplerAddressMode/g
s/mipMode/mipmapMode/g

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

8 years agov188: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 08:48:28 +0000 (16:48 +0800)]
v188: bump API minor version

8 years agobug 14914: Should strictLines be a feature or a limit (WIP)
Chia-I Wu [Mon, 26 Oct 2015 08:47:26 +0000 (16:47 +0800)]
bug 14914: Should strictLines be a feature or a limit (WIP)

A limit.

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

8 years agobug 12921: Memory callback (WIP)
Chia-I Wu [Mon, 26 Oct 2015 13:10:41 +0000 (21:10 +0800)]
bug 12921: Memory callback (WIP)

The per-object allocator is ignored for now.

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

8 years agobug 14892: 'count' parameters and members named inconsistently in many cases (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:48:51 +0000 (20:48 +0800)]
bug 14892: 'count' parameters and members named inconsistently in many cases (WIP)

s/waitSemCount/waitSemaphoreCount/g
s/signalSemCount/signalSemaphoreCount/g
s/cmdBufferCount/commandBufferCount/g
s/queueFamilyCount/queueFamilyIndexCount/g
s/layerCount/enabledLayerNameCount/g
s/extensionCount/enabledExtensionNameCount/g

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

8 years agobug 14909: Define "length" as it relates to push constants be in units of bytes not...
Chia-I Wu [Mon, 26 Oct 2015 12:46:14 +0000 (20:46 +0800)]
bug 14909: Define "length" as it relates to push constants be in units of bytes not words (WIP)

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

8 years agobug 14905: Reserve VkStructureType values for loader/layer bootstrapping (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:42:12 +0000 (20:42 +0800)]
bug 14905: Reserve VkStructureType values for loader/layer bootstrapping (WIP)

Fix vk_helper.py to ignore them.

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

8 years agov187: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 12:03:07 +0000 (20:03 +0800)]
v187: bump API minor version

8 years agobug 14630: Issues with regard to primitive restart index (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:40:02 +0000 (20:40 +0800)]
bug 14630: Issues with regard to primitive restart index (WIP)

Remove primitiveRestartForPatches.

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

8 years agobug 14857: Adding extensibility to VkSubmitInfo (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:37:06 +0000 (20:37 +0800)]
bug 14857: Adding extensibility to VkSubmitInfo (WIP)

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

8 years agoMerge branch 'master' of gitlab.khronos.org:vulkan/LoaderAndTools
Tobin Ehlis [Mon, 2 Nov 2015 20:13:21 +0000 (13:13 -0700)]
Merge branch 'master' of gitlab.khronos.org:vulkan/LoaderAndTools

8 years agolayers: Fix Swapchain include dependency for Windows build break
Tobin Ehlis [Mon, 2 Nov 2015 20:12:18 +0000 (13:12 -0700)]
layers: Fix Swapchain include dependency for Windows build break

8 years agodemos: Initialize all of subresource fields
Tony Barbour [Mon, 2 Nov 2015 18:47:51 +0000 (11:47 -0700)]
demos: Initialize all of subresource fields

8 years agolayers: Use descriptor type to decide which pointer to free
Tony Barbour [Mon, 2 Nov 2015 18:46:29 +0000 (11:46 -0700)]
layers: Use descriptor type to decide which pointer to free

8 years agolayers: Migrate Image dispatch tables into layer_data struct
Tobin Ehlis [Thu, 29 Oct 2015 20:19:18 +0000 (14:19 -0600)]
layers: Migrate Image dispatch tables into layer_data struct

8 years agolayers: Migrate Swapchain dispatch tables and global data into layer_data struct
Tobin Ehlis [Thu, 29 Oct 2015 18:58:13 +0000 (12:58 -0600)]
layers: Migrate Swapchain dispatch tables and global data into layer_data struct

8 years agolayers: Migrate ShaderChecker dispatch tables and global data into layer_data struct
Tobin Ehlis [Thu, 29 Oct 2015 17:11:53 +0000 (11:11 -0600)]
layers: Migrate ShaderChecker dispatch tables and global data into layer_data struct

8 years agolayers: Remove mid/mdd functions from MemTracker
Tobin Ehlis [Thu, 29 Oct 2015 15:55:19 +0000 (09:55 -0600)]
layers: Remove mid/mdd functions from MemTracker

8 years agolayers: Migrating MemTracker global data into layer_data struct
Tobin Ehlis [Thu, 29 Oct 2015 15:03:52 +0000 (09:03 -0600)]
layers: Migrating MemTracker global data into layer_data struct

8 years agolayers: Add dispatch tables into MemTracker layer_data struct
Tobin Ehlis [Wed, 28 Oct 2015 22:25:11 +0000 (16:25 -0600)]
layers: Add dispatch tables into MemTracker layer_data struct

8 years agoubuntu 15.10 directions for intel DRI3
Mike Stroyan [Fri, 30 Oct 2015 21:30:13 +0000 (15:30 -0600)]
ubuntu 15.10 directions for intel DRI3

8 years agov186: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 12:03:07 +0000 (20:03 +0800)]
v186: bump API minor version

8 years agobug 14567: What is VK_QUEUE_EXTENDED_BIT? (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:33:12 +0000 (20:33 +0800)]
bug 14567: What is VK_QUEUE_EXTENDED_BIT? (WIP)

Removed.

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

8 years agobug 14876: Can timestamps be written inside a renderpass? (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:14:54 +0000 (20:14 +0800)]
bug 14876: Can timestamps be written inside a renderpass? (WIP)

Timestamps are written to a query pool.

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

8 years agobug 14362: VK_NULL_HANDLE does not work in C (WIP)
Chia-I Wu [Mon, 26 Oct 2015 12:04:44 +0000 (20:04 +0800)]
bug 14362: VK_NULL_HANDLE does not work in C (WIP)

Drop type safety on 32-bit.

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

8 years agov185: bump API minor version
Chia-I Wu [Mon, 26 Oct 2015 12:03:07 +0000 (20:03 +0800)]
v185: bump API minor version

8 years agobug 14864: Remove redundant VkPipelineShaderStageCreateInfo.stage field? (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:52:46 +0000 (19:52 +0800)]
bug 14864: Remove redundant VkPipelineShaderStageCreateInfo.stage field? (WIP)

Removed.

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

8 years agoMR 461: Documented updated vkQueueSubmit and remove wait + signal semaphore operation...
Chia-I Wu [Mon, 26 Oct 2015 11:48:03 +0000 (19:48 +0800)]
MR 461: Documented updated vkQueueSubmit and remove wait + signal semaphore operations on queues. (WIP)

https://gitlab.khronos.org/vulkan/vulkan/merge_requests/461

8 years agosupport and use VkSubmitInfo semaphore signaling and waiting
Chia-I Wu [Thu, 29 Oct 2015 14:01:53 +0000 (22:01 +0800)]
support and use VkSubmitInfo semaphore signaling and waiting

8 years agobug 14868: Replace VkTimestampType with VkPipelineStageFlagBits (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:40:27 +0000 (19:40 +0800)]
bug 14868: Replace VkTimestampType with VkPipelineStageFlagBits (WIP)

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

8 years agov184: bug 14719: vkCmdCopyBufferToImage alignment requirements (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:28:45 +0000 (19:28 +0800)]
v184: bug 14719: vkCmdCopyBufferToImage alignment requirements (WIP)

Update vulkaninfo to print new limits.

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

8 years agobug 14822: timestampFrequency underspecified (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:27:21 +0000 (19:27 +0800)]
bug 14822: timestampFrequency underspecified (WIP)

Replaced by timestampPeriod, number of nanoseconds per tick.

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

8 years agobug 14725: Remove or replace VK_SPARSE_MEMORY_BIND_REPLICATE_64KIB_BLOCK_BIT (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:26:04 +0000 (19:26 +0800)]
bug 14725: Remove or replace VK_SPARSE_MEMORY_BIND_REPLICATE_64KIB_BLOCK_BIT (WIP)

Renamed.

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

8 years agobug 14462: endianness of code for shader modules (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:22:06 +0000 (19:22 +0800)]
bug 14462: endianness of code for shader modules (WIP)

Change the type of pCode to uint32_t*.

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

8 years agobug 14855: vkGetPipelineCacheSize is unique (consistency issue) (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:17:06 +0000 (19:17 +0800)]
bug 14855: vkGetPipelineCacheSize is unique (consistency issue) (WIP)

Update vkGetPipelineCacheData() to replace vkGetPipelineCacheSize().

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

8 years agobug 14861: rasterization review issues (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:16:06 +0000 (19:16 +0800)]
bug 14861: rasterization review issues (WIP)

Update vulkaninfo to print features->strictLines.

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

8 years agobug 14365: Rename slopeScaledDepthBias to depthBiasSlopeScaled (WIP)
Chia-I Wu [Mon, 26 Oct 2015 11:08:09 +0000 (19:08 +0800)]
bug 14365: Rename slopeScaledDepthBias to depthBiasSlopeScaled (WIP)

s/slopeScaledDepthBias/depthBiasSlopeFactor/g
s/depthBias\b/depthBiasConstantFactor/g

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

8 years agobug 14844: Query Pool issues (WIP)
Chia-I Wu [Mon, 26 Oct 2015 10:36:20 +0000 (18:36 +0800)]
bug 14844: Query Pool issues (WIP)

We did not and still do not honor the stride nor flags.

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

8 years agovulkan.py: use generated "core" API
Chia-I Wu [Mon, 26 Oct 2015 10:50:46 +0000 (18:50 +0800)]
vulkan.py: use generated "core" API

The parsed vkCmdSetBlendConstants prototype makes a difference to vktrace.
But vktrace should handle it just fine.

8 years agovulkan.py: fix vulkan.h parsing
Chia-I Wu [Mon, 26 Oct 2015 10:48:24 +0000 (18:48 +0800)]
vulkan.py: fix vulkan.h parsing

Ignore PFN_vkVoidFunction typedef.  Fix layer dispatch table output.

8 years agolayers: Fix MemTracker uninitialized variables
Mark Lobodzinski [Thu, 29 Oct 2015 21:45:27 +0000 (15:45 -0600)]
layers: Fix MemTracker uninitialized variables

Caused issues in SDK tests on Windows

8 years agodemos: Properly destroy command pool in cube demo
Mark Lobodzinski [Thu, 29 Oct 2015 20:23:47 +0000 (14:23 -0600)]
demos: Properly destroy command pool in cube demo

8 years agolayers: Add DestroyImage to image layer's device GPA table
Mark Lobodzinski [Thu, 29 Oct 2015 18:58:33 +0000 (12:58 -0600)]
layers: Add DestroyImage to image layer's device GPA table

8 years agoloader: Update Linux and Windows ICD/layer discover documentation
jon [Thu, 29 Oct 2015 21:51:28 +0000 (15:51 -0600)]
loader: Update Linux and Windows ICD/layer discover documentation

8 years agoloader: Update linux documentation on where ICD lives.
jon [Thu, 29 Oct 2015 21:17:52 +0000 (15:17 -0600)]
loader: Update linux documentation on where ICD lives.

8 years agoloader: Move utility function so it is found on both Linux and Windows
jon [Thu, 29 Oct 2015 20:57:03 +0000 (14:57 -0600)]
loader: Move utility function so it is found on both Linux and Windows

8 years agoloader: set DEFAULT_VK_{DRIVER,LAYER}S_PATH to "" on Linux
Daniel Dadap [Wed, 30 Sep 2015 17:09:49 +0000 (12:09 -0500)]
loader: set DEFAULT_VK_{DRIVER,LAYER}S_PATH to "" on Linux

When loader_get_fullpath() gets an empty string as the 'dir' parameter,
it immediately writes out the original, unexpanded filename. Setting
the default drivers and layers paths to an empty string on Linux will
allow the unmodified filenames to be passed to dlopen(3) without having
to maintain a separate code path for Windows.

Now that there is no longer a default path for drivers or layers on
Linux, ${CMAKE_INSTALL_LIBDIR} no longer needs to be baked into the
loader binary. Note that any ICDs or layers that are currently getting
installed to the previous default paths (e.g. /usr/lib/vulkan/icd or
/usr/lib/vulkanlayer) will not be discoverable when specified as plain
filenames, unless these directories happen to be configured in the
loader's search path on the system in question.

8 years agoloader: add helper for combining paths
Daniel Dadap [Wed, 30 Sep 2015 16:50:51 +0000 (11:50 -0500)]
loader: add helper for combining paths

Add a helper function to combine an arbitrary number of path elements,
separating them with the platform-specific directory separator, and
use it in places where path combining is currently achieved through
direct string manipulation.

As an additional cleanup, update loader_get_fullpath() to duplicate
the search path string internally, rather than relying on the caller
to do so. Since loader_get_fullpath() and loader_expand_path() no
longer modify input strings, and loader_expand_path() no longer
requires that the caller append the DIRECTORY_SYMBOL ahead of time,
acrobatics to duplicate strings to prevent modification and/or to add
directory separators are no longer necessary.

This change will result a behavior change on Windows: the existing
logic for loading an ICD that is specified as a bare filename, and
not as an absolute or relative path, is to search for a driver with
the given ICD name in the DEFAULT_VK_DRIVERS_PATH search path on
Linux, and to use the given ICD name as-is on Windows. This could
lead to DLL injection attack on Windows. Merge the Linux/Windows
behavior to limit the search for ICD filenames to the default search
path on Windows as well, which is also more consistent with the
behavior described in the loader spec.

Conflicts:
loader/loader.c

8 years agodemos: fclose in cube and tri
Mike Stroyan [Wed, 28 Oct 2015 17:15:46 +0000 (11:15 -0600)]
demos: fclose in cube and tri

Balance every fopen with fclose.

8 years agodemos: windows fixes for cube and tri resize
Mike Stroyan [Wed, 28 Oct 2015 15:46:57 +0000 (09:46 -0600)]
demos: windows fixes for cube and tri resize

Defer resize until after first prepare.
Record new window size from WM_SIZE.
Leave demo->swapchain.handle valid to pass to CreateSwapchainKHR.

8 years agoLayers: MemTracker check vkCmdCopyQueryPoolResults
Mike Stroyan [Thu, 15 Oct 2015 14:42:32 +0000 (08:42 -0600)]
Layers: MemTracker check vkCmdCopyQueryPoolResults

MemTracker check of buffer memory and usage flags in vkCmdCopyQueryPoolResults

8 years agodemos: add occlusion features to vulkaninfo
Mike Stroyan [Thu, 15 Oct 2015 14:30:18 +0000 (08:30 -0600)]
demos: add occlusion features to vulkaninfo

Add reporting of VkPhysicalDeviceFeatures occlusionQueryNonConservative to vulkaninfo.

8 years agouse conditional compilation based on _WIN32 instead of WIN32 and __linux__
Johannes van Waveren [Wed, 28 Oct 2015 16:45:00 +0000 (11:45 -0500)]
use conditional compilation based on _WIN32 instead of WIN32 and __linux__

8 years agodemos/cube: Provide a non-null VertexInputStateCreateInfo
Jason Ekstrand [Fri, 16 Oct 2015 00:15:25 +0000 (17:15 -0700)]
demos/cube: Provide a non-null VertexInputStateCreateInfo

In the spec for VkGraphicsPipelineCreateInfo, some structs are explicitly
listed as being able to be NULL if they are not used.
VertexInputStateCreateInfo is not one of them.

8 years agodemos/cube: Explicitly specify std140 layout on UBOs
Jason Ekstrand [Fri, 16 Oct 2015 00:16:32 +0000 (17:16 -0700)]
demos/cube: Explicitly specify std140 layout on UBOs

Without this, glslang won't actually provide the offsets and strides
required by SPIR-V.

8 years agolayers: Validate buffer view usage flags
Mark Lobodzinski [Tue, 27 Oct 2015 15:53:00 +0000 (09:53 -0600)]
layers: Validate buffer view usage flags

8 years agolayers: Validate number of layers in subresource.
Jeremy Hayes [Wed, 28 Oct 2015 19:01:39 +0000 (13:01 -0600)]
layers: Validate number of layers in subresource.

Reviewed by Tobin.

8 years agotests: Added CopyDescriptorUpdateErrors test to verify 3 errors during descriptorset...
Tobin Ehlis [Tue, 27 Oct 2015 22:35:27 +0000 (16:35 -0600)]
tests: Added CopyDescriptorUpdateErrors test to verify 3 errors during descriptorset copy updates

8 years agolayers: Add DrawState validation for copy descriptor updates
Tobin Ehlis [Tue, 27 Oct 2015 21:43:38 +0000 (15:43 -0600)]
layers: Add DrawState validation for copy descriptor updates

8 years agolayers: Simplify descriptor validation in DrawState
Tobin Ehlis [Tue, 27 Oct 2015 18:54:50 +0000 (12:54 -0600)]
layers: Simplify descriptor validation in DrawState

Many descriptor validation helper functions were returning skipCall based on the potential for a bad update structure type. However, at the beginning of update validation, we validate that the update type is ok. Therefore, the other helper functions don't need to continually repeat this check, and can be simplified to return relevant values directly.

8 years agolayers: Improve DrawState write descriptor update
Tobin Ehlis [Tue, 27 Oct 2015 18:25:35 +0000 (12:25 -0600)]
layers: Improve DrawState write descriptor update

Validate that stageFlags are the same for a single write update.
Validate that all sampler updates from a single write update are either immutable or non-immutable.
Refactor update contents check to have a loop per switch case instead of switching for each loop iteration.
Added two new validation errors:

DRAWSTATE_DESCRIPTOR_STAGEFLAGS_MISMATCH
DRAWSTATE_INCONSISTENT_IMMUTABLE_SAMPLER_UPDATE

8 years agolayers: Remove DrawState g_lastBoundDescriptorSet variable - it's no longer used
Tobin Ehlis [Tue, 27 Oct 2015 16:10:54 +0000 (10:10 -0600)]
layers: Remove DrawState g_lastBoundDescriptorSet variable - it's no longer used

8 years agodemos: Clean up tri depth
Cody Northrop [Tue, 13 Oct 2015 17:28:23 +0000 (11:28 -0600)]
demos: Clean up tri depth

We animated tri to make it clear it was rendering correctly based
on ISV feedback. It looks better, but still questionable.

This change makes the depth cutoff a straight line by giving the top
two vertices the same depth.

8 years agodraw_state: Fix enum in validate_draw_state_flags
Cody Northrop [Tue, 27 Oct 2015 19:15:41 +0000 (13:15 -0600)]
draw_state: Fix enum in validate_draw_state_flags

DRAWSTATE_STENCIL_NOT_BOUND -> DRAWSTATE_SCISSOR_NOT_BOUND

8 years agowindows: Fix vector resizing in draw_state
Cody Northrop [Mon, 26 Oct 2015 20:07:35 +0000 (14:07 -0600)]
windows: Fix vector resizing in draw_state

8 years agodemos: print new device limits in vulkaninfo
Tony Barbour [Tue, 27 Oct 2015 17:01:20 +0000 (11:01 -0600)]
demos: print new device limits in vulkaninfo

8 years agomisc: Remove dynamic array definititions
Courtney Goeltzenleuchter [Tue, 27 Oct 2015 17:32:31 +0000 (11:32 -0600)]
misc: Remove dynamic array definititions

Windows doesn't like dynamicly sized arrays. Replace
with new'd array of objects or object pointers instead.

8 years agomisc: Add intrin.h to support ffs utility
Courtney Goeltzenleuchter [Tue, 27 Oct 2015 17:23:21 +0000 (11:23 -0600)]
misc: Add intrin.h to support ffs utility

8 years agomisc: Windows does not like named structure initialization
Courtney Goeltzenleuchter [Tue, 27 Oct 2015 17:22:14 +0000 (11:22 -0600)]
misc: Windows does not like named structure initialization

8 years agoBug 14621: Change vkGet* functions to not return VkResult
Courtney Goeltzenleuchter [Tue, 27 Oct 2015 17:19:02 +0000 (11:19 -0600)]
Bug 14621: Change vkGet* functions to not return VkResult

Missed one function in prior patch.

8 years agotri/cube: Adjust demo_resize() to API changes.
Ian Elliott [Tue, 27 Oct 2015 17:06:33 +0000 (11:06 -0600)]
tri/cube: Adjust demo_resize() to API changes.

8 years agotri/cube: Add WM_SIZE to Win32 event handler to resize a window.
Ian Elliott [Wed, 21 Oct 2015 21:14:07 +0000 (15:14 -0600)]
tri/cube: Add WM_SIZE to Win32 event handler to resize a window.

8 years agocube: Removed some #if 0's that had bee left in the code.
Ian Elliott [Wed, 21 Oct 2015 19:50:31 +0000 (13:50 -0600)]
cube: Removed some #if 0's that had bee left in the code.

8 years agotri/cube: Handle window resizes (from WSI or XCB).
Ian Elliott [Sat, 17 Oct 2015 00:02:43 +0000 (18:02 -0600)]
tri/cube: Handle window resizes (from WSI or XCB).

If either vkAcquireNextImageKHR() or vkQueuePresentKHR() return
VK_ERROR_OUT_OF_DATE, a new demo_resize() function is called, that replaces the
current state, command buffers, swapchain, etc, with new ones that reflect the
new size of the window.  As part of this, the app picks up the window size from
vkGetSurfacePropertiesKHR().

The same occurs if the application receives an XCB_CONFIGURE_NOTIFY event, with
a changed window size.