bevyengine / bevyengine/bevy

Strange behavior on PinePhone Pro

Open
#12,809 6 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug O-Linux
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

v0.13.1

## \[Optional\] Relevant system information

```ignore
Adapter Gl AdapterInfo { name: "Mali-T860 (Panfrost)", vendor: 65541, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl }
```

[Phone specs](https://pine64.org/devices/pinephone_pro).
[More detailed CPU specs](http://rockchip.wikidot.com/rk3399).

## What you did

I trying to run examples from the Bevy repo.

## What went wrong

If I try to any example like this:

```bash
cargo run --example sprite --features=wayland
```

I have the following error:

```
Handling wgpu errors as fatal by default
thread 'main' panicked at /home/shatur/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.19.3/src/backend/wgpu_core.rs:3006:5:
wgpu error: Validation Error

Caused by:
In Device::create_bind_group_layout
note: label = `mesh2d_layout`
Binding 0 entry is invalid
Downlevel flags DownlevelFlags(VERTEX_STORAGE) are required but not supported on the device.
This is not an invalid use of WebGPU: the underlying API or device does not support enough features to be a fully compliant implementation. A subset of the features can still be used. If you are running this program on native and not in a browser and wish to work around this issue, call Adapter::downlevel_properties or Device::downlevel_properties to get a listing of the features the current platform supports.

```

In order to fix it I set `WGPU_SETTINGS_PRIO=webgl2` environment variable.

Now all 2D examples work, I can run `sprite` or `breakout` examples without issues.

But when I try to run any 3D example like this:

```bash
WGPU_SETTINGS_PRIO=webgl2 cargo run --example 3d_scene --features=wayland
```

It crashes with the following output: [log.txt](https://github.com/bevyengine/bevy/files/14815938/log.txt)

## Additional information

My setup:

![PXL_20240331_131214326 MP](https://github.com/bevyengine/bevy/assets/22453358/ff3d97e6-342e-43d6-b75a-94fce8cdf890)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.