Blame tests/modetest/buffers.h

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