| Courtney Goeltzenleuchter | b5fdda2 | 2014-09-01 18:05:45 -0600 | [diff] [blame^] | 1 | The XGL Sample Intel driver supports Linux. |
| 2 | |
| 3 | System Requirements |
| 4 | =================== |
| 5 | |
| 6 | Ubuntu 13.10, Ubuntu 14.04 LTS |
| 7 | gcc |
| 8 | drm |
| 9 | |
| 10 | |
| 11 | BUILD |
| 12 | ===== |
| 13 | |
| 14 | The sample driver users cmake and should work with the usual cmake options and utilities. |
| 15 | The standard build process builds the icd, the icd loader and all the tests. |
| 16 | |
| 17 | Example debug build: |
| 18 | cd xgl # cd to the root of the xgl git repository |
| 19 | cmake -H. -Bdbuild -DCMAKE_BUILD_TYPE=Debug |
| 20 | cd dbuild |
| 21 | make |
| 22 | |
| 23 | To run XGL programs you must tell the icd loader where to find the libraries. Set the |
| 24 | environment variable LIBXGL_DRIVERS_PATH to the driver path. For example: |
| 25 | > export LIBXGL_DRIVERS_PATH=~/xgl/dbuild/icd/intel |
| 26 | |
| 27 | TEST |
| 28 | ==== |
| 29 | |
| 30 | The test executibles can be found in the build/tests directory. The tests use the Google |
| 31 | gtest infrastructure. Tests avilable so far: |
| 32 | - xglinfo: Report GPU properties |
| 33 | - xglbase: Test basic entry points |
| 34 | - xgl_image_tests: Test XGL image related calls needed by render_test |
| 35 | - xgl_render_tests: Render a single triangle with XGL. Triangle will be in a .ppm in |
| 36 | the current directory at the end of the test. |