mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 03:18:55 +02:00
[vulkan] Maintenance9 removal
This commit is contained in:
parent
e1c27dd69b
commit
8a4fc945df
3 changed files with 2 additions and 15 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
||||||
|
|
@ -22,16 +22,13 @@
|
||||||
|
|
||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/vulkan.h>
|
||||||
|
|
||||||
// Define maintenance 7-9 extension names (not yet in official Vulkan headers)
|
// Define maintenance 7-8 extension names
|
||||||
#ifndef VK_KHR_MAINTENANCE_7_EXTENSION_NAME
|
#ifndef VK_KHR_MAINTENANCE_7_EXTENSION_NAME
|
||||||
#define VK_KHR_MAINTENANCE_7_EXTENSION_NAME "VK_KHR_maintenance7"
|
#define VK_KHR_MAINTENANCE_7_EXTENSION_NAME "VK_KHR_maintenance7"
|
||||||
#endif
|
#endif
|
||||||
#ifndef VK_KHR_MAINTENANCE_8_EXTENSION_NAME
|
#ifndef VK_KHR_MAINTENANCE_8_EXTENSION_NAME
|
||||||
#define VK_KHR_MAINTENANCE_8_EXTENSION_NAME "VK_KHR_maintenance8"
|
#define VK_KHR_MAINTENANCE_8_EXTENSION_NAME "VK_KHR_maintenance8"
|
||||||
#endif
|
#endif
|
||||||
#ifndef VK_KHR_MAINTENANCE_9_EXTENSION_NAME
|
|
||||||
#define VK_KHR_MAINTENANCE_9_EXTENSION_NAME "VK_KHR_maintenance9"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Sanitize macros
|
// Sanitize macros
|
||||||
#undef CreateEvent
|
#undef CreateEvent
|
||||||
|
|
|
||||||
|
|
@ -1286,10 +1286,6 @@ void Device::RemoveUnsuitableExtensions() {
|
||||||
// VK_KHR_maintenance8
|
// VK_KHR_maintenance8
|
||||||
extensions.maintenance8 = loaded_extensions.contains(VK_KHR_MAINTENANCE_8_EXTENSION_NAME);
|
extensions.maintenance8 = loaded_extensions.contains(VK_KHR_MAINTENANCE_8_EXTENSION_NAME);
|
||||||
RemoveExtensionIfUnsuitable(extensions.maintenance8, VK_KHR_MAINTENANCE_8_EXTENSION_NAME);
|
RemoveExtensionIfUnsuitable(extensions.maintenance8, VK_KHR_MAINTENANCE_8_EXTENSION_NAME);
|
||||||
|
|
||||||
// VK_KHR_maintenance9
|
|
||||||
extensions.maintenance9 = loaded_extensions.contains(VK_KHR_MAINTENANCE_9_EXTENSION_NAME);
|
|
||||||
RemoveExtensionIfUnsuitable(extensions.maintenance9, VK_KHR_MAINTENANCE_9_EXTENSION_NAME);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Device::SetupFamilies(VkSurfaceKHR surface) {
|
void Device::SetupFamilies(VkSurfaceKHR surface) {
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,6 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
||||||
EXTENSION(KHR, MAINTENANCE_3, maintenance3) \
|
EXTENSION(KHR, MAINTENANCE_3, maintenance3) \
|
||||||
EXTENSION(KHR, MAINTENANCE_7, maintenance7) \
|
EXTENSION(KHR, MAINTENANCE_7, maintenance7) \
|
||||||
EXTENSION(KHR, MAINTENANCE_8, maintenance8) \
|
EXTENSION(KHR, MAINTENANCE_8, maintenance8) \
|
||||||
EXTENSION(KHR, MAINTENANCE_9, maintenance9) \
|
|
||||||
EXTENSION(NV, DEVICE_DIAGNOSTICS_CONFIG, device_diagnostics_config) \
|
EXTENSION(NV, DEVICE_DIAGNOSTICS_CONFIG, device_diagnostics_config) \
|
||||||
EXTENSION(NV, GEOMETRY_SHADER_PASSTHROUGH, geometry_shader_passthrough) \
|
EXTENSION(NV, GEOMETRY_SHADER_PASSTHROUGH, geometry_shader_passthrough) \
|
||||||
EXTENSION(NV, VIEWPORT_ARRAY2, viewport_array2) \
|
EXTENSION(NV, VIEWPORT_ARRAY2, viewport_array2) \
|
||||||
|
|
@ -884,11 +883,6 @@ public:
|
||||||
return extensions.maintenance8;
|
return extensions.maintenance8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the device supports VK_KHR_maintenance9.
|
|
||||||
bool IsKhrMaintenance9Supported() const {
|
|
||||||
return extensions.maintenance9;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if the device supports UINT8 index buffer conversion via compute shader.
|
/// Returns true if the device supports UINT8 index buffer conversion via compute shader.
|
||||||
bool SupportsUint8Indices() const {
|
bool SupportsUint8Indices() const {
|
||||||
return features.bit8_storage.storageBuffer8BitAccess &&
|
return features.bit8_storage.storageBuffer8BitAccess &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue