<html><head></head><body>Wrap it in parens and it can span multiple lines<br><br><div class="gmail_quote">On March 13, 2018 5:40:15 PM PDT, Rob Clark <robdclark@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Tue, Mar 13, 2018 at 7:47 PM, Rob Clark <robdclark@gmail.com> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Tue, Mar 13, 2018 at 7:27 PM, Rob Clark <robdclark@gmail.com> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> On Tue, Mar 13, 2018 at 7:10 PM, Dylan Baker <dylan@pnwbakers.com> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> Quoting Rob Clark (2018-03-13 16:04:00)<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"> ---<br> I'm a bit unsure about the xcb-present version dependency, as that was<br> added in a different commit.  OTOH I guess Dave is building vulkan with<br> his patch so it is perhaps not a built-time dependency.<br><br>  meson.build | 11 ++++++++---<br>  1 file changed, 8 insertions(+), 3 deletions(-)<br><br> diff --git a/meson.build b/meson.build<br> index c201644c372..30f1919e6f5 100644<br> --- a/meson.build<br> +++ b/meson.build<br> @@ -1235,9 +1235,14 @@ if with_platform_x11<br>      dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')<br><br>      if with_dri3<br> -      pre_args += ['-DHAVE_DRI3', '-DHAVE_DRI3_MODIFIERS']<br> -      dep_xcb_dri3 = dependency('xcb-dri3', version : '>= 1.13')<br> -      dep_xcb_present = dependency('xcb-present', version: '>= 1.13')<br> +      pre_args += '-DHAVE_DRI3'<br> +      dep_xcb_dri3 = dependency('xcb-dri3')<br> +      dep_xcb_present = dependency('xcb-present')<br> +      # until xcb-dri3 has been around long enough to make a hard-dependency:<br> +      dep_xcb_dri3_modifiers = dependency('xcb-dri3', version : '>= 1.13', required : false)<br> +      if dep_xcb_dri3_modifiers.found()<br></blockquote><br> I think you could simplify this by doing:<br><br>          if dep_xcb_dri3.version().version_compare('>= 1.13')<br></blockquote><br> ahh, yeah, and I guess that will get rid of the confusing error msg<br> about xcb-dri3 1.13 not found..<br><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"><br> Or should we be checking for xcb_dri3 and xcb_present >= 1.13?<br></blockquote><br> I'm not entirely sure why we were checking for xcb-present >= 1.13..<br> if that is actually a build time requirement then I think Dave's<br> initial patch needs some more ifdef..  (but otoh, if it was, I guess<br> he would have noticed.)<br><br> Anyways, I did a build w/ anv+radv enabled with xcb-present == 1.12<br> (and xcb-dri3 1.12).. and 61309c2a727d52d543207d6ae79fcb3e68b5cff3<br> looks like it just cares about >= 1.12 of both of those (although not<br> sure if it is a compile time dependency).<br><br> So *possibly* for both meson and autotools we should require 1.12, and<br> optionally 1.13 for HAVE_DRI3_MODIFIERS?</blockquote><br><br> so mystery solved, Dave #ifdef'd out the present dependencies too ;-)<br><br> so this is what I end up with:<br><br> @@ -1235,9 +1235,14 @@ if with_platform_x11<br>      dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')<br><br>      if with_dri3<br> -      pre_args += ['-DHAVE_DRI3', '-DHAVE_DRI3_MODIFIERS']<br> -      dep_xcb_dri3 = dependency('xcb-dri3', version : '>= 1.13')<br> -      dep_xcb_present = dependency('xcb-present', version: '>= 1.13')<br> +      pre_args += '-DHAVE_DRI3'<br> +      dep_xcb_dri3 = dependency('xcb-dri3')<br> +      dep_xcb_present = dependency('xcb-present')<br> +      # until xcb-dri3 has been around long enough to make a hard-dependency:<br> +      if dep_xcb_dri3.version().version_compare('>= 1.13') and<br> +         dep_xcb_present.version().version_compare('>= 1.13')<br></blockquote><br>hmm, annoyingly enough I found that on rawhide (meson 0.45.0), I seem<br>to need the entire if statement on a single line, instead of split in<br>two like this.<br><br>BR,<br>-R<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> +        pre_args += '-DHAVE_DRI3_MODIFIERS'<br> +      endif<br>        dep_xcb_sync = dependency('xcb-sync')<br>        dep_xshmfence = dependency('xshmfence', version : '>= 1.1')<br>      endif<br></blockquote></pre></blockquote></div></body></html>