Commit b3f071b4 authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot

Enable FD export extension in swiftshader.

Previously Vulkan extensions VK_KHR_external_memory_fd and
VK_KHR_external_semaphore_fd were not enabled for swiftshader because
they were not supported. They are supported now, so they can be enabled.

Bug: 963988
Change-Id: I4d72fe965038615f19311e1e5bca5600b54035ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2353930
Auto-Submit: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797768}
parent 5204141e
...@@ -146,15 +146,11 @@ bool VulkanImplementationX11::GetPhysicalDevicePresentationSupport( ...@@ -146,15 +146,11 @@ bool VulkanImplementationX11::GetPhysicalDevicePresentationSupport(
std::vector<const char*> std::vector<const char*>
VulkanImplementationX11::GetRequiredDeviceExtensions() { VulkanImplementationX11::GetRequiredDeviceExtensions() {
std::vector<const char*> extensions; std::vector<const char*> extensions = {
// TODO(samans): Add these extensions once Swiftshader supports them. VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME,
// https://crbug.com/963988 VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME,
if (!use_swiftshader()) { VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME,
extensions.push_back(VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME); VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME};
extensions.push_back(VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME);
extensions.push_back(VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME);
extensions.push_back(VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME);
}
if (using_surface_) if (using_surface_)
extensions.push_back(VK_KHR_SWAPCHAIN_EXTENSION_NAME); extensions.push_back(VK_KHR_SWAPCHAIN_EXTENSION_NAME);
return extensions; return extensions;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment