summaryrefslogtreecommitdiff
path: root/kmscube
AgeCommit message (Expand)Author
2017-02-10ExtFb: pass params in vectorsTomi Valkeinen
2016-12-09kmscube: improve egl config printsTomi Valkeinen
2016-11-26kmscube: fix X11 fullscreenTomi Valkeinen
2016-06-17kmscube: use drmModeAddFB2 version of ExtFBTomi Valkeinen
2016-06-11kms++util: split to subdirsTomi Valkeinen
2016-06-11kms++: organize into subdirsTomi Valkeinen
2016-05-23Reorganize libkms++utils headerTomi Valkeinen
2016-05-23File/dir renamesTomi Valkeinen
2016-04-25kmscube: remove unused fieldTomi Valkeinen
2016-04-25kmscube: fix wrong uses of class FramebufferTomi Valkeinen
2016-04-22kmscube: check errorsTomi Valkeinen
2016-04-20kmscube: improve the x11 mainloopTomi Valkeinen
2016-04-19kmscube: hackingTomi Valkeinen
2016-04-19kmscube: fix resource leaks & freeingTomi Valkeinen
2016-04-19kmscube: quick hack for fullscreenTomi Valkeinen
2016-04-16kmscube: waylandTomi Valkeinen
2016-04-16add -Wextra & fix warningsTomi Valkeinen
2016-04-16kmscube: split into partsTomi Valkeinen
2016-04-16kmscube: support XTomi Valkeinen
2016-04-16kmscube: disable planeTomi Valkeinen
2016-04-11kmscube: check for free bufsTomi Valkeinen
2016-04-08kmscube: support null eglTomi Valkeinen
2016-04-08kmscube: big restructureTomi Valkeinen
2016-04-08kmscube: separate swap_buffersTomi Valkeinen
2016-03-24kmscube: clean up esUtilTomi Valkeinen
2016-02-15kmscube: fix atomic FB_ID set for crtcTomi Valkeinen
2015-11-18Add kmscubeTomi Valkeinen
#n194'>194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
/*
 * Copyright © 2008 Intel Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * Authors:
 *    Eric Anholt <eric@anholt.net>
 *
 */

/**
 * @file intel_bufmgr_priv.h
 *
 * Private definitions of Intel-specific bufmgr functions and structures.
 */

#ifndef INTEL_BUFMGR_PRIV_H
#define INTEL_BUFMGR_PRIV_H

/**
 * Context for a buffer manager instance.
 *
 * Contains public methods followed by private storage for the buffer manager.
 */
struct _drm_intel_bufmgr {
	/**
	 * Allocate a buffer object.
	 *
	 * Buffer objects are not necessarily initially mapped into CPU virtual
	 * address space or graphics device aperture.  They must be mapped
	 * using bo_map() or drm_intel_gem_bo_map_gtt() to be used by the CPU.
	 */
	drm_intel_bo *(*bo_alloc) (drm_intel_bufmgr *bufmgr, const char *name,
				   unsigned long size, unsigned int alignment);

	/**
	 * Allocate a buffer object, hinting that it will be used as a
	 * render target.
	 *
	 * This is otherwise the same as bo_alloc.
	 */