From 838b5c23add7d20267deb5cdf4d67d23a7e4c718 Mon Sep 17 00:00:00 2001 From: Mike Stroyan Date: Mon, 7 Sep 2015 08:58:10 -0600 Subject: documentation: Detail DRI3 use on ubuntu 15.04 Updated DRI3 discussion in README.md and BUILD.md. --- BUILD.md | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- README.md | 4 +++- 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/BUILD.md b/BUILD.md index a1b537af..79c3f2c4 100644 --- a/BUILD.md +++ b/BUILD.md @@ -12,12 +12,19 @@ issue a merge request to integrate that work back into the repo. Note: If you are doing ICD (driver) development, please make sure to look at documentation in the [ICD Loader](loader/README.md) and the [Sample Driver](icd). ## Linux System Requirements -Ubuntu 14.10 needed for DRI 3 +Ubuntu 14.10 and 15.04 have been used with the sample driver. +These packages are used for building and running the samples. ``` sudo apt-get install git subversion cmake libgl1-mesa-dev freeglut3-dev libglm-dev libpng12-dev libmagickwand-dev qt5-default libpciaccess-dev libpthread-stubs0-dev libudev-dev sudo apt-get build-dep mesa ``` + +The sample driver uses DRI3 for its window system interface. +That requires extra configuration of Ubuntu systems. + +### Ubuntu 14.10 support of DRI 3 + Warning: Recent versions of 14.10 have **REMOVED** DRI 3. Version: 2:2.99.914-1~exp1ubuntu4.1 is known to work. To see status of this package: @@ -47,6 +54,69 @@ sudo bash -c "echo $'Package: xserver-xorg-video-intel\nPin: version 2:2.99.914- - Either restart Ubuntu or just X11. + +### Ubuntu 15.04 support of DRI 3 + +Ubuntu 15.04 has never shipped a xserver-xorg-video-intel package with supported DRI 3 on intel graphics. +The xserver-xorg-video-intel package can be built from source with DRI 3 enabled. +Use the following commands to enable DRI3 on ubuntu 15.04. + +- Install packages used to build: +``` +sudo apt-get update +sudo apt-get dist-upgrade +sudo apt-get install devscripts +sudo apt-get build-dep xserver-xorg-video-intel +``` + +- Get the source code for xserver-xorg-video-intel +``` +mkdir xserver-xorg-video-intel_source +cd xserver-xorg-video-intel_source +apt-get source xserver-xorg-video-intel +cd xserver-xorg-video-intel-2.99.917 +debian/rules patch +quilt new 'enable-DRI3' +quilt edit configure.ac +``` + +- Use the editor to make these changes. +``` +--- a/configure.ac ++++ b/configure.ac +@@ -340,9 +340,9 @@ + [DRI2=yes]) + AC_ARG_ENABLE(dri3, + AS_HELP_STRING([--enable-dri3], +- [Enable DRI3 support [[default=no]]]), ++ [Enable DRI3 support [[default=yes]]]), + [DRI3=$enableval], +- [DRI3=no]) ++ [DRI3=yes]) + + AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--disable-xvmc], + [Disable XvMC support [[default=yes]]]), +``` +- Build and install xserver-xorg-video-intel +``` +quilt refresh +debian/rules clean +debuild -us -uc +sudo dpkg -i ../xserver-xorg-video-intel_2.99.917-1~exp1ubuntu2.2_amd64.deb +``` +- Prevent updates from replacing this version of the package. +``` +sudo bash -c 'echo xserver-xorg-video-intel hold | dpkg --set-selections' +``` +- save your work then restart the X server with the next command. +``` +sudo service lightdm restart +``` +- After logging in again, check for success with this command and look for DRI3. +``` +xdpyinfo | grep DRI +``` + ## Clone the repository To create your local git repository: diff --git a/README.md b/README.md index 5103792a..20d94e86 100755 --- a/README.md +++ b/README.md @@ -39,8 +39,10 @@ The following components are available: APIDump layer is working with these new API elements. VkTrace can trace and replay the cube and tri demos. Other layers in progress. -- Warning: Recent versions of 14.10 have **REMOVED** DRI 3. +- Warning: Recent versions of ubuntu 14.10 have **REMOVED** DRI 3. Version: 2:2.99.914-1~exp1ubuntu4.1 is known to work. + Ubuntu 15.04 requires customization to add DRI3. + See BUILD.md for details. ## Prior updates -- cgit v1.2.3