Vincent Palatin | 5ecebea | 2016-03-11 14:05:45 -0800 | [diff] [blame] | 1 | /* |
| 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 Singh | 46faf6b | 2016-08-05 14:40:07 -0700 | [diff] [blame] | 7 | #include "drv_priv.h" |
Vincent Palatin | 5ecebea | 2016-03-11 14:05:45 -0800 | [diff] [blame] | 8 | #include "helpers.h" |
| 9 | |
Gurchetan Singh | 46faf6b | 2016-08-05 14:40:07 -0700 | [diff] [blame] | 10 | const struct backend backend_virtio_gpu = |
Vincent Palatin | 5ecebea | 2016-03-11 14:05:45 -0800 | [diff] [blame] | 11 | { |
| 12 | .name = "virtio_gpu", |
Gurchetan Singh | 46faf6b | 2016-08-05 14:40:07 -0700 | [diff] [blame] | 13 | .bo_create = drv_dumb_bo_create, |
| 14 | .bo_destroy = drv_dumb_bo_destroy, |
Gurchetan Singh | ef92053 | 2016-08-12 16:38:25 -0700 | [diff] [blame] | 15 | .bo_map = drv_dumb_bo_map, |
Vincent Palatin | 5ecebea | 2016-03-11 14:05:45 -0800 | [diff] [blame] | 16 | .format_list = { |
Gurchetan Singh | 46faf6b | 2016-08-05 14:40:07 -0700 | [diff] [blame] | 17 | {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 Palatin | 5ecebea | 2016-03-11 14:05:45 -0800 | [diff] [blame] | 21 | } |
| 22 | }; |
| 23 | |