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

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

 



On Thu, Jun 23, 2016 at 07:46:03PM +0300, Marius Vlad wrote:
> Signed-off-by: Marius Vlad <marius.c.vlad@xxxxxxxxx>
> CC: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> ---
>  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
_______________________________________________
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