Closed tmvkrpxl0 closed 7 months ago
Output of glxinfo if this helps:
$ glxinfo | grep -iE 'vendor:|device:|version:'
GLX version: 1.4
Vendor: AMD (0x1002)
Device: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.6.0-rc4-kindergarten+) (0x1636)
Version: 23.2.0
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Are you sure this isn't a bug in the driver or validation layers? I feel like someone would have caught something like this a long while ago. I suggest updating your Linux to the latest release version, as well as mesa and the validation layers, and trying again. @Rua can your Radeon card reproduce this?
I recently had other validation error so installed LunarG SDK(2 days ago). So I think It's latest?
I specifically saw that you're on a release candidate version of the kernel, which is why I suggested to update it to a release version. And please try updating mesa as well if that doesn't work.
Yeah changing the kernel version worked.
Template
If you dont understand something just leave it. If you can provide more detailed information than the template allows for, please ignore the template and present all of your findings.
main.rs
file that demonstrates the issue: TODOIssue
I'm unable to present swapchain with "then_swapchain_present" because it says fence is already in use.
Error Log
``` VUID-vkQueueSubmit-fence-00064(ERROR / SPEC): msgNum: -1082734195 - Validation Error: [ VUID-vkQueueSubmit-fence-00064 ] Object 0: handle = 0x55fb7d466d50, type = VK_OBJECT_TYPE_QUEUE; Object 1: handle = 0x9fde6b0000000014, type = VK_OBJECT_TYPE_FENCE; | MessageID = 0xbf76c98d | vkQueueSubmit(): (VkFence 0x9fde6b0000000014[]) is already in use by another submission. The Vulkan spec states: If fence is not VK_NULL_HANDLE, fence must not be associated with any other queue command that has not yet completed execution on that queue (https://vulkan.lunarg.com/doc/view/1.3.275.0/linux/1.3-extensions/vkspec.html#VUID-vkQueueSubmit-fence-00064) Objects: 2 [0] 0x55fb7d466d50, type: 4, name: NULL [1] 0x9fde6b0000000014, type: 7, name: NULL VUID-VkPresentInfoKHR-pImageIndices-01430(ERROR / SPEC): msgNum: 1219306694 - Validation Error: [ VUID-VkPresentInfoKHR-pImageIndices-01430 ] Object 0: handle = 0xfab64d0000000002, type = VK_OBJECT_TYPE_SWAPCHAIN_KHR; | MessageID = 0x48ad24c6 | vkQueuePresentKHR(): pPresentInfo->pSwapchains[0] image at index 0 was not acquired from the swapchain. The Vulkan spec states: Each element of pImageIndices must be the index of a presentable image acquired from the swapchain specified by the corresponding element of the pSwapchains array, and the presented image subresource must be in the VK_IMAGE_LAYOUT_PRESENT_SRC_KHR or VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR layout at the time the operation is executed on a VkDevice (https://vulkan.lunarg.com/doc/view/1.3.275.0/linux/1.3-extensions/vkspec.html#VUID-VkPresentInfoKHR-pImageIndices-01430) Objects: 1 [0] 0xfab64d0000000002, type: 1000001000, name: NULL thread 'main' panicked at game/src/main.rs:698:25: ```What bugs me is that this happens on the first frame. As a test I tried triangle example updated to newer version of both winit and vulkan but the issue is exactly the same: https://github.com/vulkano-rs/vulkano/blob/v0.34.0/examples/src/bin/triangle.rs
Updated version
```rs // Copyright (c) 2016 The vulkano developers // Licensed under the Apache License, Version 2.0 //