[igt-dev] [PATCH i-g-t] igt/gem_pwrite_pread: Requires GEM

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Fri Jul 6 13:40:11 UTC 2018


On 04/07/2018 15:38, Chris Wilson wrote:
> Mark up gem_pwrite_pread's dependence on a functioning GPU, by calling
> igt_require_gem in its setup fixture.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>   tests/gem_pwrite_pread.c               | 1 +
>   tests/gem_tiled_partial_pwrite_pread.c | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c
> index 383a57f72..f91fc7c4f 100644
> --- a/tests/gem_pwrite_pread.c
> +++ b/tests/gem_pwrite_pread.c
> @@ -272,6 +272,7 @@ int main(int argc, char **argv)
>   		uint32_t devid;
>   
>   		fd = drm_open_driver(DRIVER_INTEL);
> +		igt_require_gem(fd);
>   
>   		dst = gem_create(fd, object_size);
>   		src = gem_create(fd, object_size);
> diff --git a/tests/gem_tiled_partial_pwrite_pread.c b/tests/gem_tiled_partial_pwrite_pread.c
> index fe573c37c..39779dbed 100644
> --- a/tests/gem_tiled_partial_pwrite_pread.c
> +++ b/tests/gem_tiled_partial_pwrite_pread.c
> @@ -259,6 +259,7 @@ igt_main
>   
>   	igt_fixture {
>   		fd = drm_open_driver(DRIVER_INTEL);
> +		igt_require_gem(fd);
>   
>   		bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
>   		//drm_intel_bufmgr_gem_enable_reuse(bufmgr);
> 

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the igt-dev mailing list