mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +00:00
Expand gem_set_cacheing testing to handle the proposed DISPLAY domain
This commit is contained in:
@@ -131,8 +131,9 @@ static void do_test(int fd, int cache_level,
|
||||
int loop)
|
||||
{
|
||||
if (cache_level != -1) {
|
||||
gem_set_cacheing(fd, tmp[0]->handle, cache_level);
|
||||
gem_set_cacheing(fd, tmp[1]->handle, cache_level);
|
||||
if (gem_set_cacheing(fd, tmp[0]->handle, cache_level) ||
|
||||
gem_set_cacheing(fd, tmp[1]->handle, cache_level))
|
||||
return;
|
||||
}
|
||||
|
||||
do {
|
||||
@@ -215,6 +216,15 @@ main(int argc, char **argv)
|
||||
do_test(fd, 1, src, start, dst, 100);
|
||||
drmtest_stop_signal_helper();
|
||||
}
|
||||
|
||||
if (drmtest_run_subtest("normal-display"))
|
||||
do_test(fd, 2, src, start, dst, 1);
|
||||
|
||||
if (drmtest_run_subtest("interruptible-display")) {
|
||||
drmtest_fork_signal_helper();
|
||||
do_test(fd, 2, src, start, dst, 100);
|
||||
drmtest_stop_signal_helper();
|
||||
}
|
||||
drm_intel_bo_unreference(src[0]);
|
||||
drm_intel_bo_unreference(src[1]);
|
||||
drm_intel_bo_unreference(dst[0]);
|
||||
|
||||
Reference in New Issue
Block a user