blob: 06b59ba744d47ae78927bdcd5e8fc3f88a36688e [file] [log] [blame]
Stéphane Marchesin25a26062014-09-12 16:18:59 -07001/*
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
10int gbm_bpp_from_format(uint32_t format);
11int gbm_bytes_from_format(uint32_t format);
12int gbm_is_format_supported(struct gbm_bo *bo);
Stéphane Marchesinec88e892015-11-03 16:14:59 -080013int gbm_dumb_bo_create(struct gbm_bo *bo, uint32_t width, uint32_t height,
14 uint32_t format, uint32_t flags);
Stéphane Marchesin25a26062014-09-12 16:18:59 -070015int gbm_dumb_bo_destroy(struct gbm_bo *bo);
16int gbm_gem_bo_destroy(struct gbm_bo *bo);
17
18#endif