summaryrefslogtreecommitdiffstats
path: root/src/vulkan/wsi/Makefile.sources
diff options
context:
space:
mode:
authorKevin Strasser <[email protected]>2016-11-02 18:18:44 -0700
committerJason Ekstrand <[email protected]>2016-11-10 22:40:44 -0800
commit932bb3f0ddf22a9cbdf6d45089547765027b4397 (patch)
tree978f5b850f8987a3c4ddd9dca658d0fed41b237b /src/vulkan/wsi/Makefile.sources
parent3ca600fe71ee505d6e6a4cea6a7a3729168ff78f (diff)
vulkan/wsi: Add a thread-safe queue implementation
In order to support FIFO mode without blocking the application on calls to vkQueuePresentKHR it is necessary to enqueue the request and defer calling the server until the next vblank period. The xcb present api doesn't offer a way to register a callback, so we will have to spawn a worker thread that will wait for a request to be added to the queue, call to the server, and then make the image available for reuse. This commit introduces the queue data structure needed to implement this. Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/Makefile.sources')
-rw-r--r--src/vulkan/wsi/Makefile.sources3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/wsi/Makefile.sources b/src/vulkan/wsi/Makefile.sources
index 3139e6dbb7e..50660f9a541 100644
--- a/src/vulkan/wsi/Makefile.sources
+++ b/src/vulkan/wsi/Makefile.sources
@@ -1,6 +1,7 @@
VULKAN_WSI_FILES := \
- wsi_common.h
+ wsi_common.h \
+ wsi_common_queue.h
VULKAN_WSI_WAYLAND_FILES := \
wsi_common_wayland.c \