summaryrefslogtreecommitdiff
path: root/demos
AgeCommit message (Collapse)Author
2017-09-08demos: removeDaniel Vetter
The igt testcase themselves contain plenty of demos, libdrm also contains a bunch of demos, this here just bitrots. So let's remove it. v2: Rebase. v3: Also delete demos/Makefile from configure.ac. This broke clean builds starting with autogen.sh. Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Acked-by: Daniel Stone <daniels@collabora.com> Acked-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2017-06-07Android.mk: Use drm stubsArkadiusz Hiler
Use drm stubs that sit under lib/stubs. Also drop strange, nonexistent additions to LOCAL_C_INCLUDES. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2016-09-07demo/Makefile.source: Compile intel_sprite_on when HAVE_LIBDRM_INTEL.marius vlad
Introduced with commit cd86866dec. Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Reviewed-by: Robert Foss <robert.foss@collabora.com>
2016-08-04demos/Makefile: Replace automake specific name of listing in Makfile.sourcesRobert Foss
Replace the automake specific name of listings in Makefile.sources with something not automake specific. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-08-04demos/Makefile: Don't build tools that depend on libdrm_intelRobert Foss
Use the HAS_INTEL automake flag to avoid building tools that won't compile unless libdrm_intel is available in the build system. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-07-04demos/intel_sprite_on: Fix connector iteration bugjim.bride@linux.intel.com
Instead of looping until the first disconnected port is found, now go through all possible connectors, drawing the sprite on any connected display. v2: Print a message if we don't find any valid connectors. Signed-off-by: Jim Bride <jim.bride@linux.intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-11benchmarks/, overlay/, demos/, tools/, tests/: Add optional Werror.marius vlad
v2: Initially added Werror by default. Make it optional so it doesn't break android build and (potential) distros maintaing the package (Hinted by Damien Lespiau). --enable-werror will enable -Werror compiler flag. Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Acked-by: Damien Lespiau <damien.lespiau@intel.com>
2016-03-24lib: Add a GPU error detectorChris Wilson
If we listen to the uevents from the kernel, we can detect when the GPU hangs. This requires us to fork a helper process to do so and send a signal back to the parent. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-19lib/igt_aux: Divert ioctls for signal injectionChris Wilson
To simplify and speed up running interruptible tests, use a custom ioctl() function that control the signaling and detect when we need no more iterations to trigger an interruption. We use a realtime timer to inject the signal after a certain delay, increasing the delay on every loop to try and exercise different code paths within the function. The first delay is very short such that we hopefully enter the kernel with a pending signal. Clients should use struct igt_sigiter iter = {}; while (igt_sigiter_repeat(&iter, enable_interrupts=true)) do_test() to automatically repeat the test until we can inject no more signals into the ioctls. This is condensed into a macro igt_interruptible(enable_interrupts=true) do_test(); for convenience. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-10-09Make gem_mmap__{cpu,gtt,wc}() assert on failureVille Syrjälä
Rename the current gem_mmap__{cpu,gtt,wc}() functions into __gem_mmap__{cpu,gtt,wc}(), and add back wrappers with the original name that assert that the pointer is valid. Most callers will expect a valid pointer and shouldn't have to bother with failures. To avoid changing anything (yet), sed 's/gem_mmap__/__gem_mmap__/g' over the entire codebase. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-10-09s/gem_mmap/gem_mmap__gtt/Ville Syrjälä
Get rid of the gem_mmap() alias of gem_mmap__gtt(). I don't see any point in having it. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-26lib: print a stack trace when a test assertion failsThomas Wood
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>
2014-12-17Demos/Android.mk: build intel_sprite_onTim Gore
This reverts the effect of two commits 06fb6c233dd82aac766aa9206644f6eff668ca99 264e1ac10ac14a098a78cc9f96c4e7cabb124ee5 Both of these were to stop demos/intel_sprite_on from being built, but the first was just broken. So this commit re-enables building intel_sprite_on. However, intel_sprite_on will not build in recent Android trees. To overcome this the version of IGT kept in the Android repository will carry a patch to intel_sprite_on, and the automatic build test of IGT on android will patch the freedesktop code on the fly. Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-12-12Demos/Android.mk: dont build intel_sprite_onTim Gore
intel_sprite_on wont build on Android. Previous attempt to disable was just wrong! Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-12-12Android.mk: replace std=c99 with std=gnu99Tim Gore
The android makefiles were passing the -std=c99 flag to the compiler which disables the typeof keyword. This causes a build fail for a recent addition to igt_aux.h. Change this to -std=gnu99, which is the flag used in the linux build Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-12-12Demos/Android.mk: dont build intel_sprite_onTim Gore
intel_sprite_on wont build on Android. Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-11-25demos/intel_sprite_on: Added support to compile intel_sprite_on on Android.Gagandeep S Arora
Added Android.mk for intel_sprite_on. v2: Addressed review comments by Daniel Vetter. - Moved the cairo independent functions from igt_kms.c to igt_aux.c. Signed-off-by: Gagandeep S Arora <gagandeep.s.arora@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-10-29demos/intel_sprite_on: Added support to display all sprites.Gagandeep S Arora
Extended intel_sprite_on functionality to display all the available sprite planes on a particular connector. Signed-off-by: Gagandeep S Arora <gagandeep.s.arora@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-03-26lib: remove kmstest_create_fbDaniel Vetter
Use the new-style function using drm fourcc codes instead everywhere. To easily use thew fourcc based interface also expose bpp_depth_to_drm_format from the library. Finally include drm_fourcc.h from the igt_kms.h header since pretty much everyone needs this now. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-12lib: Move kms stuff from drmtest.c over to igt_kms.cOscar Mateo
This makes cairo dependencies easier to handle. Otherwise, we would have to litter drmtest all over with "#ifndef ANDROID" Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> [danvet: Add missing _GNU_SOURCE to igt_kms.c and missing include to intel_sprite_on.c] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-10-09lib/drmtest: extract rawer __gem_set_tilingDaniel Vetter
For tests that expect failures. Also apply the existing gem_set_tiling helper a bit wider. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12tests: use drmtest_skip to check for ringsDaniel Vetter
To simplify things add a set of gem_check_<ring> functions which take care of this. Since I've opted for static inlines drmtest.h grew a few more header includes which was a neat opportunity to dump a few redundant #defines. This kills all the skipped_all hand-rolled logic we have. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-06-06lib: move connector_type_str and co to drmtestImre Deak
These are used by multiple test cases, so make them shared. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2012-09-12intel_sprite_on: plane needs 16.16 width and heightBen Widawsky
This only ever worked because we used to have a bug in our driver which was fixed months ago by: commit b4db1e35ac59c144965f517bc575a0d75b60b03f Author: Jesse Barnes <jbarnes@virtuousgeek.org> Date: Tue Mar 20 10:59:09 2012 -0700 drm/i915: treat src w & h as fixed point in sprite handling code Reported-by: Armin Reese <armin.c.reese@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-09-12intel_sprite_on: coding style fixesBen Widawsky
It was driving me nuts... Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-09-08intel_sprite_on: Idententation + Copyright fixBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-30clang: Fix static analysis warnings from clangBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-05-22lib: extract kmstest_dump_modeDaniel Vetter
2012-05-22lib: extract kmstest_create_fbDaniel Vetter
We should get more kms tests soon, and not needing to copy-paste a nice test pattern should be useful. That establishes a firm depency of i-g-t on cairo over everything, but I don't care so much about that. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-20update .gitingoreDaniel Vetter
2012-03-20intel_sprite_on: kill overtly verbose and totally content-free commentsDaniel Vetter
/me just hates fluff Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-20intel_sprite_on: remove copy&pasted gem functionsDaniel Vetter
Can we just please stop this? Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-22demos/intel_sprite_on: build warning fixesDaniel Vetter
... from Armin Reese. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-12remove old .c filesDaniel Vetter
Oopps, I've forgotten about this in commit 9b32894937af27f9ba95ea572ac857d376fe9034 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Sat Feb 11 16:52:26 2012 +0100 prepend 'intel_' to installed programms Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-11prepend 'intel_' to installed programmsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-08add sprite demo from Armin ReeseDaniel Vetter
Also fixed up the copyright header a bit. No comments on the coding styled used ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>