[igt-dev] [PATCH i-g-t 10/24] kms_fence_pin_leak: Ask for the GPU before use
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Tue Mar 26 10:10:08 UTC 2019
On 22/03/2019 09:21, Chris Wilson wrote:
> Check that the GPU even exists before submitting a batch.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109589
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> tests/kms_fence_pin_leak.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/kms_fence_pin_leak.c b/tests/kms_fence_pin_leak.c
> index 62c52b627..e6c8b33c3 100644
> --- a/tests/kms_fence_pin_leak.c
> +++ b/tests/kms_fence_pin_leak.c
> @@ -201,6 +201,7 @@ igt_simple_main
> igt_skip_on_simulation();
>
> data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
> + igt_require_gem(data.drm_fd);
>
> data.devid = intel_get_drm_devid(data.drm_fd);
>
>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Regards,
Tvrtko
More information about the igt-dev
mailing list