Browse Source

[vulkan] Removing VK_EXT_graphics_pipelines_library

qcomopts2
CamilleLaVey 1 week ago
parent
commit
5100108f4e
  1. 9
      src/video_core/vulkan_common/vulkan_device.cpp
  2. 6
      src/video_core/vulkan_common/vulkan_device.h

9
src/video_core/vulkan_common/vulkan_device.cpp

@ -1594,15 +1594,6 @@ void Device::RemoveUnsuitableExtensions() {
// VK_KHR_maintenance9
extensions.maintenance9 = loaded_extensions.contains(VK_KHR_MAINTENANCE_9_EXTENSION_NAME);
RemoveExtensionIfUnsuitable(extensions.maintenance9, VK_KHR_MAINTENANCE_9_EXTENSION_NAME);
// VK_EXT_graphics_pipeline_library
extensions.graphics_pipeline_library = loaded_extensions.contains(VK_EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME);
RemoveExtensionIfUnsuitable(extensions.graphics_pipeline_library, VK_EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME);
if (extensions.graphics_pipeline_library) {
LOG_INFO(Render_Vulkan, "Driver supports VK_EXT_graphics_pipeline_library; enabling use");
} else {
LOG_INFO(Render_Vulkan, "VK_EXT_graphics_pipeline_library not available");
}
}
void Device::SetupFamilies(VkSurfaceKHR surface) {

6
src/video_core/vulkan_common/vulkan_device.h

@ -110,7 +110,6 @@ VK_DEFINE_HANDLE(VmaAllocator)
EXTENSION(EXT, DESCRIPTOR_BUFFER, descriptor_buffer) \
EXTENSION(EXT, FILTER_CUBIC, filter_cubic) \
EXTENSION(QCOM, FILTER_CUBIC_WEIGHTS, filter_cubic_weights) \
EXTENSION(EXT, GRAPHICS_PIPELINE_LIBRARY, graphics_pipeline_library) \
// Define extensions which must be supported.
#define FOR_EACH_VK_MANDATORY_EXTENSION(EXTENSION_NAME) \
@ -298,11 +297,6 @@ public:
return properties.properties.driverVersion;
}
/// Returns true if the device and driver have VK_EXT_graphics_pipeline_library enabled.
bool HasGraphicsPipelineLibrary() const {
return extensions.graphics_pipeline_library;
}
/// Returns the device name.
std::string_view GetModelName() const {
return properties.properties.deviceName;

Loading…
Cancel
Save