{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319","repository_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319/comments","events_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319/events","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319","id":148035821,"number":319,"title":"vkCmdCopyQueryPoolResults executed from different command buffers","user":{"login":"ArkadiuszSarwa","id":18304613,"avatar_url":"https://avatars.githubusercontent.com/u/18304613?v=3","gravatar_id":"","url":"https://api.github.com/users/ArkadiuszSarwa","html_url":"https://github.com/ArkadiuszSarwa","followers_url":"https://api.github.com/users/ArkadiuszSarwa/followers","following_url":"https://api.github.com/users/ArkadiuszSarwa/following{/other_user}","gists_url":"https://api.github.com/users/ArkadiuszSarwa/gists{/gist_id}","starred_url":"https://api.github.com/users/ArkadiuszSarwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArkadiuszSarwa/subscriptions","organizations_url":"https://api.github.com/users/ArkadiuszSarwa/orgs","repos_url":"https://api.github.com/users/ArkadiuszSarwa/repos","events_url":"https://api.github.com/users/ArkadiuszSarwa/events{/privacy}","received_events_url":"https://api.github.com/users/ArkadiuszSarwa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":{"login":"lentinem","id":9709345,"avatar_url":"https://avatars.githubusercontent.com/u/9709345?v=3","gravatar_id":"","url":"https://api.github.com/users/lentinem","html_url":"https://github.com/lentinem","followers_url":"https://api.github.com/users/lentinem/followers","following_url":"https://api.github.com/users/lentinem/following{/other_user}","gists_url":"https://api.github.com/users/lentinem/gists{/gist_id}","starred_url":"https://api.github.com/users/lentinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lentinem/subscriptions","organizations_url":"https://api.github.com/users/lentinem/orgs","repos_url":"https://api.github.com/users/lentinem/repos","events_url":"https://api.github.com/users/lentinem/events{/privacy}","received_events_url":"https://api.github.com/users/lentinem/received_events","type":"User","site_admin":false},"assignees":[{"login":"lentinem","id":9709345,"avatar_url":"https://avatars.githubusercontent.com/u/9709345?v=3","gravatar_id":"","url":"https://api.github.com/users/lentinem","html_url":"https://github.com/lentinem","followers_url":"https://api.github.com/users/lentinem/followers","following_url":"https://api.github.com/users/lentinem/following{/other_user}","gists_url":"https://api.github.com/users/lentinem/gists{/gist_id}","starred_url":"https://api.github.com/users/lentinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lentinem/subscriptions","organizations_url":"https://api.github.com/users/lentinem/orgs","repos_url":"https://api.github.com/users/lentinem/repos","events_url":"https://api.github.com/users/lentinem/events{/privacy}","received_events_url":"https://api.github.com/users/lentinem/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/milestones/1","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/milestones/P1","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/milestones/1/labels","id":1616525,"number":1,"title":"P1","description":"","creator":{"login":"lentinem","id":9709345,"avatar_url":"https://avatars.githubusercontent.com/u/9709345?v=3","gravatar_id":"","url":"https://api.github.com/users/lentinem","html_url":"https://github.com/lentinem","followers_url":"https://api.github.com/users/lentinem/followers","following_url":"https://api.github.com/users/lentinem/following{/other_user}","gists_url":"https://api.github.com/users/lentinem/gists{/gist_id}","starred_url":"https://api.github.com/users/lentinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lentinem/subscriptions","organizations_url":"https://api.github.com/users/lentinem/orgs","repos_url":"https://api.github.com/users/lentinem/repos","events_url":"https://api.github.com/users/lentinem/events{/privacy}","received_events_url":"https://api.github.com/users/lentinem/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":151,"state":"open","created_at":"2016-03-01T21:57:16Z","updated_at":"2016-08-09T16:42:28Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-04-13T11:54:00Z","updated_at":"2016-08-10T14:27:38Z","closed_at":"2016-06-22T17:43:16Z","body":"When function vkCmdCopyQueryPoolResults is executed from diffrent command buffer (VkCommandBuffer) layers generate the error:\r\n\r\n> DS(ERROR): object: 0 type: 0 location: 8634 msgCode: 14: Requesting a copy from query to buffer with invalid query: queryPool 80491216, index 0\r\n> DS(ERROR): object: 0 type: 0 location: 8634 msgCode: 14: Requesting a copy from query to buffer with invalid query: queryPool 80491216, index 1\r\n> DS(ERROR): object: 0 type: 0 location: 8634 msgCode: 14: Requesting a copy from query to buffer with invalid query: queryPool 80491216, index 2\r\n\r\nBelow the example of code, which should reproduce this situation.\r\n\r\n```\r\n....\r\n\tconst vk::VkQueryPoolCreateInfo queryPoolCreateInfo\t=\r\n\t{\r\n\t\tvk::VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO,\r\n\t\tNULL,\r\n\t\t0u,\r\n\t\tvk::VK_QUERY_TYPE_OCCLUSION,\r\n\t\t3,\r\n\t\t0\r\n\t};\r\n\r\n\tVK_CHECK(vk.createQueryPool(device, &queryPoolCreateInfo, /*pAllocator*/ DE_NULL, &m_queryPool));\r\n...\r\n//CommandBuffer 1\r\n\tvk.cmdBeginQuery(*cmdBuffer_1, m_queryPool, 0, 0);\r\n\t...\r\n\tvk.cmdEndQuery(*cmdBuffer_1, m_queryPool,\t0);\r\n\t\r\n\tvk.cmdBeginQuery(*cmdBuffer_1, m_queryPool, 1, 0);\r\n\t...\r\n\tvk.cmdEndQuery(*cmdBuffer_1, m_queryPool, 1);\r\n\t\r\n\tvk.cmdBeginQuery(*cmdBuffer_1, m_queryPool, 1, 0);\r\n\t...\r\n\tvk.cmdEndQuery(*cmdBuffer_1, m_queryPool, 1);\r\n...\r\n//CommandBuffer 2\r\n\tvk.beginCommandBuffer(cmdBuffer_2, &beginInfo);\r\n\tvk.cmdCopyQueryPoolResults(cmdBuffer_2, m_queryPool, 0, 3, object, /*dstOffset*/ 0, ResultsStride, 0);\r\n\tvk.endCommandBuffer(cmdBuffer_2);\r\n```\r\n\t\r\nThis error should not be displayed because in the specification there is no restriction about using two different CommandBuffer, layers should keep track of Query status between two different command buffers."},"comment":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/comments/238883769","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319#issuecomment-238883769","issue_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/319","id":238883769,"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},"created_at":"2016-08-10T14:27:38Z","updated_at":"2016-08-10T14:27:38Z","body":"A \"tad\" late, but yeah, I can confirm the fix does exactly what was needed. Thanks!"}}
{"actor":{"display_login":"DominikWitczakAMD"}}