Stéphane Marchesin | 25a2606 | 2014-09-12 16:18:59 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 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 | |
| 7 | #ifndef HELPERS_H |
| 8 | #define HELPERS_H |
| 9 | |
| 10 | int gbm_bpp_from_format(uint32_t format); |
| 11 | int gbm_bytes_from_format(uint32_t format); |
| 12 | int gbm_is_format_supported(struct gbm_bo *bo); |
Stéphane Marchesin | ec88e89 | 2015-11-03 16:14:59 -0800 | [diff] [blame^] | 13 | int gbm_dumb_bo_create(struct gbm_bo *bo, uint32_t width, uint32_t height, |
| 14 | uint32_t format, uint32_t flags); |
Stéphane Marchesin | 25a2606 | 2014-09-12 16:18:59 -0700 | [diff] [blame] | 15 | int gbm_dumb_bo_destroy(struct gbm_bo *bo); |
| 16 | int gbm_gem_bo_destroy(struct gbm_bo *bo); |
| 17 | |
| 18 | #endif |