Re: [i-g-t PATCH v1 01/14] lib: add igt_require_intel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 02, 2016 at 03:00:08PM +0100, Tomeu Vizoso wrote:
> Add function that requires that the driver we are talking to is i915.
> 
> This allows us to skip subtests that are specific to that driver.
> 
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx>
> ---
> 
>  lib/drmtest.c | 5 +++++
>  lib/drmtest.h | 2 ++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index 7b2227fe0f6a..bb9ca507a922 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -399,3 +399,8 @@ int drm_open_driver_render(int chipset)
>  
>  	return fd;
>  }
> +
> +void igt_require_intel(int fd)
> +{
> +	igt_require(is_i915_device(fd) && is_intel(fd));
> +}

If you quickly change is_intel() to has_known_intel_chipset() this then
reads much better.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux