{"action":"opened","issue":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1079","repository_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1079/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1079/comments","events_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1079/events","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1079","id":184463809,"number":1079,"title":"Transitioning a depth- or stencil-only image with a vkCmdPipelineBarrier() calls confuse core validation layer","user":{"login":"DominikWitczakAMD","id":17761066,"avatar_url":"https://avatars.githubusercontent.com/u/17761066?v=3","gravatar_id":"","url":"https://api.github.com/users/DominikWitczakAMD","html_url":"https://github.com/DominikWitczakAMD","followers_url":"https://api.github.com/users/DominikWitczakAMD/followers","following_url":"https://api.github.com/users/DominikWitczakAMD/following{/other_user}","gists_url":"https://api.github.com/users/DominikWitczakAMD/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikWitczakAMD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikWitczakAMD/subscriptions","organizations_url":"https://api.github.com/users/DominikWitczakAMD/orgs","repos_url":"https://api.github.com/users/DominikWitczakAMD/repos","events_url":"https://api.github.com/users/DominikWitczakAMD/events{/privacy}","received_events_url":"https://api.github.com/users/DominikWitczakAMD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T11:30:43Z","updated_at":"2016-10-21T11:30:43Z","closed_at":null,"body":"Say my image X uses a DEPTH16_UNORM format and my command buffer wants to transition the image to layout 1. As per the following spec language for valid usage of VkImageMemoryBarrier:\r\n\r\n```\r\nIf image has a depth/stencil format with both depth and stencil components, then aspectMask member of subresourceRange must include both VK_IMAGE_ASPECT_DEPTH_BIT and VK_IMAGE_ASPECT_STENCIL_BIT\r\n```\r\n\r\nI specify both DS aspects when defining the subresource range. This, however, has a detrimental effect on the validation layer which outputs an error saying:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/17761066/19597028/4faa0a44-9792-11e6-9be1-d54757ecdc7b.png)\r\n\r\nThis is with the latest build of the layers, as obtained from the repo.\r\n\r\nI can provide a repro for this issue if necessary."}}
{"actor":{"display_login":"DominikWitczakAMD"}}