summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-01-10testdisplay: rename global fd variable to drm_fdDaniel Vetter1-35/+35
Shuts up compiler warnings about shadowing in functions. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10testdisplay: fixup smaller compiler warningsDaniel Vetter1-5/+3
const char * issues and redudant getopt stuff Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10tests: use the gem_write wrapper some moreDaniel Vetter2-19/+2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_set_domain and gem_syncDaniel Vetter8-83/+5
gem_sync just does a gtt sync by using set_domain(GTT, GTT). Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10tests: fixup new warningsDaniel Vetter10-53/+50
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_readDaniel Vetter8-105/+6
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_writeDaniel Vetter17-252/+14
Astonishing how many different function signatures are possible for something that simple. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_closeDaniel Vetter15-138/+0
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_set_tilingDaniel Vetter8-148/+11
Way too much copy-pasting going on here. Also fix a compiler warnings in gem_stress while fixup things up. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09testdisplay: update to new colorkey ioctlJesse Barnes1-3/+5
2012-01-08Fix pthread compiler flags to work on Solaris and with Studio compilerAlan Coopersmith2-2/+2
AC_USE_SYSTEM_EXTENSIONS is used to let autoconf take care of setting the right system defintions for POSIX threads & similar extensions to the base POSIX API. Since it will also #define _GNU_SOURCE 1, remove the extra setting to avoid compiler warnings about redefined macros. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-08Use sched_yield instead of pthread_yieldAlan Coopersmith1-1/+1
Despite the name implying it's a standard part of the POSIX threads API, pthread_yield is actually non-standard and less portable than sched_yield. For instance, Solaris only has sched_yield, and not pthread_yield. Since even the Linux man page suggests using sched_yield, just call that. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-04config: use project wide xorg warnings variableGaetan Nadon1-1/+1
Use CWARNFLAGS as in all of xorg. There seems to be no reason why this module should be different. The warnings were updated recently for those who install the latest util-macros. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-04Use standard .gitignore file and layoutGaetan Nadon1-0/+51
Reusing xorg code saves maintenance in the long term. Now that m4/.gitignore is removed, the -I m4 ${ACLOCAL_FLAGS} must be removed to avoid build breakage as m4 is generated and not part of the git source. Acked-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-18testdisplay: shut up compilerDaniel Vetter1-3/+1
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-18testdisplay: move drm_fourcc.h include under the #ifdef protectionDaniel Vetter1-1/+1
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-17tests/testdisplay.c: make the 3th pipe finish all the mode setting.Yi Sun1-1/+11
If test all modes rather than preferred mode, remove framebuffer and set CRTC to zero after each connector mode setting. Signed-off-by: Sun Yi <yi.sun@intel.com> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-12-14tests/gem_double_irq_loop: silence the compilerChris Wilson1-1/+1
gem_double_irq_loop.c: In function ‘dummy_reloc_loop’: gem_double_irq_loop.c:62:9: warning: unused variable ‘j’ [-Wunused-variable]
2011-12-14tests/gem_exec_blt: silence the compiler by failing on errorChris Wilson1-4/+7
gem_exec_blt.c: In function ‘gem_exec’: gem_exec_blt.c:174:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Propagate the failure and exit(1).
2011-12-14tests/gem_exec_nop: silence the compiler by failing on errorChris Wilson1-4/+7
gem_exec_nop.c: In function ‘exec’: gem_exec_nop.c:101:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Propagate the failure and exit(1).
2011-12-14tests/gem_stress: silence the compiler by using '%zu' for size_tChris Wilson1-1/+1
gem_stress.c: In function ‘main’: gem_stress.c:980:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
2011-12-14tests/gem_largeobject: silence the compilerChris Wilson1-1/+1
gem_largeobject.c: In function ‘test_large_object’: gem_largeobject.c:95:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2011-12-14testdisplay: don't test planes if i915 color key ioctl is not availableJesse Barnes1-1/+1
2011-12-07testdisplay: update for final plane & fb ABIJesse Barnes1-28/+58
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-12-06tests/gem_partial_pwrite_pread: don't trash gtt unnecessarilyDaniel Vetter1-1/+2
On chips that don't have a unmappable gtt part it's utterly pointless. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests: add gem_partial_pwrite_preadDaniel Vetter2-0/+284
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_reloc_vs_gpu: fixup this messDaniel Vetter1-4/+5
- fixup pitch mess noticed by Chris Wilson. - we need to diable bo reuse otherwise the kernel won't do the relocs (we might get an already gtt-bound batch from the dummy load). Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_reloc_vs_gpu: emit special batch on blt ring on gen6+Daniel Vetter1-2/+8
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_reloc_vs_gpu: switch to COLOR_BLT instead of PIPE_CONTROLDaniel Vetter1-33/+18
Less fancy command that works everywhere. Suggested by Chris Wilons. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_tiled_pread_pwrite: kill set-but-unsed warningDaniel Vetter1-3/+0
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests: add gem_reloc_vs_gpuDaniel Vetter2-0/+216
Tests whether the kernel properly waits for the gpu before applying a reloc. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02Revert some accidental thingsDaniel Vetter1-2/+2
... somehow slipped in. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02tests: add gem_exec_faulting_relocDaniel Vetter2-0/+290
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02tests: add gem_exec_bad_domainsDaniel Vetter3-3/+148
To check whether the kernel properly rejects non-gpu domains in relocs. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02tests: add gem_tiled_pread_pwriteDaniel Vetter2-0/+231
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-01tests/gem_gtt_speed: Add modes that force that to the gtt domainDaniel Vetter1-2/+68
No sane userspace doesn't upload data to the gpu without actually using it there ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27tests: implement snb+ XY_SETUP_CLIP_BLT workaroundDaniel Vetter2-0/+16
Better safe than sorry. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27tests/sysfs_edit_reader: posixifyDaniel Vetter1-1/+1
Debian's default sh complains ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27tests: properly terminate tests when values mismatchDaniel Vetter5-5/+15
Not much use running them in the test rig otherwise. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-11tests/gem_hang: fix copy-paste problemEugeni Dodonov1-1/+1
I suspect that we should do different things for different pipes.. Spotted by Thomas Jarosh on #intel-gfx freenode. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-10tests: add a test for checking edid reading delaysEugeni Dodonov2-0/+21
With base on EDID timing testing, when we take more than 1s to run xrandr command, something is wrong.. So add this test for testing the time we take to read the status of all the connectors from sysfs. It should do us an average picture of how long we'd take to run xrandr (roughtly 2x that value). Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-10tests: add test for kernel segmentation faultEugeni Dodonov2-0/+35
As asked by Daniel Vetter, this is a tech which checks if we can cause division by zero in kernel by reading the i915_emon_status debugfs entry repeatably. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-08tests: disable pipe_control on i965gDaniel Vetter1-0/+4
That hw is broken. Reported-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-04testdisplay: Round tiled allocations up to pot stride and fence sizeChris Wilson1-4/+19
Be simple and use the strictest requirements from gen2/3 with old kernels so that this simply works everywhere. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42585
2011-11-03testdisplay: find planes for each pipeJesse Barnes1-1/+3
Fixes a bug where we were masking against the wrong value.
2011-11-03testdisplay: update to new addfb2 definitionJesse Barnes1-4/+6
2011-11-01always require libdrmDaniel Vetter1-2/+0
... and also add the missing files to lib/Makefile.am Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01tests/gem_tiled_pread: fixup detiler for gen2Daniel Vetter1-8/+26
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01tests/gem_largeobject: accomodate for puny aperturesDaniel Vetter1-2/+21
... like on my i855gm. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31tests: mark gem_bad_address as HANGDaniel Vetter1-1/+1
Kills my little i855gm. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>