mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 00:36:16 +00:00
tests/gem_linear|tiled_blits: convert to subtests
Finer granularity for nightly runs and regression reporting is always nice. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
bc388b54d4
commit
9360df4ab3
@ -26,10 +26,12 @@ TESTS_progs_M = \
|
|||||||
gem_fence_thrash \
|
gem_fence_thrash \
|
||||||
gem_flink \
|
gem_flink \
|
||||||
gem_gtt_concurrent_blit \
|
gem_gtt_concurrent_blit \
|
||||||
|
gem_linear_blits \
|
||||||
gem_mmap_gtt \
|
gem_mmap_gtt \
|
||||||
gem_partial_pwrite_pread \
|
gem_partial_pwrite_pread \
|
||||||
gem_ringfill \
|
gem_ringfill \
|
||||||
gem_set_tiling_vs_blt \
|
gem_set_tiling_vs_blt \
|
||||||
|
gem_tiled_blits \
|
||||||
gem_tiled_partial_pwrite_pread \
|
gem_tiled_partial_pwrite_pread \
|
||||||
$(NOUVEAU_TESTS_M) \
|
$(NOUVEAU_TESTS_M) \
|
||||||
kms_flip \
|
kms_flip \
|
||||||
@ -58,11 +60,9 @@ TESTS_progs = \
|
|||||||
gem_tiled_pread \
|
gem_tiled_pread \
|
||||||
gem_tiled_pread_pwrite \
|
gem_tiled_pread_pwrite \
|
||||||
gem_tiled_swapping \
|
gem_tiled_swapping \
|
||||||
gem_linear_blits \
|
|
||||||
gem_vmap_blits \
|
gem_vmap_blits \
|
||||||
gem_threaded_access_tiled \
|
gem_threaded_access_tiled \
|
||||||
gem_seqno_wrap \
|
gem_seqno_wrap \
|
||||||
gem_tiled_blits \
|
|
||||||
gem_tiled_fence_blits \
|
gem_tiled_fence_blits \
|
||||||
gem_largeobject \
|
gem_largeobject \
|
||||||
gem_bad_length \
|
gem_bad_length \
|
||||||
|
@ -238,11 +238,13 @@ static void run_test(int fd, int count)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int fd, count;
|
int fd, count = 0;
|
||||||
|
|
||||||
|
drmtest_subtest_init(argc, argv);
|
||||||
|
|
||||||
fd = drm_open_any();
|
fd = drm_open_any();
|
||||||
|
|
||||||
count = 0;
|
if (!drmtest_only_list_subtests()) {
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
count = atoi(argv[1]);
|
count = atoi(argv[1]);
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
@ -258,13 +260,16 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Using %d 1MiB buffers\n", count);
|
printf("Using %d 1MiB buffers\n", count);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (drmtest_run_subtest("normal"))
|
||||||
run_test(fd, count);
|
run_test(fd, count);
|
||||||
|
|
||||||
/* and repeat under the rude interrupter */
|
if (drmtest_run_subtest("interrutible")) {
|
||||||
drmtest_fork_signal_helper();
|
drmtest_fork_signal_helper();
|
||||||
run_test(fd, count);
|
run_test(fd, count);
|
||||||
drmtest_stop_signal_helper();
|
drmtest_stop_signal_helper();
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -185,11 +185,13 @@ static void run_test(int count)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int fd, count;
|
int fd, count = 0;
|
||||||
|
|
||||||
|
drmtest_subtest_init(argc, argv);
|
||||||
|
|
||||||
fd = drm_open_any();
|
fd = drm_open_any();
|
||||||
|
|
||||||
count = 0;
|
if (!drmtest_only_list_subtests()) {
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
count = atoi(argv[1]);
|
count = atoi(argv[1]);
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
@ -206,18 +208,21 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Using %d 1MiB buffers\n", count);
|
printf("Using %d 1MiB buffers\n", count);
|
||||||
|
}
|
||||||
|
|
||||||
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
|
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
|
||||||
drm_intel_bufmgr_gem_enable_reuse(bufmgr);
|
drm_intel_bufmgr_gem_enable_reuse(bufmgr);
|
||||||
drm_intel_bufmgr_gem_set_vma_cache_size(bufmgr, 32);
|
drm_intel_bufmgr_gem_set_vma_cache_size(bufmgr, 32);
|
||||||
batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd));
|
batch = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd));
|
||||||
|
|
||||||
|
if (drmtest_run_subtest("normal"))
|
||||||
run_test(count);
|
run_test(count);
|
||||||
|
|
||||||
/* and again whilst being rudely interrupted */
|
if (drmtest_run_subtest("interrutible")) {
|
||||||
drmtest_fork_signal_helper();
|
drmtest_fork_signal_helper();
|
||||||
run_test(count);
|
run_test(count);
|
||||||
drmtest_stop_signal_helper();
|
drmtest_stop_signal_helper();
|
||||||
|
}
|
||||||
|
|
||||||
intel_batchbuffer_free(batch);
|
intel_batchbuffer_free(batch);
|
||||||
drm_intel_bufmgr_destroy(bufmgr);
|
drm_intel_bufmgr_destroy(bufmgr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user