-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request_adapter()
failed at Android 8.1
#2419
Comments
Looks like this device is not able to support WebGPU proper. But we should add a downlevel capability for this sample interpolation stuff, so that we can support it. Line 877 in 77b2c25
The flag could be named like "MULTISAMPLED_SHADING". We'll need validation, but even if you just add a flag, it will be mergeable, and will make it work for your device. |
Added the 2022-01-26 15:49:56.664 20215-20215/name.jinleili.wgpu I/wgpu_core::instance: Adapter Vulkan AdapterInfo { name: "Adreno (TM) 418", vendor: 20803, device: 67176448, device_type: IntegratedGpu, backend: Vulkan }
2022-01-26 15:49:56.664 20215-20215/name.jinleili.wgpu W/wgpu_hal::vulkan::ada..: Missing extensions: ["VK_KHR_maintenance2", "VK_EXT_sampler_filter_minmax", "VK_KHR_timeline_semaphore"]
2022-01-26 15:49:56.664 20215-20215/name.jinleili.wgpu D/wgpu_hal::vulkan::ada..: Supported extensions: ["VK_KHR_swapchain", "VK_KHR_maintenance1", "VK_KHR_storage_buffer_storage_class"]
2022-01-26 15:49:56.665 20215-20215/name.jinleili.wgpu W/wgpu_hal::vulkan: Unrecognized device error ERROR_FEATURE_NOT_PRESENT
2022-01-26 15:49:56.665 20215-20215/name.jinleili.wgpu E/wgpu::backend::direct: Error in Adapter::request_device: connection to device was lost during initialization
2022-01-26 15:49:56.666 20215-20215/name.jinleili.wgpu A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 20215 (e.jinleili.wgpu), pid 20215 (e.jinleili.wgpu) Searched wgpu::DeviceDescriptor {
label: None,
features: wgpu::Features::default(),
limits: wgpu::Limits::downlevel_webgl2_defaults(),
} Also, I have a confusion about wgpu/wgpu-hal/src/vulkan/adapter.rs Line 339 in 0183e7d
|
I also ran into this problem when building
I didn't face |
@jinleili the Vulkan backend needs to initialize differently with this feature: wgpu/wgpu-hal/src/vulkan/adapter.rs Line 103 in 77b2c25
This line would become: .sample_rate_shading(downlevel_flags.contains(wgt::DownlevelFlags::MULTISAMPLED_SHADING),)
Like with other features, including cargo features, the flag is set when a feature is supported. Would you be able to provide logs with |
@kvark Sure.
|
@kvark My changes are like this:jinleili@94b6bad , and failed at |
@enfipy thank you! Would you mind attaching a |
@jinleili changes look good, mind turning them into a PR? |
@kvark I think this info will help - https://gist.github.com/enfipy/e2088afd4100b36db6248b07499bb215 from Also, we succeed in running |
Test device: Google Nexus 5x(Android 8.1.0)
Backend: VULKAN
2022-01-25 10:55:31.018 27110-27110/name.jinleili.wgpu W/wgpu_hal::vulkan::ada..: sample_rate_shading feature is not supported, hiding adapter: Adreno (TM) 418 2022-01-25 10:55:31.019 27110-27110/name.jinleili.wgpu A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 27110 (e.jinleili.wgpu), pid 27110 (e.jinleili.wgpu)
Logcat full output:
The text was updated successfully, but these errors were encountered: