Rob Clark
ef1b958cc8
omap: add omapdrm support
...
This adds libdrm_omap helper layer (as used by xf86-video-omap,
omapdrmtest, etc).
Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
[danvet: pushed for Rob, he doesn't yet have commit access.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-28 23:00:14 +02:00
Chris Wilson
ef20301a11
tests/gem_flink: Check for MASTER before proceeding
...
gem_flink|gem_open are DRM_AUTH ioctl, and being lazy we do not
establish ourselves as authenticated before testing the ioctls. So
instead of aborting, skip the test unless we have root privileges (and
so DRM_MASTER and the DRM_AUTH restriction no longer applies).
A future test could assert that the flink fails without proper
authentication.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43924
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-18 14:03:18 +00:00
Dave Airlie
902ee661f1
test/radeon: add missing files for dist
2011-12-05 21:24:48 +00:00
Jerome Glisse
ca4971292c
tests/radeon: radeon specific test
...
Initial test only include ttm test for stressing ttm memory
allocations.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-11-10 17:14:42 -05:00
Jakob Bornecrantz
d23146f3f0
modetest: Call dirty fb on modeset
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19 13:35:07 +02:00
Jakob Bornecrantz
680b9c4fa3
modetest: Print extra info if we fail to create a framebuffer
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19 13:35:07 +02:00
Jakob Bornecrantz
3c8adda6e1
modetest: Check error message from pageflip ioctl
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19 13:35:07 +02:00
Jakob Bornecrantz
c2925e5197
vbltest: Check error codes returned from libdrm
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19 13:35:07 +02:00
Jakob Bornecrantz
dc11db2e28
tests: Add vmwgfx driver to probed drivers in tests
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19 13:35:06 +02:00
Jesse Barnes
b317c96361
modetest: use 24 bit depth on the framebuffer
...
It's more compatible; at least the Intel driver now rejects 32 bit
depths since it generally can't support real 32 bit framebuffers
(supports 30, 36, and 64 bit, but not 32).
2011-10-11 11:10:55 -07:00
Dave Airlie
c82ef03e4c
drmtest: make check should fail so hard on unable to open device
2011-09-26 16:03:20 +01:00
Dave Airlie
3a551c1274
drm/test: handle usub being empty
...
fixes a segfault on make check seen in tinderbox
2011-09-26 15:54:13 +01:00
Matt Turner
1459cb9252
modeprint.c: use PRIu64 for printing uint64_t
...
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-21 11:02:55 -04:00
Kristian Høgsberg
edd41db37d
Build modetest for all chipsets, always build modeprint
2011-03-03 21:35:28 -05:00
Matt Turner
3293eb95ca
don't try to build modetest without libkms
...
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-03-03 21:27:24 -05:00
Benjamin Franzke
a697fb6aca
modetest: Do no flip twice to a current front buffer
...
The incorrect order was:
fb, other_fb, other_fb, fb_id, other_fb, ..
2011-02-17 20:40:30 +01:00
Benjamin Franzke
51c6ae4c3a
tests/modeprint: Output masks as hex numbers
2011-02-17 14:09:12 +01:00
Benjamin Franzke
1776246785
tests/modeprint: Remove needless dependency on drm_intel
2011-02-17 14:07:58 +01:00
Benjamin Franzke
8fef29093f
modetest: Create buffers using libkms
2011-02-17 14:06:07 +01:00
Chris Wilson
000a0972c2
tests: Update for ENOENT returns from unknown handles
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-10 12:10:13 +00:00
Chris Wilson
7ec9a1effa
modetest: Fix drawing routines to use stride.
2010-09-09 18:57:28 +01:00
Jesse Barnes
0da84f89c2
modetest: align fb pitch to 64 bytes
...
Docs say this is necessary, and the kernel now enforces this.
2010-09-09 10:27:22 -07:00
Jesse Barnes
b8abe6139e
modetest: add edp and TV connector names to the connector name array
2010-09-07 13:10:15 -07:00
Fernando Carrijo
c570b4b97b
Purge macro NEED_REPLIES
...
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-07-01 13:12:55 -06:00
Jonathan Callen
52a3e9df62
Only build tests in make check
...
Currently, all the tests for libdrm are built during 'make all', even
if you do not wish to run tests. Attached is a patch, based on
version 2.4.15, to make the tests build in 'make check'.
2010-05-12 13:55:54 -04:00
Michel Dänzer
6293152eb0
vbltest: Doesn't need intel stuff.
...
Fixes build without libdrm_intel.
2010-04-28 15:27:35 +02:00
Jesse Barnes
c42d1a10e3
tests: add new vblank test
...
Simple test for event frequency.
2010-04-27 15:43:44 -04:00
Jesse Barnes
e6b3f906ce
modetest: add optional select codepath
...
For misc. testing.
2010-03-26 13:14:38 -07:00
Marcin Kościelnicki
9a37455b35
tests/modetest: Don't get_props on a connector after freeing it.
2010-02-28 00:25:22 +00:00
Marcin Kościelnicki
694ef59532
tests: vrefresh is actually not * 1000.
2010-02-28 00:25:22 +00:00
Marcin Kościelnicki
ecb668e1ef
tests: Add nouveau to list of supported modules.
2010-02-28 00:25:22 +00:00
Matthew W. S. Bell
e4a519635f
Tidy up compile warnings by cleaning up types.
2010-02-04 19:45:10 -05:00
Jakob Bornecrantz
44a0e0a099
libkms: Rework interface to not duplicate fields from kms and make formats explicit
...
List of changes:
Fixes the cursor size to 64x64, you still need ti supply width and height
Explicitly make the cursor format A8R8G8B8
Explicitly make the scanout format X8R8G8B8
2010-01-28 17:32:54 +01:00
Alan Coopersmith
dc1ed9952e
Support gcc's __FUNCTION__ for people using other compilers
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-16 19:37:06 -08:00
Alan Coopersmith
fe7b93fb49
Include alloca.h in tests/drmstat.c when configure detects it
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-16 19:37:05 -08:00
Jakob Bornecrantz
06a2d6567e
tests: Update kmstest a bit
2010-01-12 22:35:28 +01:00
Jakob Bornecrantz
d207a38701
tests: Add a very small libkms test
2010-01-08 15:34:44 +00:00
Kristian Høgsberg
59d97e7d68
modetest: Error out if pageflipping is requested but not available
2009-12-15 08:44:40 -05:00
Jesse Barnes
6f1eba0548
modetest: fix build error due to page_flip_handler name change
...
Forgot to update this when pushing the pageflip bits.
2009-12-04 09:09:19 -08:00
Jesse Barnes
53addc5d6e
Merge branch 'pageflip' of git://people.freedesktop.org/~jbarnes/drm
...
Conflicts:
include/drm/drm.h - RMFB had its signature changed to avoid uint32_t
2009-12-03 14:17:26 -08:00
Kristian Høgsberg
22d4666904
Add drmGetDeviceNameFromFd function
...
Determines the /dev filename of the drm fd argument.
2009-11-23 20:51:34 -05:00
Kristian Høgsberg
1e1b3c0a93
modetest: add pageflip test case to modetest
2009-11-20 14:53:38 -08:00
Kristian Høgsberg
4f57abfe66
Move libdrm/ up one level
2009-11-17 11:15:06 -05:00
Kristian Høgsberg
a66cf9ce68
Use headers copied from kernel instead of shared-core
2009-11-17 10:54:11 -05:00
Chris Wilson
ac34f599ea
tests: Disable intel-specific tests with --disable-intel
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-10-03 23:18:19 +01:00
Jesse Barnes
81644198ae
modetest: use gtt unmap for object
...
Match gtt map/unmap for correctness.
2009-06-22 12:27:49 -07:00
Kristian Høgsberg
ec9b7b320a
test: Avoid recursive dependency in makefile
2009-04-09 15:17:51 -04:00
Kristian Høgsberg
a85e07b903
test: Makefile.am grammar nazi
2009-04-09 15:02:40 -04:00
Dave Airlie
1faab66cfd
drm: fix test makefile
...
no idea if this is correct but it works so meh
2009-04-07 09:26:32 +10:00
Kristian Høgsberg
751db3fe27
Skip tests that require root
...
This lets us do make distcheck as non-root.
2009-04-06 17:22:10 -04:00