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

Commit

Permalink
Try more straight forward approach
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Nov 22, 2022
1 parent ab87654 commit 3e007b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vulkan/driver-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ static int vulkan_detect(struct cgpu_info *gpus, int *active)
VK_API_VERSION_1_2
};

#ifndef LINUX_ARM64
const char* const extensions[1] = {VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME};
#ifdef VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME
const char* const extensions[1] = { VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME };

const VkInstanceCreateInfo instanceCreateInfo = {
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
Expand Down
1 change: 0 additions & 1 deletion src/vulkan/gen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ elseif(APPLE)
target_link_libraries(shaders-gen -L$ENV{VULKAN_SDK}/lib -lvulkan shaderc_combined)
elseif(UNIX)
if (SPACEMESH_ARCH_ARM64)
add_compile_definitions(LINUX_ARM64)
target_link_libraries(shaders-gen vulkan glslang MachineIndependent OSDependent GenericCodeGen OGLCompiler HLSL SPIRV SPIRV-Tools-opt SPIRV-Tools)
else()
target_link_libraries(shaders-gen -L$ENV{VULKAN_SDK}/lib -lvulkan shaderc_combined)
Expand Down

0 comments on commit 3e007b7

Please sign in to comment.