virtwl: exclude "pvr" drm devices for mediatek systems

On Mediatek systems like hana we see there's are three drm renderer
devices including vgem, pvr, and mediatek.  We should exclude the pvr
device along with the vgem device for crosvm usage.

BUG=none
TEST=manual test on hana
TEST=build_test passes on all architectures

Change-Id: I834c231a08a7193bd358b3543ed0ed81a6d8bd84
Reviewed-on: https://chromium-review.googlesource.com/1087250
Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: David Reveman <reveman@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
This commit is contained in:
Sonny Rao 2018-06-05 16:58:07 -07:00 committed by chrome-bot
parent 5f787217cc
commit 72fa671f6c

View file

@ -618,7 +618,7 @@ impl GpuMemoryAllocator for GpuBufferDevice {
#[cfg(feature = "wl-dmabuf")]
fn create_gpu_memory_allocator() -> Result<Option<Box<GpuMemoryAllocator>>> {
let undesired: &[&str] = &["vgem"];
let undesired: &[&str] = &["vgem", "pvr"];
let fd = gpu_buffer::rendernode::open_device(undesired)
.map_err(|_| Error::OpenGpuBufferDevice)?;
let device = gpu_buffer::Device::new(fd)