My laptop doesn't have a dedicated GPU. I run elementary OS 5 on this laptop, which has an integrated GPU. When I try running my beginner's Bevy app,
use bevy::prelude::*;
fn main() {
App::build()
.add_default_plugins()
.run();
}
I get the following error -
thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers!', /home/actuday/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_wgpu-0.1.3/src/wgpu_renderer.rs:22:23
I have installed and upgraded the drivers for my GPU. Output of
glxinfo | grep "OpenGL"
contains the line
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.0-devel (git-98e866c 2020-09-03 bionic-oibaf-ppa)
and
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
I installed vulkan and the error is now replaced with -
Running `target/debug/bevy_app`
WARNING: vallium/llvmpipe is not a conformant vulkan implementation, testing use only.
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
thread 'main' panicked at 'Failed to acquire next swap chain texture!', /home/actuday/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_wgpu-0.1.3/src/renderer/wgpu_render_resource_context.rs:291:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace