[cmake, video_core] downgrade vk to 1.3.274
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
5240fc1ab2
commit
352be4b689
3 changed files with 14 additions and 6 deletions
12
externals/CMakeLists.txt
vendored
12
externals/CMakeLists.txt
vendored
|
@ -290,10 +290,10 @@ endif()
|
||||||
if (YUZU_USE_EXTERNAL_VULKAN_HEADERS)
|
if (YUZU_USE_EXTERNAL_VULKAN_HEADERS)
|
||||||
set(CPM_USE_LOCAL_PACKAGES OFF)
|
set(CPM_USE_LOCAL_PACKAGES OFF)
|
||||||
else()
|
else()
|
||||||
set(CPM_USE_LOCAL_PACKAGES ON)
|
set(CPM_USE_LOCAL_PACKAGES OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# TODO(crueter): System vk-headers are too new for externals vk-util
|
# TODO(crueter): Vk1.4 impl
|
||||||
|
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME VulkanHeaders
|
NAME VulkanHeaders
|
||||||
|
@ -303,6 +303,14 @@ CPMAddPackage(
|
||||||
CUSTOM_CACHE_KEY "8926"
|
CUSTOM_CACHE_KEY "8926"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# CMake's interface generator sucks
|
||||||
|
if (VulkanHeaders_ADDED)
|
||||||
|
target_include_directories(Vulkan-Headers INTERFACE ${VulkanHeaders_SOURCE_DIR}/include)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(VulkanHeaders_SOURCE_DIR "${VulkanHeaders_SOURCE_DIR}" PARENT_SCOPE)
|
||||||
|
set(VulkanHeaders_ADDED "${VulkanHeaders_ADDED}" PARENT_SCOPE)
|
||||||
|
|
||||||
# Vulkan-Utility-Libraries
|
# Vulkan-Utility-Libraries
|
||||||
if (YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES)
|
if (YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES)
|
||||||
set(CPM_USE_LOCAL_PACKAGES OFF)
|
set(CPM_USE_LOCAL_PACKAGES OFF)
|
||||||
|
|
|
@ -337,6 +337,10 @@ if (VulkanUtilityLibraries_ADDED)
|
||||||
target_include_directories(video_core PUBLIC ${VulkanUtilityLibraries_SOURCE_DIR}/include)
|
target_include_directories(video_core PUBLIC ${VulkanUtilityLibraries_SOURCE_DIR}/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (VulkanHeaders_ADDED)
|
||||||
|
target_include_directories(video_core PUBLIC ${VulkanHeaders_SOURCE_DIR}/include)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(video_core PRIVATE sirit Vulkan::Headers)
|
target_link_libraries(video_core PRIVATE sirit Vulkan::Headers)
|
||||||
|
|
||||||
if (ENABLE_NSIGHT_AFTERMATH)
|
if (ENABLE_NSIGHT_AFTERMATH)
|
||||||
|
|
|
@ -974,7 +974,6 @@ bool Device::GetSuitability(bool requires_swapchain) {
|
||||||
// Configure properties.
|
// Configure properties.
|
||||||
VkPhysicalDeviceVulkan12Features features_1_2{};
|
VkPhysicalDeviceVulkan12Features features_1_2{};
|
||||||
VkPhysicalDeviceVulkan13Features features_1_3{};
|
VkPhysicalDeviceVulkan13Features features_1_3{};
|
||||||
VkPhysicalDeviceVulkan14Features features_1_4{};
|
|
||||||
|
|
||||||
// Configure properties.
|
// Configure properties.
|
||||||
properties.properties = physical.GetProperties();
|
properties.properties = physical.GetProperties();
|
||||||
|
@ -1053,13 +1052,10 @@ bool Device::GetSuitability(bool requires_swapchain) {
|
||||||
if (instance_version >= VK_API_VERSION_1_2) {
|
if (instance_version >= VK_API_VERSION_1_2) {
|
||||||
features_1_2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
features_1_2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
||||||
features_1_3.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
|
features_1_3.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
|
||||||
features_1_4.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_4_FEATURES;
|
|
||||||
|
|
||||||
features_1_2.pNext = &features_1_3;
|
features_1_2.pNext = &features_1_3;
|
||||||
features_1_3.pNext = &features_1_4;
|
|
||||||
|
|
||||||
*next = &features_1_2;
|
*next = &features_1_2;
|
||||||
// next = &features_1_4.pNext;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test all features we know about. If the feature is not available in core at our
|
// Test all features we know about. If the feature is not available in core at our
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue