119 Commits

Author SHA1 Message Date
Thomas Wood
1f9e055045 Update version to 1.12 and add the release date
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-09-11 15:15:13 +01:00
Thomas Wood
9ecb50e5c5 tools: install the register definition files
Install the register definition files and use them by default in
intel_reg.

v2: remove redundant path check

Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-09-08 16:14:45 +01:00
Thomas Wood
af97918494 tools: remove quick_dump
Remove quick_dump as it has been replaced by the intel_reg tool and move
the register definition files to tools/registers.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
2015-09-08 16:14:45 +01:00
Kristian Høgsberg Kristensen
5f9bc98a55 configure.ac: Fix chmod on intel_aubdump the right way
autoconf executes the init commands after each file it creates,
causing these errors at configure time:

  ...
  chmod: cannot access 'tools/intel_aubdump': No such file or directory
  config.status: creating tools/Makefile
  chmod: cannot access 'tools/intel_aubdump': No such file or directory
  config.status: creating tools/intel_aubdump
  config.status: creating tools/quick_dump/Makefile
  ...

Once it creates intel_aubdump, the errors go away. When I first added
the chmod command, I already had a tools/intel_aubdump in my tree and
didn't get the error.

Split the intel_aubdump creation into its own AC_CONFIG_FILES()
invocation to avoid this.

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
2015-08-05 11:58:59 -07:00
Kristian Høgsberg Kristensen
86de4c60f3 configure.ac: Fix the intel_aubdump chmod to use topbuilddir
Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
2015-08-04 15:11:55 -07:00
Kristian Høgsberg Kristensen
e6a5d799fc tools: Add LD_PRELOAD-based AUB dumper tool
This does everything the aub dump functionality in libdrm does, but
without being part of libdrm.  This moves the very developer oriented
functionality out of core libdrm and adds some flexibility in how we
activate it (we can specify filename, for example).  Most importantly,
this lets us dump aub files for tools and/or drivers that don't use
libdrm, without having to add that code to each of those projects.

The tool is used much like strace or valgrind.  For example:

  $ intel_aubdump -v --output=stuff.aub -- glxgears -geometry 500x500

will launch glxgears with its options and enable aub dumping and pass
the -v and --output=stuff.aub options to the aub dumper.

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
2015-07-31 10:40:04 -07:00
Thomas Wood
80f1553780 intel_reg: support platforms without sys/io.h
Based on an idea from Jani Nikula.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Derek Morton <derek.j.morton@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-07-20 18:13:37 +01:00
Paulo Zanoni
4deb562659 configure: require libdrm >= 2.4.55
And drop the now unnecessary universal plane definitions. The 2.4.55
version is already quite old, so we should be fine.

Thanks to Thomas Wood for quickly spotting this.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@>
2015-07-14 12:52:09 -03:00
Damien Lespiau
ec9e5996d1 build: Don't use automake's conditional in a Makefile.sources
I just remembered that those Makefile.sources files where also
included by the Android build system, so we can't use automake's
conditionals in there.

So, we want to use GNU make's one. Unfortunately, after all those years,
GNU automake still doesn't do anything useful with GNU make's ifeq:

  lib/Makefile.sources:66: error: else without if

automake will helpfully signal that the 'else' corresponding to the
'ifeq' doesn't have a corresponding 'if'. Well, yeah, thanks.

Fortunately, we can work around this by cunningly inserting a space
before 'ifeq', 'else' and 'endif' and fool automake's regex-based
checks.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-07-02 15:23:35 +01:00
Damien Lespiau
e5653d5f1d build: Add an option to not use the git hash in version
When developing, it's quite annoying that the version changes every
commit, causing the library to be rebuild and every single binary
re-linked.

Add a config option to skip that.

I remember Ville asking for this "feature" as well.

v2: Option is now called --disable-git-hash (Thomas)
    Various spelling mistakes (Thomas)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-07-02 11:54:12 +01:00
Thomas Wood
b88212c036 Update version to 1.11 and add the release date
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-06-11 16:08:23 +01:00
Damien Lespiau
fd772e32a2 build: Add the automake subdir-objects option
automake 1.14 was complaining here:

overlay/Makefile.am:44: warning: source file 'x11/x11-window.c' is in a
subdirectory, but option 'subdir-objects' is disabled.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-06-05 16:55:47 +01:00
Jani Nikula
4650d3406c man: add man page for intel_reg in reStructured text format
Produce the intel_reg man page from rst using rst2man. Also facilitate
writing any man page in reStructured text, as long as rst2man is
available.

v2: configure check for rst2man, credits to Thomas Wood for that.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2015-04-30 14:22:05 +03:00
Thomas Wood
76dad7f414 Add default debug flags for tests
Include debugging symbols in tests by default to improve stack traces
and also set the compiler optimisation level to improve the debugging
experience.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-03-26 15:50:05 +00:00
Thomas Wood
277ca2b992 lib: print a stack trace when a test assertion fails
Add an optional dependency on libunwind to print stack traces when a
test assertion fails.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-03-26 15:50:05 +00:00
Thomas Wood
e3e659163f Update version to 1.10 and add the release date
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-03-12 17:06:54 +00:00
Alan Coopersmith
95ea5d5c0b Provide sighandler_t fallback for non-GNU-libc platforms
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-01-06 09:29:45 +01:00
Alan Coopersmith
f04b9dfba0 Need to #include <libgen.h> for basename() on Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-01-06 09:29:45 +01:00
Alan Coopersmith
cf93bc8df9 Solaris needs to #include <sys/kd.h> instead of <linux/kd.h>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-01-06 09:29:45 +01:00
Thomas Wood
6262f353bb Update version to 1.9 and add the release date
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-12-12 15:27:08 +00:00
Thomas Wood
aa63fc740c configure: update bug reporting url
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-11-14 10:42:21 +00:00
Thomas Wood
4dd6e0edcf configure: require automake 1.12
The check tests require AM_TESTS_ENVIRONMENT, which was added in
automake 1.12.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-11-12 10:47:36 +00:00
Thomas Wood
c06016798c configure: fix issues when running outside the source tree
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-11-06 11:41:34 +00:00
Daniel Vetter
685e57736a Move library selftests to lib/tests
Again they're not really igt testcases so are in the way of
running spatch unconditionally. Move them someplace else.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-10-29 13:29:32 +01:00
Thomas Wood
48394471c5 configure: include the skylake quick_dump files in EXTRA_DIST
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-10-17 15:34:44 +01:00
Adam Sampson
b7d80d1047 Don't use += to append to a shell variable.
POSIX only requires "=" to be supported; "+=" works in bash but not in
dash.

