<div dir="ltr"><div>Sure.  I'm not 100% clear on what async means, but I think I have the general idea.<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 25, 2016 at 8:13 PM, Dave Airlie <span dir="ltr"><<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
We shouldn't be using ASYNC here, that would be used<br>
for immediate mode, so let's implement that.<br>
<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
---<br>
 src/vulkan/wsi/wsi_common_x11.<wbr>c | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/vulkan/wsi/wsi_common_<wbr>x11.c b/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
index bae1d18..77aea1d 100644<br>
--- a/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
+++ b/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
@@ -141,6 +141,7 @@ static const VkSurfaceFormatKHR formats[] = {<br>
 };<br>
<br>
 static const VkPresentModeKHR present_modes[] = {<br>
+   VK_PRESENT_MODE_IMMEDIATE_KHR,<br>
    VK_PRESENT_MODE_MAILBOX_KHR,<br>
 };<br>
<br>
@@ -642,7 +643,8 @@ x11_queue_present(struct wsi_swapchain *anv_chain,<br>
    int64_t divisor = 0;<br>
    int64_t remainder = 0;<br>
<br>
-   options |= XCB_PRESENT_OPTION_ASYNC;<br>
+   if (chain->base.present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR)<br>
+      options |= XCB_PRESENT_OPTION_ASYNC;<br>
<br>
    xshmfence_reset(image->shm_<wbr>fence);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.5.5<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>