On 12/01/2018 17:25, Dylan Baker wrote:
meson considers classic swrast to be a dri driver, I know it's not exactly
accurate, but, at least for me, it made the build system easier to reason about.

I think maybe the point here is that '-Ddri-drivers= -Dgallium-drivers= -Dglx=dri' (or at least, it's autotools equivalent) is a valid configuration, and gets you a libGL that falls back to indirect, since no swrast or real DRI driver can be loaded[*]. (Maybe it's even the only way to get that?)

[*] on Windows, it also hits some platform-specific client-side rendering first; on OSX, that's all it does (due to some badness I have some half-finished patches to fix...)

Quoting Adam Jackson (2018-01-12 09:06:37)
On Fri, 2018-01-12 at 13:18 +0000, Jon Turney wrote:
'meson -Ddri-drivers= -Dgallium-drivers=swrast -Dglx=dri' fails with 'dri
based GLX requires at least one DRI driver'

Signed-off-by: Jon Turney <jon.tur...@dronecode.org.uk>
---
  meson.build         | 2 +-
  src/glx/meson.build | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 77e4e894b23..dd8e6145edb 100644
--- a/meson.build
+++ b/meson.build
@@ -323,7 +323,7 @@ if with_glx != 'disabled'
      if with_dri
        error('xlib conflicts with any dri driver')
      endif
-  elif with_glx == 'dri' and not with_dri
+  elif with_glx == 'dri' and not (with_dri or with_gallium)
      error('dri based GLX requires at least one DRI driver')

We should just remove this check. libGL doesn't actually require a DRI
driver, and at least on OSX there's no DRI driver you could possibly
build.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to