[Mesa-dev] [PATCH 2/2] egl/surfaceless: Allow DRMless fallback.

Chad Versace chadversary at chromium.org
Tue Jul 31 02:46:16 UTC 2018


On Tue 17 Jul 2018, Eric Engestrom wrote:
> On Thursday, 2018-07-12 16:13:55 -0700, David Riley wrote:
> > Allow platform_surfaceless to use swrast even if DRM is not available.
> > To be used to allow a fuzzer for virgl to be run on a jailed VM without
> > hardware GL or DRM support.
> > 
> > Signed-off-by: David Riley <davidriley at chromium.org>
> > ---
> >  src/egl/drivers/dri2/platform_surfaceless.c | 20 ++++++++++++++++++++
> >  1 file changed, 20 insertions(+)
> > 
> > diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
> > index f5fe711..3b17e95 100644
> > --- a/src/egl/drivers/dri2/platform_surfaceless.c
> > +++ b/src/egl/drivers/dri2/platform_surfaceless.c
> > @@ -293,6 +293,7 @@ surfaceless_probe_device(_EGLDisplay *dpy, bool swrast)
> >     int fd;
> >     int i;
> >  
> > +   // Attempt to find DRM device.
> 
> Nit: we use C-style comments in Mesa (`/* foo */`).
> 
> This can be fixed up when pushing your patches, which are both:
> Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
> 
> Would you like me to push the patches for you?

Hi David & Eric, I pushed these to master.


More information about the mesa-dev mailing list