[Intel-gfx] [PATCH i-g-t] lib/drmtest: Decode driver flags on failure

Daniel Vetter daniel at ffwll.ch
Tue Jul 25 12:19:06 UTC 2017


On Tue, Jul 25, 2017 at 12:49:11PM +0100, Chris Wilson wrote:
> Quoting Daniel Vetter (2017-07-25 12:37:08)
> > I spent too much time going wtf why does this test not run until
> > realizing that vgem is missing. This should help a lot for tests that
> > need multiple different drm drivers.
> > 
> > Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
> > ---
> >  lib/drmtest.c | 21 ++++++++++++++++++++-
> >  1 file changed, 20 insertions(+), 1 deletion(-)
> > 
> > diff --git a/lib/drmtest.c b/lib/drmtest.c
> > index 480bd0b132cd..944c6e02fd31 100644
> > --- a/lib/drmtest.c
> > +++ b/lib/drmtest.c
> > @@ -341,6 +341,24 @@ static void quiescent_gpu_at_exit_render(int sig)
> >         at_exit_drm_render_fd = -1;
> >  }
> >  
> > +static const char *chipset_to_str(int chipset)
> > +{
> > +       switch (chipset) {
> > +       case DRIVER_INTEL:
> > +               return "intel";
> > +       case DRIVER_VC4:
> > +               return "vc4";
> > +       case DRIVER_VGEM:
> > +               return "vgem";
> > +       case DRIVER_VIRTIO:
> > +               return "virtio";
> > +       case DRIVER_AMDGPU:
> > +               return "amdgpu";
> case DRIVER_ANY:
> > +               return "any";
> > +       default:
> 		return "other";

Revised and pushed with Chris' irc-r-b.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list