[igt-dev] [PATCH i-g-t] kms_fence_pin_leak: check for availabile fences
Ramalingam C
ramalingam.c at intel.com
Fri Feb 7 13:56:06 UTC 2020
On 2020-02-06 at 21:26:52 -0800, Ashutosh Dixit wrote:
> Need fences to leak fences.
>
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
> 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 8c9e10a56..1ac65e8a1 100644
> --- a/tests/kms_fence_pin_leak.c
> +++ b/tests/kms_fence_pin_leak.c
> @@ -200,6 +200,7 @@ igt_simple_main
>
> data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
> igt_require_gem(data.drm_fd);
> + igt_require(gem_available_fences(data.drm_fd) > 0);
>From documentation, seams this gem_available_fences is Only relevant for pre-gen4.
after the gen4 we dont use the fences or we can't use this method to get the fence
count?
Ram
>
> data.devid = intel_get_drm_devid(data.drm_fd);
>
> --
> 2.25.0
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list