Blame tests/modetest/buffers.h

Packit 631bab
/*
Packit 631bab
 * DRM based mode setting test program
Packit 631bab
 * Copyright 2008 Tungsten Graphics
Packit 631bab
 *   Jakob Bornecrantz <jakob@tungstengraphics.com>
Packit 631bab
 * Copyright 2008 Intel Corporation
Packit 631bab
 *   Jesse Barnes <jesse.barnes@intel.com>
Packit 631bab
 *
Packit 631bab
 * Permission is hereby granted, free of charge, to any person obtaining a
Packit 631bab
 * copy of this software and associated documentation files (the "Software"),
Packit 631bab
 * to deal in the Software without restriction, including without limitation
Packit 631bab
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Packit 631bab
 * and/or sell copies of the Software, and to permit persons to whom the
Packit 631bab
 * Software is furnished to do so, subject to the following conditions:
Packit 631bab
 *
Packit 631bab
 * The above copyright notice and this permission notice shall be included in
Packit 631bab
 * all copies or substantial portions of the Software.
Packit 631bab
 *
Packit 631bab
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit 631bab
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit 631bab
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit 631bab
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit 631bab
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Packit 631bab
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
Packit 631bab
 * IN THE SOFTWARE.
Packit 631bab
 */
Packit 631bab
Packit 631bab
#ifndef __BUFFERS_H__
Packit 631bab
#define __BUFFERS_H__
Packit 631bab
Packit 631bab
#include "util/pattern.h"
Packit 631bab
Packit 631bab
struct bo;
Packit 631bab
Packit 631bab
struct bo *bo_create(int fd, unsigned int format,
Packit 631bab
		   unsigned int width, unsigned int height,
Packit 631bab
		   unsigned int handles[4], unsigned int pitches[4],
Packit 631bab
		   unsigned int offsets[4], enum util_fill_pattern pattern);
Packit 631bab
void bo_destroy(struct bo *bo);
Packit 631bab
Packit 631bab
#endif