Fix validation error given no async compute queue#29
Open
PanGao-h wants to merge 2 commits intoGPUOpen-LibrariesAndSDKs:masterfrom
Open
Fix validation error given no async compute queue#29PanGao-h wants to merge 2 commits intoGPUOpen-LibrariesAndSDKs:masterfrom
PanGao-h wants to merge 2 commits intoGPUOpen-LibrariesAndSDKs:masterfrom
Conversation
On an old integrated graphic card, the sample crashes when switching scenes. There's a validation error and perhaps some resource handling inside driver that cannot transfer resources properly when src/dst queue family are the same. > Validation Error: [ VUID-VkDeviceCreateInfo-queueFamilyIndex-02802 ] Object 0: handle = 0x1275c88d200, type = VK_OBJECT_TYPE_PHYSICAL_DEVICE; | MessageID = 0x29498778 | CreateDevice(): pCreateInfo->pQueueCreateInfos[1].queueFamilyIndex (=0) is not unique and was also used in pCreateInfo->pQueueCreateInfos[0]. The Vulkan spec states: The queueFamilyIndex member of each element of pQueueCreateInfos must be unique within pQueueCreateInfos, except that two members can share the same queueFamilyIndex if one describes protected-capable queues and one describes queues that are not protected-capable (https://vulkan.lunarg.com/doc/view/1.3.216.0/windows/1.3-extensions/vkspec.html#VUID-VkDeviceCreateInfo-queueFamilyIndex-02802)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On an old integrated graphic card, the sample crashes when switching scenes. It's rooted in driver implementation and resource translation between same queue family may not work properly. The crash disappears after the fix.
There's a validation error and perhaps some resource handling inside driver that cannot transfer resources properly when src/dst queue family are the same.