summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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>
2012-02-06tests/testdisplay.c: rewite function dump_connectors and dump_crtcs.Yi Sun
Replace the globe variable drm_fd with local variable passed from parameter. Signed-off-by: Yi Sun <yi.sun@intel.com> [danvet: fixup whitespace] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-06tests/testdisplay.c: Fix the black screen issue while force mode.Yi Sun
Replace the 8 globe force mode variables with a struct drmModeInfo variable. Next step, we could reduce the number of globe veriables, to be convenient to call the functions. Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-31gem_partial_pwrite_pread: add progress indicatorDaniel Vetter
Without optimized pread/pwrite this test takes forever. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24drmtest: add progress indicatorDaniel Vetter
Some test that trash the aperture necessarily need to take forever, so add a little progress indicator to keep worried minds at peace. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24tests: add gem_cs_prefetchDaniel Vetter
Tested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24testdisplay: make udev optionalDaniel Vetter
Hopefully this makes Solaris happy. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24testdisplay: extract hotplug codeDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-23tests/gem_tiled_swapping: be more conservative with the swap requirementsDaniel Vetter
Blew up and angered the OOM killer on one of my machines. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22tests: add gem_tiled_swappingDaniel Vetter
Also add a drmtest_exchange_int helper, might come handy at other places. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22lib: extract drmtest_permute_arrayDaniel Vetter
Lots of tests need to create havoc to LRUs in the kernel or otherwise need to shuffle things around a bit. So make a small array permutation function available. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22Revert "tests/gem_tiled_pread_pwrite: actually try to use more than total ram"Daniel Vetter
This test is actually not really designed to test swap. This reverts commit 6d755c39d38e9f0e5a991933cc82e015d1ccd272. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22tests/gem_tiled_pread_pwrite: actually try to use more than total ramDaniel Vetter
Luckily there's usually enough other stuff around to waste the last few mb ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-19tests: make testdisplay non-optionalDaniel Vetter
Not testing modesetting should not be an option. Also this hopefully prevents testdisplay build-breakage from lingering on for days like it has in the past. And we want to eventually test the gem/kms cross-section, i.e. pageflips. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18lib: extract rendercopy functions from gem_stressDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: s/gem_stress.h/rendercopy.hDaniel Vetter
2012-01-18gem_stress: move keep_gpu_busy stuff out of render copy functionsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: move option struct out of headerDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: add width/height arg to rendercpy functionsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: move a few things out of gem_stress.hDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: pass batch as arg to render_copy functionsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: remove logical_tile_no arg from render_copy functionsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: add buf->sizeDaniel Vetter
Removes a dependency on gem_stress internals from the rendercpy functions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15lib/drmtest: extract mappable aperture trasher infrastructureDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15lib/drmtest: extract gem_aperture_sizeDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15tests: update .gitignoreDaniel Vetter
2012-01-15tests: add ZZ_hangmanDaniel Vetter
Not yet enabled by default because the kernel can't recover from this on chips where we don't have a gpu reset implemented. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15tests: add ZZ_check_dmesgDaniel Vetter
This way the testsuit automatically fails if we hit a DRM_ERROR or a WARN/BUG somewhere. ... i.e. this is the Jesse Barnes catcher ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11tests: add drm_vma_limiter_cached to check libdrm cache mmap pruningDaniel Vetter
Suggested by Chris Wilson. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11lib/drmtest: extract helpers for signal interruptionsDaniel Vetter
Also add some hackish stat to check it works. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11tests: add drm_vma_limiter variants that only check gtt/cpu mmapsDaniel Vetter
Suggested by Chris Wilson. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11tests: add drm_vma_limiterroot
v2: Also check whether a 2nd mmap on the same bo still works. Suggested by Chris Wilson. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10tests/gem_fenced_exec_trash: use drmtest helpers moreroot
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_mmapDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_createDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10testdisplay: rename global fd variable to drm_fdDaniel Vetter
Shuts up compiler warnings about shadowing in functions. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10testdisplay: fixup smaller compiler warningsDaniel Vetter
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 Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_set_domain and gem_syncDaniel Vetter
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 Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_readDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_writeDaniel Vetter
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 Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_set_tilingDaniel Vetter
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 Barnes
2012-01-08Fix pthread compiler flags to work on Solaris and with Studio compilerAlan Coopersmith
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 Coopersmith
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 Nadon
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 Nadon
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 Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>