diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2017-10-22 00:10:09 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2017-11-07 20:27:13 +1100 |
commit | 41dff03f8d856273e4a87293f87887d9940009fa (patch) | |
tree | 586de53d199dd6021987aed01865974b9d824562 /video/out/vulkan/ra_vk.c | |
parent | 793b43020c784047b60a7b9f3461ff3b9fe90d02 (diff) | |
download | mpv-41dff03f8d856273e4a87293f87887d9940009fa.tar.bz2 mpv-41dff03f8d856273e4a87293f87887d9940009fa.tar.xz |
vo_gpu: add namespace query mechanism
Backported from @haasn's change to libplacebo. More flexible than the
previous "shared || non-shared" distinction. The extra flexibility is
needed for Direct3D 11, but it also doesn't hurt code-wise.
Diffstat (limited to 'video/out/vulkan/ra_vk.c')
-rw-r--r-- | video/out/vulkan/ra_vk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/vulkan/ra_vk.c b/video/out/vulkan/ra_vk.c index 9f5581d5c1..a39261f049 100644 --- a/video/out/vulkan/ra_vk.c +++ b/video/out/vulkan/ra_vk.c @@ -1585,6 +1585,11 @@ static void vk_clear(struct ra *ra, struct ra_tex *tex, float color[4], } } +static int vk_desc_namespace(enum ra_vartype type) +{ + return 0; +} + #define VK_QUERY_POOL_SIZE (MPVK_MAX_STREAMING_DEPTH * 4) struct vk_timer { @@ -1688,6 +1693,7 @@ static struct ra_fns ra_fns_vk = { .blit = vk_blit, .uniform_layout = std140_layout, .push_constant_layout = std430_layout, + .desc_namespace = vk_desc_namespace, .renderpass_create = vk_renderpass_create, .renderpass_destroy = vk_renderpass_destroy_lazy, .renderpass_run = vk_renderpass_run, |