summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-11 17:22:44 -0800
committerJason Ekstrand <[email protected]>2016-03-11 17:22:46 -0800
commit753ebe4457444e13124eba1e2e2e07edc9ab3c09 (patch)
tree820441a1871a5e9c97f3e6d56828d9daeae6f1a6 /src/intel/vulkan
parent9bff5266beb9bacf86b199ca5ecaafaac8fae948 (diff)
anv/x11: Reset the SHM fence before presenting the pixmap
This seems to fix the flicker issue that I was seeing with dota2
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_wsi_x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c
index f9f72be154b..9ef02961a93 100644
--- a/src/intel/vulkan/anv_wsi_x11.c
+++ b/src/intel/vulkan/anv_wsi_x11.c
@@ -548,6 +548,8 @@ x11_queue_present(struct anv_swapchain *anv_chain,
options |= XCB_PRESENT_OPTION_ASYNC;
+ xshmfence_reset(image->shm_fence);
+
xcb_void_cookie_t cookie =
xcb_present_pixmap(chain->conn,
chain->window,