blob: 1c906f6c0ea5d54477beb4a3fd549b0506742019 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- gpu/command_buffer/service/webgpu_decoder_impl.cc.orig 2025-06-30 07:04:30 UTC
+++ gpu/command_buffer/service/webgpu_decoder_impl.cc
@@ -1790,7 +1790,7 @@ wgpu::Adapter WebGPUDecoderImpl::CreatePreferredAdapte
backend_types = {wgpu::BackendType::D3D12};
#elif BUILDFLAG(IS_APPLE)
backend_types = {wgpu::BackendType::Metal};
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (shared_context_state_->GrContextIsVulkan() ||
shared_context_state_->IsGraphiteDawnVulkan()) {
backend_types = {wgpu::BackendType::Vulkan};
@@ -2032,7 +2032,7 @@ WebGPUDecoderImpl::AssociateMailboxDawn(
}
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_APPLE) && \
- !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_LINUX)
+ !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD)
if (usage & wgpu::TextureUsage::StorageBinding) {
LOG(ERROR) << "AssociateMailbox: wgpu::TextureUsage::StorageBinding is NOT "
"supported yet on this platform.";
|