crosvm/rutabaga_gfx
Ryan Neph 1f15edcd22 devices: gpu: fix suspend/resume for 2D fallback
When falling back to GPU 2D backend, the default_component remains set
to VirglRenderer. When Rutabaga suspend/resume feature is invoked later,
the default_component is checked and a RutabagaError::InvalidComponent
is thrown because it is not supported by the VirglRenderer backend.

This change sets the default_component to 2D whenever the fallback is
taken.

BUG=b:380180766
TEST=cargo build --features gpu,virgl_renderer

Fixes: fbe3f4696 ("devices: gpu: fallback to 2D backend on failed virgl backend init")
Change-Id: I7858fab5da05f439c74b5b6145683478d0c81433
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6039874
Auto-Submit: Ryan Neph <ryanneph@google.com>
Commit-Queue: Ryan Neph <ryanneph@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-11-21 21:06:06 +00:00
..
ffi rutabaga_gfx: Add rutabaga_resource_wait_sync interface 2024-10-08 00:40:53 +00:00
kumquat rutabaga_gfx: kumquat: refactor initialization 2024-11-11 19:14:33 +00:00
src devices: gpu: fix suspend/resume for 2D fallback 2024-11-21 21:06:06 +00:00
build.rs rutabaga_gfx: build.rs: check fence_passing_option1 2024-11-20 23:41:10 +00:00
Cargo.toml rutabaga_gfx: use serde for snapshots 2024-10-31 18:18:50 +00:00
LICENSE crosvm: add licensing/description to alpha crates 2023-01-14 02:05:06 +00:00
OWNERS rutabaga_gfx: establish crate OWNERS. 2024-05-14 17:44:27 +00:00