Bug 110655

Summary: VK_LAYER_MESA_OVERLAY_CONFIG=draw,fps renders sporadically
Product: Mesa Reporter: Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b>
Component: Drivers/Vulkan/CommonAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: airlied, chadversary, jason
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jan Ziak (http://atom-symbol.net) 2019-05-09 13:53:55 UTC
Hello.

I am encountering issues with the Vulkan overlay with a Radeon card. With some config options the overlay renders each frame, while with other config options it renders only sometimes/sporadically.

A command-line where it renders each frame:

$ VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay \
VK_LAYER_MESA_OVERLAY_CONFIG=submit,draw,pipeline_graphics \
~/apps/vulkan-demos/bin/triangle

A command-line where it renders sporadically:

$ VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay \
VK_LAYER_MESA_OVERLAY_CONFIG=draw,fps \
~/apps/vulkan-demos/bin/triangle

$ glversion 
4.5 (Core Profile) Mesa 19.2.0-devel (git-8b3baa2744)
AMD Radeon (TM) RX 470 Graphics (POLARIS10, DRM 3.30.0, 5.1.0, LLVM 8.0.0)

vulkan-demos: https://github.com/SaschaWillems/Vulkan
Comment 1 Lionel Landwerlin 2019-05-09 13:58:55 UTC
Thanks, looks like it's incorrectly reusing semaphores.
Will fix.
Comment 2 Lionel Landwerlin 2019-05-09 17:02:50 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=110655
Comment 3 Lionel Landwerlin 2019-05-09 17:03:17 UTC
(In reply to Lionel Landwerlin from comment #2)
> https://bugs.freedesktop.org/show_bug.cgi?id=110655

Derp... https://gitlab.freedesktop.org/mesa/mesa/merge_requests/853/
Comment 4 Jan Ziak (http://atom-symbol.net) 2019-05-09 17:34:53 UTC
(In reply to Lionel Landwerlin from comment #3)
> https://gitlab.freedesktop.org/mesa/mesa/merge_requests/853/

I confirm that the patch resolves the issue. Thanks.
Comment 5 Juan A. Suarez 2019-06-11 16:02:15 UTC
Mesa 19.1.0 has been released, which includes the fixes for this issue.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.