blob: be2917795dd66277071aae6d382655ceecdba950 [file] [log] [blame]
Eric Anholt8c641832009-03-26 17:15:11 -07001This is a collection of tools for development and testing of the Intel DRM
2driver. There are many macro-level test suites that get used against our
3driver, including xtest, rendercheck, piglit, and oglconform, but failures
4from those can be difficult to track down to kernel changes, and many require
5complicated build procedures or specific testing environments to get useful
6results.
7
8Thus, intel-graphics-tools was a project I started to collect some low-level
Ben Widawsky3b10b7b2011-07-28 14:58:24 -07009tools I intended to build.
Eric Anholt8c641832009-03-26 17:15:11 -070010
11benchmarks/
12 This should be a collection of useful microbenchmarks. The hope is
13 that people can use these to tune some pieces of DRM code in relevant
14 ways.
15
Eric Anholt676a1092009-03-27 16:03:02 -070016 The benchmarks require KMS to be enabled. When run with an X Server
17 running, they must be run as root to avoid the authentication
18 requirement.
19
Daniel Vettereafdf502011-11-01 14:33:53 +010020 Note that a few other microbenchmarks are in tests (like gem_gtt_speed).
21
Eric Anholt8c641832009-03-26 17:15:11 -070022tests/
23 This is a set of automated tests to run against the DRM to validate
24 changes. Hopefully this can cover the relevant cases we need to
25 worry about, including backwards compatibility.
26
Daniel Vettereafdf502011-11-01 14:33:53 +010027 Run this tests with "make test" as root from this directory. Note that
28 no other drm clients (X server) may run.
29
30 "make test" only runs a default of test usefull for regression testing.
31 Other tests not run are:
32 - tests that might hang the gpu, see HANG in Makefile.am
33 - gem_stress, a stress test suite. Look at the source for all the
34 various options.
35 - testdisplay is only run in the default mode. testdisplay has tons of
36 options to test different kms functionality, again read the source of
37 the details.
38
Daniel Vetterdf545c12012-12-04 10:34:46 +010039 The more comfortable way to run tests is with piglit. First grab piglit
40 from
41
42 git://anongit.freedesktop.org/piglit
43
44 and build it (no need to install anything). Then we need to link up the
45 i-g-t sources with piglit
46
47 piglit-sources $ cd bin
48 piglit-sources/bin $ ln $i-g-t-sources igt -s
49
50 The tests in the i-g-t sources need to have been built already. Then we
51 can run the testcases with (as usual as root, no other drm clients
52 running):
53
Daniel Vetterd0f3a0d2012-12-04 10:42:15 +010054 piglit-sources # ./piglit-run.py tests/igt.tests <results-file>
Daniel Vetterdf545c12012-12-04 10:34:46 +010055
56 The testlist is built at runtime, so no need to update anything in
57 piglit when adding new tests. See
58
59 piglit-sources $ ./piglit-run.py -h
60
61 for some useful options.
62
Daniel Vettereafdf502011-11-01 14:33:53 +010063lib/
64 Common helper functions and headers used by the other tools.
65
66man/
67 Manpages, unfortunately rather incomplete.
Eric Anholt676a1092009-03-27 16:03:02 -070068
Eric Anholt8c641832009-03-26 17:15:11 -070069tools/
70 This is a collection of debugging tools that had previously been
71 built with the 2D driver but not shipped. Some distros were hacking
72 up the 2D build to ship them. Instead, here's a separate package for
73 people debugging the driver.
Eric Anholt6abc9b12009-03-26 18:44:13 -070074
Daniel Vettereafdf502011-11-01 14:33:53 +010075 These tools generally must be run as root, safe for the ones that just
76 decode dumps.
Ben Widawsky3b10b7b2011-07-28 14:58:24 -070077
Ben Widawskyd8d114b2013-02-07 08:35:57 -080078tools/quick_dump
79 Quick dumper is a python tool built with SWIG bindings to
80 important libraries exported by the rest of the tool suite. The tool
81 itself is quite straight forward, and should also be a useful example
82 for others wishing to write python based i915 tools.
83
Ben Widawskyd8d114b2013-02-07 08:35:57 -080084 Note to package maintainers: It is not recommended to package
85 this directory, as the tool is not yet designed for wide usage. If the
86 package is installed via "make install" the users will have to set
Ben Widawskycf17d102013-02-19 09:53:43 -080087 their python library path appropriately. Use --disable-dumper
Ben Widawskyd8d114b2013-02-07 08:35:57 -080088
Ben Widawsky3b10b7b2011-07-28 14:58:24 -070089debugger/
90 This tool is to be used to do shader debugging. It acts like a
91 debug server accepting connections from debug clients such as
92 mesa. The connections is made with unix domain sockets, and at some
93 point it would be nice if this directory contained a library for
94 initiating connections with debug clients..
95
96 The debugger must be run as root: "sudo debugger/eudb"