World Library  
Flag as Inappropriate
Email this Article

Direct Rendering Infrastructure

Article Id: WHEBN0001160631
Reproduction Date:

Title: Direct Rendering Infrastructure  
Author: World Heritage Encyclopedia
Language: English
Subject: Mesa (computer graphics), Linux kernel, Compiz, Freedesktop.org, Video Acceleration API
Collection: Direct Rendering Infrastructure, Freedesktop.Org
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Direct Rendering Infrastructure

DRI-1.0
Original author(s) Precision Insight, Tungsten Graphics
Developer(s) freedesktop.org
Initial release August 1998 (1998-08)[1]
Stable release 2.4.x / February 2009
Development status maintained, marked for obsoletion
Written in C
Platform POSIX
Type Framework / API
License MIT and other licenses[2]
Website .org.freedesktopdri
DRI-2.0
Original author(s) various
Developer(s) freedesktop.org
Initial release September 4, 2008 (2008-09-04)[3]
Stable release 2.4.x / February 2009 (2009-02)
Development status active
Written in C
Platform POSIX
Type Framework / API
License MIT and other licenses[2]
Website .org.freedesktopdri
DRI-3.0
Original author(s) Keith Packard et al.
Developer(s) freedesktop.org
Initial release November 1, 2013 (2013-11-01)[4]
Stable release November 1, 2013 (2013-11-01) / 3.0[4]
Development status active
Written in C
Platform POSIX
Type Framework / API
License MIT and other licenses[2]
Website .org.freedesktopdri
There are two graphics hardware drivers: one resides inside of the X display server. There have been several designs of this driver. The current one splits it in two portions: DIX (Device-Independent X) and DDX (Device-Dependent X)
X server, and libGL-fglrx-glx could use the libDRM of the radeon open-source driver instead of the proprietary binary blob.
Rendering calculations are outsourced over OpenGL to the GPU to be done in real-time. The DRI regulates access and book-keeping.

The Direct Rendering Infrastructure (DRI) is a framework for allowing direct access to graphics hardware under the X Window System in a safe, efficient way.[5] The main use of DRI is to provide hardware acceleration for the Mesa implementation of OpenGL. DRI has also been adapted to provide OpenGL acceleration on a framebuffer console without a display server running.

DRI implementation is scattered through the X Server and its associated client libraries, Mesa 3D and the Direct Rendering Manager kernel subsystem. All of its source code is free software.

Contents

  • Software architecture 1
  • Adoption 2
  • DRI1 3
  • DRI2 4
  • DRI3 5
    • DRI3 extension 5.1
    • Present extension 5.2
  • History 6
  • See also 7
  • Notes 8
  • References 9
  • External links 10

Software architecture

Direct Rendering Infrastructure is intended to facilitate the acceleration of 3D rendering and General-purpose computing on graphics processing units on available hardware by the operating system.

The DRI is split into three parts:

  • the Direct Rendering Manager (DRM), a kernel component, for command checking and queuing (not scheduling); the DRM is a combination of at least two kernel modules, one of core DRM code and others providing APIs to userland to access different classes of video hardware.
  • the Mesa 3D device drivers, a userspace component, that does the translation of OpenGL commands into hardware specific commands; it prepares buffers of commands to be sent to the hardware by the DRM and interacts with the windowing system for synchronization of access to the hardware

The hardware specific library libdrm implements the userspace interface to the kernel DRM. Libdrm contains a full set of functions to obtain information about encoders, connectors (such as DAC, TMDS, LVDS, etc.) and CRTC, such as their current state, their combinations, connector properties and available modes.[6]

Additional code provides access to the API provided by the driver module. In X this is the libdri.so support module and a DRI-enabled DDX (2D driver). In the framebuffer implementation this is MiniGLX, which initializes the DRM and provides some X APIs to the userspace driver despite the lack of a display server.

There is also a project using the Linux kernel DRI to gain direct access to the hardware for the purpose of using it as General-purpose computing on graphics processing units.

  • https://github.com/migle/gpgpu-dri
  • Fastra II

Adoption

Several open source DRI drivers have been written, including ones for ATI Mach64, ATI Rage128, ATI Radeon, 3dfx Voodoo3 through Voodoo5, Matrox G200 through G400, SiS 300-series, Intel i810 through i965, S3 Savage, VIA UniChrome graphics chipsets, and nouveau for Nvidia. Some graphics vendors have written closed-source DRI drivers, including ATI and Kyro.

The various versions of DRI have been implemented by various operating systems, amongst others by the Linux kernel, FreeBSD, NetBSD, OpenBSD, and OpenSolaris.

DRI1

  • single shared back buffer for screen
  • applications clip to back buffer area
  • DRI application block X
  • only temporary allocations possible in graphics memory

DRI2

Work on DRI2 started at the 2007 X Developers' Summit. The new rendering infrastructure improves several shortcomings of the old design, including removing internal locks and adding proper support for off-screen rendering, so that compositing and XVideo/OpenGL applications are properly managed.

  • per-window stencil-/depth-/back-buffers
  • shared across applications (as required by GLX)
  • allocated from X
  • objects passed by global GEM handles (huge security issues)

DRI3

Due to several limitations of DRI2, a new extension called DRI-Next was proposed by Keith Packard and Eric Anholt at the X.Org Developer's Conference 2012.[7] The extension was proposed again as DRI3000 at Linux.conf.au 2013.[8] DRI3 revolves around using POSIX file descriptors for passing kernel objects between the display server and the application[9] instead of passing global GEM handles. As part of the proposed DRI3 is also the Present (formerly Swap) extension for swapping the screen contents in a synchronized manner. DRI3 improves the window resizing process, improves security a bit, utilizes DMA_BUF.[8]

  • client-allocated per-windows buffers (this is how "Wayland does it")
  • no sharing at all (sharing is required by GLX)
  • allocated and managed by client
  • file descriptor (FD) passing by[10]

DMA buffer sharing has been available since Linux kernel 3.3[11]

DRI3 extension

  • provides access to DRM device
  • share DRM pixel buffers between client and server
  • share buffer idle semaphore (futex) between client and server

Present extension

  • copy or flip pixmap to window
  • synchronize with vblank
  • deliver events when present occurs

History

The project was started by free software community.

See also

Notes

  1. ^
  2. ^ a b c Mesa DRI License / Copyright Information - The Mesa 3D Graphics Library
  3. ^
  4. ^ a b
  5. ^
  6. ^
  7. ^
  8. ^ a b
  9. ^
  10. ^
  11. ^

References

  • A Multipipe Direct Rendering Architecture for 3D (Jens Owen and Kevin Martin, 1998) (original DRI design document)
  • Direct Rendering Infrastructure, Low-Level Design Document (Kevin E. Martin, Rickard E. Faith, Jens Owen, and Allen Akin, 1999)
  • DRI Extension for supporting Direct Rendering Protocol Specification (Jens Owen and Kevin Martin, Precision Insight, 1999)
  • DRI for beginners (Frank Worsley)
  • Getting X Off The Hardware (Keith Packard)
  • DRI - Developer interview with Owain Ainsworth (OpenBSD Journal)
  • The DRI3 Extension Version 1.0 (Keith Packard, 2013)

External links

  • Direct Rendering Infrastructure project home page
  • Direct Rendering Infrastructure project "To Do" page
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.