summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-04-20 01:50:24 +0200
committerGitHub <noreply@github.com>2023-04-20 01:50:24 +0200
commit0cfeb2e8d7fe98a11d5ab6097e35252981d70600 (patch)
treee6a306b92a1d4ac548c573c1bd998a0667b3bdec /src/video_core/vulkan_common
parentMerge pull request #10053 from german77/nfp_full (diff)
parentvulkan: use plain fences when timeline semaphores are not available (diff)
downloadyuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.tar
yuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.tar.gz
yuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.tar.bz2
yuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.tar.lz
yuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.tar.xz
yuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.tar.zst
yuzu-0cfeb2e8d7fe98a11d5ab6097e35252981d70600.zip
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index 41b5da18a..7d5018151 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -145,7 +145,6 @@
FEATURE_NAME(robustness2, robustImageAccess2) \
FEATURE_NAME(shader_demote_to_helper_invocation, shaderDemoteToHelperInvocation) \
FEATURE_NAME(shader_draw_parameters, shaderDrawParameters) \
- FEATURE_NAME(timeline_semaphore, timelineSemaphore) \
FEATURE_NAME(variable_pointer, variablePointers) \
FEATURE_NAME(variable_pointer, variablePointersStorageBuffer)
@@ -158,6 +157,7 @@
FEATURE_NAME(provoking_vertex, provokingVertexLast) \
FEATURE_NAME(shader_float16_int8, shaderFloat16) \
FEATURE_NAME(shader_float16_int8, shaderInt8) \
+ FEATURE_NAME(timeline_semaphore, timelineSemaphore) \
FEATURE_NAME(transform_feedback, transformFeedback) \
FEATURE_NAME(uniform_buffer_standard_layout, uniformBufferStandardLayout) \
FEATURE_NAME(vertex_input_dynamic_state, vertexInputDynamicState)
@@ -493,6 +493,10 @@ public:
return extensions.shader_atomic_int64;
}
+ bool HasTimelineSemaphore() const {
+ return features.timeline_semaphore.timelineSemaphore;
+ }
+
/// Returns the minimum supported version of SPIR-V.
u32 SupportedSpirvVersion() const {
if (instance_version >= VK_API_VERSION_1_3) {