blob: ed50bc097dba6415588e2ceb76fe51c5a7cde1da [file] [log] [blame]
Vincent Palatin5ecebea2016-03-11 14:05:45 -08001/*
2 * Copyright 2016 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
Gurchetan Singh46faf6b2016-08-05 14:40:07 -07007#include "drv_priv.h"
Vincent Palatin5ecebea2016-03-11 14:05:45 -08008#include "helpers.h"
9
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070010const struct backend backend_virtio_gpu =
Vincent Palatin5ecebea2016-03-11 14:05:45 -080011{
12 .name = "virtio_gpu",
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070013 .bo_create = drv_dumb_bo_create,
14 .bo_destroy = drv_dumb_bo_destroy,
Gurchetan Singhef920532016-08-12 16:38:25 -070015 .bo_map = drv_dumb_bo_map,
Vincent Palatin5ecebea2016-03-11 14:05:45 -080016 .format_list = {
Gurchetan Singh46faf6b2016-08-05 14:40:07 -070017 {DRV_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_RENDERING},
18 {DRV_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_LINEAR},
19 {DRV_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_RENDERING},
20 {DRV_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_LINEAR},
Vincent Palatin5ecebea2016-03-11 14:05:45 -080021 }
22};
23