From 599724850549221abc5a23b3b10d2b327e3ab31a Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 4 Feb 2018 23:32:31 +0100 Subject: vo_gpu: vulkan: correctly enable textureGatherOffset This also requires a vulkan feature / SPIR-V capability to function --- video/out/vulkan/ra_vk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/out/vulkan/ra_vk.c') diff --git a/video/out/vulkan/ra_vk.c b/video/out/vulkan/ra_vk.c index a4b6f3e6ad..5e6fae74ed 100644 --- a/video/out/vulkan/ra_vk.c +++ b/video/out/vulkan/ra_vk.c @@ -222,8 +222,8 @@ struct ra *ra_create_vk(struct mpvk_ctx *vk, struct mp_log *log) // UBO support is required ra->caps |= RA_CAP_BUF_RO | RA_CAP_FRAGCOORD; - // textureGather is only supported in GLSL 400+ - if (ra->glsl_version >= 400) + // textureGather requires the ImageGatherExtended capability + if (vk->features.shaderImageGatherExtended) ra->caps |= RA_CAP_GATHER; // Try creating a shader storage buffer -- cgit v1.2.3