Skip to content

Commit 4f406cc

Browse files
committed
GPU Display Vulkan: Workaround for bogus old Vulkan versions that report the patch version as vulkan version
1 parent bef11c6 commit 4f406cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GPU/GPUTracking/display/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ if(ALIGPU_BUILD_TYPE STREQUAL "O2")
3131
endif()
3232

3333
if(Vulkan_FOUND)
34-
if(NOT ${Vulkan_VERSION} VERSION_GREATER_EQUAL "1.3.0" OR Vulkan_GLSLC_EXECUTABLE STREQUAL "Vulkan_GLSLC_EXECUTABLE-NOTFOUND")
34+
string(FIND "${Vulkan_VERSION}" "." vulkan_dot_index)
35+
if(NOT ${Vulkan_VERSION} VERSION_GREATER_EQUAL "1.3.0" OR dot_index EQUAL -1 OR Vulkan_GLSLC_EXECUTABLE STREQUAL "Vulkan_GLSLC_EXECUTABLE-NOTFOUND")
3536
set(Vulkan_FOUND 0)
3637
endif()
3738
endif()

0 commit comments

Comments
 (0)