gbm-sdl2-example

annotate src/drmtest.h @ 0:665119a0580e

example program that uses gbm buffers
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Wed, 04 Jul 2018 22:16:23 +0300
parents
children
rev   line source
eleni@0 1 /*
eleni@0 2 * Copyright © 2007 Intel Corporation
eleni@0 3 *
eleni@0 4 * Permission is hereby granted, free of charge, to any person obtaining a
eleni@0 5 * copy of this software and associated documentation files (the "Software"),
eleni@0 6 * to deal in the Software without restriction, including without limitation
eleni@0 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
eleni@0 8 * and/or sell copies of the Software, and to permit persons to whom the
eleni@0 9 * Software is furnished to do so, subject to the following conditions:
eleni@0 10 *
eleni@0 11 * The above copyright notice and this permission notice (including the next
eleni@0 12 * paragraph) shall be included in all copies or substantial portions of the
eleni@0 13 * Software.
eleni@0 14 *
eleni@0 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
eleni@0 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
eleni@0 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
eleni@0 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
eleni@0 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
eleni@0 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
eleni@0 21 * IN THE SOFTWARE.
eleni@0 22 *
eleni@0 23 * Authors:
eleni@0 24 * Eric Anholt <eric@anholt.net>
eleni@0 25 *
eleni@0 26 */
eleni@0 27
eleni@0 28 #include <stdio.h>
eleni@0 29 #include <stdlib.h>
eleni@0 30 #include <unistd.h>
eleni@0 31 #include <assert.h>
eleni@0 32 #include <errno.h>
eleni@0 33
eleni@0 34 #include <xf86drm.h>
eleni@0 35
eleni@0 36 #define DRM_TEST_MASTER 0x01
eleni@0 37
eleni@0 38 int drm_open_any(void);
eleni@0 39 int drm_open_any_master(void);
eleni@0 40 int drm_open_matching(const char *pci_glob, int flags);