Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan Flickering in Intel GPU #2944

Open
Joilnen opened this issue Sep 14, 2023 · 8 comments
Open

Vulkan Flickering in Intel GPU #2944

Joilnen opened this issue Sep 14, 2023 · 8 comments

Comments

@Joilnen
Copy link
Contributor

Joilnen commented Sep 14, 2023

compiled in intel arch linux, ogre commit 3f0a656
see the video from screen capture

output1.mp4
@paroj
Copy link
Member

paroj commented Sep 14, 2023

try setting this to 1

#define USE_VALIDATION_LAYERS 0

there should be some output of what is going wrong

@Joilnen
Copy link
Contributor Author

Joilnen commented Sep 14, 2023

I got this with that set on 1, running the same sample in the video

Texture 'sdk_button_over.png': Loading 1 faces(PF_A8B8G8R8,128x32x1) with 7 generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x32x1.
Texture 'sdk_button_down.png': Loading 1 faces(PF_A8B8G8R8,128x32x1) with 7 generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x32x1.
Texture 'rockwall.tga': Loading 1 faces(PF_B8G8R8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_X8B8G8R8,256x256x1.
Mesh: Loading Sinbad.mesh.
Skeleton: Loading Sinbad.skeleton
Texture 'sinbad_body.tga': Loading 1 faces(PF_B8G8R8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8B8G8R8,512x512x1.
Texture 'sinbad_clothes.tga': Loading 1 faces(PF_B8G8R8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8B8G8R8,512x512x1.
Texture 'sinbad_sword.tga': Loading 1 faces(PF_B8G8R8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_X8B8G8R8,256x256x1.
Warning: the mesh 'Sinbad.mesh' includes vertices with more than 4 bone assignments. The lowest weighted assignments beyond this limit have been removed, so your animation may look slightly different. To eliminate this, reduce the number of bone assignments per vertex on your mesh to 4.
Creating swords
Mesh: Loading Sword.mesh.
Creating the chains
Texture 'ribbonband.png': Loading 1 faces(PF_B8G8R8,128x1x1) with 7 generated mipmaps from Image. Internal format is PF_X8B8G8R8,128x1x1.
ERROR: [Validation] Code 0 : Validation Error: [ VUID-VkSubpassDependency-dstAccessMask-00869 ] | MessageID = 0x8ab30c42 | vkCreateRenderPass(): pDependencies[0].dstAccessMask bit VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT is not supported by stage mask (VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT). The Vulkan spec states: Any access flag included in dstAccessMask must be supported by one of the pipeline stages in dstStageMask, as specified in the table of supported access types (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkSubpassDependency-dstAccessMask-00869)
ERROR: [Validation] Code 0 : Validation Error: [ VUID-VkSubpassDependency-srcAccessMask-00868 ] | MessageID = 0x2ef6351e | vkCreateRenderPass(): pDependencies[1].srcAccessMask bit VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT is not supported by stage mask (VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT). The Vulkan spec states: Any access flag included in srcAccessMask must be supported by one of the pipeline stages in srcStageMask, as specified in the table of supported access types (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkSubpassDependency-srcAccessMask-00868)
PERFORMANCE WARNING: [Validation] Code 0 : Validation Performance Warning: [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object 0: handle = 0x19a1f80000001478, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0x609a13b | vkCreateGraphicsPipelines(): pCreateInfos[0] Vertex attribute at location 8 not consumed by vertex shader
PERFORMANCE WARNING: [Validation] Code 0 : Validation Performance Warning: [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object 0: handle = 0x19a1f80000001478, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0x609a13b | vkCreateGraphicsPipelines(): pCreateInfos[0] Vertex attribute at location 8 not consumed by vertex shader

@paroj
Copy link
Member

paroj commented Sep 15, 2023

the error seem to be unrelated to the visual artifact. My guess would be that this is something with how we do HBL_DISCARD on Vulkan.

However all works for me with Mesa/ amdgpu. What Mesa version are you using?

@paroj
Copy link
Member

paroj commented Sep 17, 2023

to further help debug this, you could try getting a https://renderdoc.org/ capture of a broken frame.

@Joilnen
Copy link
Contributor Author

Joilnen commented Sep 18, 2023

mesa 1:23.1
will try renderdoc and report here

@Joilnen
Copy link
Contributor Author

Joilnen commented Sep 25, 2023

Screen captures made in renderdoc
caps.zip

@paroj
Copy link
Member

paroj commented Sep 26, 2023

will have to reproduce this locally at some point, I guess..

@paroj
Copy link
Member

paroj commented Oct 18, 2023

I have just updated the ogre snap https://snapcraft.io/ogre such that it works with mesa vulkan drivers. could you check whether it produces the same errors for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants