mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
lib/drmtest: don't dup quiescent fd
If we dup the fd, we are in mercy of the context banning of the test application. Better to have our own to guarantee that gem_quiescent_gpu won't find itself banned on exit. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
This commit is contained in:
parent
d983a47f14
commit
2f2c491cf3
@ -302,7 +302,7 @@ int drm_open_any(void)
|
||||
return fd;
|
||||
|
||||
gem_quiescent_gpu(fd);
|
||||
at_exit_drm_fd = dup(fd);
|
||||
at_exit_drm_fd = __drm_open_any();
|
||||
igt_install_exit_handler(quiescent_gpu_at_exit);
|
||||
|
||||
return fd;
|
||||
@ -328,7 +328,7 @@ int drm_open_any_render(void)
|
||||
if (__sync_fetch_and_add(&open_count, 1))
|
||||
return fd;
|
||||
|
||||
at_exit_drm_render_fd = dup(fd);
|
||||
at_exit_drm_render_fd = __drm_open_any();
|
||||
gem_quiescent_gpu(fd);
|
||||
igt_install_exit_handler(quiescent_gpu_at_exit_render);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user