mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
rutabaga_gfx: rutabaga_gralloc: fix Kokoro unhappiness
Should fix the following error: ---- rutabaga_gralloc::gralloc::tests::create_render_target stdout ---- thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Unsupported', rutabaga_gfx/src/rutabaga_gralloc/gralloc.rs:314:64 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace BUG=b:173630595 TEST=cargo test locally Change-Id: Ieb24166f3975d4d7c99c08a3d0824ee64668c93e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2675231 Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
0dbb9808a6
commit
11e39e75a4
1 changed files with 5 additions and 1 deletions
|
@ -245,9 +245,13 @@ impl RutabagaGralloc {
|
|||
// choose the most shiny backend that the user has built. The rationale is "why would you
|
||||
// build it if you don't want to use it".
|
||||
let mut _backend = GrallocBackend::System;
|
||||
|
||||
#[cfg(feature = "minigbm")]
|
||||
{
|
||||
_backend = GrallocBackend::Minigbm;
|
||||
// See note on "wl-dmabuf" and Kokoro in Gralloc::new().
|
||||
if self.grallocs.contains_key(&GrallocBackend::Minigbm) {
|
||||
_backend = GrallocBackend::Minigbm;
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "vulkano")]
|
||||
|
|
Loading…
Reference in a new issue