summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/utils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-10-07 21:36:16 +0200
committerMartin Herkt <652892+lachs0r@users.noreply.github.com>2017-12-25 00:47:53 +0100
commit286d421666fd812dc4d01e580204cf63b49fec45 (patch)
treeb5fb0257aca4f56a62c0e9ae4211a95c01163214 /video/out/vulkan/utils.h
parenta6aab5dfd6d94be4e2a07c2bf6044f621b28e631 (diff)
downloadmpv-286d421666fd812dc4d01e580204cf63b49fec45.tar.bz2
mpv-286d421666fd812dc4d01e580204cf63b49fec45.tar.xz
vo_gpu: vulkan: allow disabling async tf/comp
Async compute in particular seems to cause problems on some drivers, and even when supprted the benefits are not that massive from the tests I have seen, so it's probably safe to keep off by default. Async transfer on the other hand seems to work better and offers a more substantial improvement, so it's kept on.
Diffstat (limited to 'video/out/vulkan/utils.h')
-rw-r--r--video/out/vulkan/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vulkan/utils.h b/video/out/vulkan/utils.h
index de3a757be3..2962313257 100644
--- a/video/out/vulkan/utils.h
+++ b/video/out/vulkan/utils.h
@@ -55,6 +55,8 @@ bool mpvk_pick_surface_format(struct mpvk_ctx *vk);
struct mpvk_device_opts {
int queue_count; // number of queues to use
+ int async_transfer; // enable async transfer
+ int async_compute; // enable async compute
};
// Create a logical device and initialize the vk_cmdpools