[Intel-gfx] [PATCH i-g-t 2/2] lib/drmtest: Report proper err message when opening the driver.

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 23 19:54:11 UTC 2016


On Thu, Jun 23, 2016 at 07:46:03PM +0300, Marius Vlad wrote:
> Signed-off-by: Marius Vlad <marius.c.vlad at intel.com>
> CC: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  lib/drmtest.c | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index 1e28f60..d2ee2d1 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -261,7 +261,17 @@ int __drm_open_driver(int chipset)
>  		close(fd);
>  	}
>  
> -	igt_skip("No intel gpu found\n");
> +	switch (chipset & (DRIVER_INTEL | DRIVER_VC4 | DRIVER_VGEM)) {
> +	case DRIVER_INTEL:
> +		igt_skip("No intel gpu found\n");
> +	break;
> +	case DRIVER_VC4:
> +		igt_skip("No vc4 gpu found\n");
> +	break;
> +	case DRIVER_VGEM:
> +		igt_skip("No vgem support found\n");
> +	break;

That is just as silly as the first error message.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list