Signed-off-by: Adam Sampson <ats@offog.org>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-10-09 11:01:13 +01:00
Adam Sampson
432a4b4881 Use = rather than == in test.
The POSIX standard only requires test to support "="; "==" works in bash
but not in dash. Other comparisons in configure.ac use "=" already.

Signed-off-by: Adam Sampson <ats@offog.org>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-10-09 11:01:13 +01:00
Rodrigo Vivi
d9d3f4b0d2 bump version to 1.8 and add the release date
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-08 22:44:42 -04:00
Chris Wilson
cfc6922328 configure: Only build overlay if dri2proto is present
Instead of making dri2proto mandatory, disable intel-gpu-overlay if it
is not installed.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-11 20:41:25 +01:00
Thomas Wood
c54ee9819a quick_dump: read the architecture files for items to add to EXTRA_DIST
Each architecture file contains a list of the text files it requires, so
use this to add to the list of files to distribute.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-06-12 10:12:13 +01:00
Rodrigo Vivi
32bb5d9f15 bump version to 1.7 and add the release date
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2014-06-09 11:30:28 -07:00
Mika Kuoppala
d60d4c80e5 tools/null_state_gen: generate null render state
Generate valid (null) render state for each gen. Output
it as a c source file with batch and relocations.

v2: noinst and vs_start fixed for BDW GT3 (Damien Lespiau)

Acked-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-06-03 13:49:23 +03:00
Damien Lespiau
707c839a6a build: Don't fail if SWIG isn't found
People from distros have reported that packaging the newer versions is
more difficult because we now depend on SWIG. We don't have to, it's
needed for the python dumper and is an optional build dependency.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-28 16:03:50 +02:00
Damien Lespiau
c196c14319 build: Define enable_gtk_doc when the m4 macro is missing
For setups where we don't have gtk-doc installed, ie when the
GTK_DOC_CHECK macro doesn't expand, we still need to populate the
enable_gtk_doc variable to provide a value to the configure summary.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-03-21 15:53:48 +00:00
Rodrigo Vivi
a095072b64 bump version to 1.6 and add the release date
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2014-03-13 07:52:47 -03:00
Daniel Vetter
a90846adf5 gtk-doc: Document the docs
- configure output to easily see whether docs are built or not
- small blurb in README

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-11 21:03:39 +01:00
Thomas Wood
14ea2a04eb Add API documentation support
Add optional support for building API documentation using gtk-doc.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-11 17:19:47 +01:00
Daniel Vetter
02a3270119 configure: Bump libdrm requirements 2014-03-07 09:23:58 +01:00
Ben Widawsky
01eeab9448 configure.ac: Fix shader debugger for real
I tried to get fancy before, but ended up pushing something which I
didn't test. Keep the thing simple and stupid, and just make it work.

Reported-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-02 20:10:01 -10:00
Ben Widawsky
9d6cfa6b59 configure.ac: Fixup conditional shader debugger
The original patch was incomplete. Testing no assembler build is a pain
for me. Sorry for the mess.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-30 10:41:43 -08:00
Ben Widawsky
3ed4b5bd11 configure.ac: Remove GEN4ASM define
This was a leftover hunk that got accidently merged.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-30 10:32:06 -08:00
Ben Widawsky
94b2b861f5 shader-debugger: Use in tree gen4asm
Reported-by: Patrick McMunn <doctorwhoguy@gmail.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-20 21:15:16 -08:00
Daniel Vetter
831a47196d lib: Add host platform to version string
This is import on systems where we compile 32bit tests that run on
64bit platforms.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-10 09:23:44 +01:00
Rodrigo Vivi
41b5fbfd60 bump version to 1.5 and add the release date
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-11-06 13:06:11 -02:00
Matt Turner
8fed3837c7 Depend on libdrm_intel >= 2.4.47.
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
2013-10-14 11:33:02 -07:00
Matt Turner
cd460f1a2c configure: Don't bail if libdrm_nouveau isn't available.
We were seriously *requiring* libdrm_nouveau unless explicitly disabled?

Acked-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-10-14 11:33:02 -07:00
Ben Widawsky
bc888c2b42 configure.ac: require dri2proto for overlay
With the introduction of

commit f9a50de3dcc501e930de6c60983a4feb57121e7e
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Aug 17 11:12:07 2013 +0100

    Introduce intel-gpu-overlay

dri2proto became a dependency (and there is no way to disable overlay
explicitly. The actual version chosen was arbitrarily stolen from mesa.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-10-05 16:21:11 -07:00
Rodrigo Vivi
be28ba071b bump version to 1.4 and add the release date
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-09-16 16:37:08 -03:00
Chris Wilson
ddcd1b2ee5 overlay: Add support for multi-monitor positioning
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 14:26:22 +01:00
Damien Lespiau
b5acc1061a build: Fix the overlay build summary at the end of configure
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 14:18:58 +01:00