radv/wsi: fix app that acquire multiple images up front
authorDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 02:38:49 +0000 (12:38 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 18:45:11 +0000 (04:45 +1000)
commit8bdac874e667179bd2682f0111cd7db58b858e5b
treeb7d7a3d64efe96b73412e480f88f6b091a8ec862
parentdfe74fd1a9e16647e0f2673d3676264f2a588a95
radv/wsi: fix app that acquire multiple images up front

dota2 does multiple acquires followed by multiple queues,
this bug manifested itself as a hang in the xshmfence code
randomly when dota2 was doing it's menus. It also occured
when running dota2 under phoronix-test-suite.

The fix is once the image is acquired to mark it busy then
so nobody else can acquire. We have to trust vulkan apps
that they will eventually submit it.

Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_wsi_wayland.c
src/amd/vulkan/radv_wsi_x11.c