[igt-dev] [PATCH i-g-t v5 28/65] tests/gem_lut_handle: Require relocation support

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Tue Aug 10 03:33:29 UTC 2021


On Mon, Aug 09, 2021 at 03:04:56PM +0200, Zbigniew Kempczyński wrote:
> From: Andrzej Turko <andrzej.turko at linux.intel.com>
> 
> This test only exercises relocations so it must be skipped on generations
> which do not support them.
> 
> Signed-off-by: Andrzej Turko <andrzej.turko at linux.intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
>  tests/i915/gem_lut_handle.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/i915/gem_lut_handle.c b/tests/i915/gem_lut_handle.c
> index 64dbb87c5..32f76aaa0 100644
> --- a/tests/i915/gem_lut_handle.c
> +++ b/tests/i915/gem_lut_handle.c
> @@ -170,6 +170,7 @@ igt_simple_main
>  	int fd, i;
>  
>  	fd = drm_open_driver(DRIVER_INTEL);
> +	igt_require(gem_has_relocations(fd));
>  
>  	handle = gem_create(fd, 4096);
>  	gem_write(fd, handle, 0, batch, sizeof(batch));
> -- 
> 2.26.0
>

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

--
Zbigniew 


More information about the igt-dev mailing list