[igt-dev] [i-g-t] tests/i915/gem_bad_reloc: Check reloc support

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed May 19 13:37:39 UTC 2021


On Wed, May 19, 2021 at 03:41:24PM +0530, Tejas Upadhyay wrote:
> GEN12/12+ has no reloc support, thus need to check
> reloc support in the test.
> 
> Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay at intel.com>

Indeed, with a TGL as an exception.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

> ---
>  tests/i915/gem_bad_reloc.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/i915/gem_bad_reloc.c b/tests/i915/gem_bad_reloc.c
> index 6acc1724..3d4834bc 100644
> --- a/tests/i915/gem_bad_reloc.c
> +++ b/tests/i915/gem_bad_reloc.c
> @@ -191,6 +191,8 @@ igt_main
>  	igt_fixture {
>  		fd = drm_open_driver(DRIVER_INTEL);
>  		igt_require_gem(fd);
> +		/* Check if relocations supported by platform */
> +		igt_require(gem_has_relocations(fd));
>  		gem_require_blitter(fd);
>  	}
>  
> -- 
> 2.31.1
> 
> _______________________________________________
> 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