VirtualBox

Changeset 96838 in vbox


Ignore:
Timestamp:
Sep 22, 2022 11:33:03 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153733
Message:

libs/dxvk-native-1.9.2a: Refer to libvulkan using the versioned library name (libvulkan.so.1) since the unversioned one is only available if the development package is installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/dxvk-native-1.9.2a/src/vulkan/vulkan_loader.cpp

    r96497 r96838  
    88#  define VBOX_VULKAN_LIBRARY_NAME "libMoltenVK"
    99# else
    10 #  define VBOX_VULKAN_LIBRARY_NAME "libvulkan"
     10#  define VBOX_VULKAN_LIBRARY_NAME "libvulkan.so.1"
    1111# endif
    1212#endif
     
    3939#endif
    4040  }
    41  
    42  
     41
     42
    4343  InstanceLoader::InstanceLoader(bool owned, VkInstance instance)
    4444  : m_instance(instance), m_owned(owned) { }
    4545
    46  
     46
    4747  PFN_vkVoidFunction InstanceLoader::sym(const char* name) const {
    4848    return dxvk::vk::GetInstanceProcAddr(m_instance, name);
    4949  }
    50  
    51  
     50
     51
    5252  DeviceLoader::DeviceLoader(bool owned, VkInstance instance, VkDevice device)
    5353  : m_getDeviceProcAddr(reinterpret_cast<PFN_vkGetDeviceProcAddr>(
    5454      dxvk::vk::GetInstanceProcAddr(instance, "vkGetDeviceProcAddr"))),
    5555    m_device(device), m_owned(owned) { }
    56  
    57  
     56
     57
    5858  PFN_vkVoidFunction DeviceLoader::sym(const char* name) const {
    5959    return m_getDeviceProcAddr(m_device, name);
    6060  }
    61  
    62  
     61
     62
    6363  LibraryFn::LibraryFn() { }
    6464  LibraryFn::~LibraryFn() { }
    65  
    66  
     65
     66
    6767  InstanceFn::InstanceFn(bool owned, VkInstance instance)
    6868  : InstanceLoader(owned, instance) { }
     
    7171      this->vkDestroyInstance(m_instance, nullptr);
    7272  }
    73  
    74  
     73
     74
    7575  DeviceFn::DeviceFn(bool owned, VkInstance instance, VkDevice device)
    7676  : DeviceLoader(owned, instance, device) { }
     
    7979      this->vkDestroyDevice(m_device, nullptr);
    8080  }
    81  
     81
    8282}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette