Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 3e007b7

Browse files
committedNov 22, 2022
Try more straight forward approach
1 parent ab87654 commit 3e007b7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎src/vulkan/driver-vulkan.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ static int vulkan_detect(struct cgpu_info *gpus, int *active)
266266
VK_API_VERSION_1_2
267267
};
268268

269-
#ifndef LINUX_ARM64
270-
const char* const extensions[1] = {VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME};
269+
#ifdef VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME
270+
const char* const extensions[1] = { VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME };
271271

272272
const VkInstanceCreateInfo instanceCreateInfo = {
273273
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,

‎src/vulkan/gen/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ elseif(APPLE)
3131
target_link_libraries(shaders-gen -L$ENV{VULKAN_SDK}/lib -lvulkan shaderc_combined)
3232
elseif(UNIX)
3333
if (SPACEMESH_ARCH_ARM64)
34-
add_compile_definitions(LINUX_ARM64)
3534
target_link_libraries(shaders-gen vulkan glslang MachineIndependent OSDependent GenericCodeGen OGLCompiler HLSL SPIRV SPIRV-Tools-opt SPIRV-Tools)
3635
else()
3736
target_link_libraries(shaders-gen -L$ENV{VULKAN_SDK}/lib -lvulkan shaderc_combined)

0 commit comments

Comments
 (0)
This repository has been archived.