[Mesa-dev] [PATCH 2/2] meson+dri3: allow building against older xcb (v3)

Dylan Baker dylan at pnwbakers.com
Wed Mar 14 16:44:39 UTC 2018


Quoting Dylan Baker (2018-03-14 09:42:36)
> Quoting Rob Clark (2018-03-14 06:04:58)
> > Similar to previous patch, make xcb 1.13 optional.
> > 
> > Signed-off-by: Rob Clark <robdclark at gmail.com>
> > ---
> >  meson.build | 11 ++++++++---
> >  1 file changed, 8 insertions(+), 3 deletions(-)
> > 
> > diff --git a/meson.build b/meson.build
> > index c201644c372..0e2f73e67b6 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -1235,9 +1235,14 @@ if with_platform_x11
> >      dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')
> >  
> >      if with_dri3
> > -      pre_args += ['-DHAVE_DRI3', '-DHAVE_DRI3_MODIFIERS']
> > -      dep_xcb_dri3 = dependency('xcb-dri3', version : '>= 1.13')
> > -      dep_xcb_present = dependency('xcb-present', version: '>= 1.13')
> > +      pre_args += '-DHAVE_DRI3'
> > +      dep_xcb_dri3 = dependency('xcb-dri3')
> > +      dep_xcb_present = dependency('xcb-present')
> > +      # until xcb-dri3 has been around long enough to make a hard-dependency:
> > +      if (dep_xcb_dri3.version().version_compare('>= 1.13') and
> > +          dep_xcb_present.version().version_compare('>= 1.13'))
> > +        pre_args += '-DHAVE_DRI3_MODIFIERS'
> > +      endif
> >        dep_xcb_sync = dependency('xcb-sync')
> >        dep_xshmfence = dependency('xshmfence', version : '>= 1.1')
> >      endif
> > -- 
> > 2.14.3
> > 
> 
> I don't care about building against old versions of xcb either, but this is very
> minimally intrusive so I don't have a problem with it,
> 
> Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

Oh, just this patch, I'm not qualified to review the first one :)

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180314/50c5b09a/attachment.sig>


More information about the mesa-dev mailing list