[Mesa-dev] [PATCH v3 15/15] meson: build gallium xa state tracker
Dylan Baker
dylan at pnwbakers.com
Tue Nov 14 22:09:19 UTC 2017
Quoting Marc Dietrich (2017-11-14 02:51:38)
> Hi Dylan,
>
> Am Dienstag, 14. November 2017, 02:09:19 CET schrieb Dylan Baker:
> > v2: - set with_gallium_xa when -Dgallium-xa=true
> > - install pkg config file
> > ---
> > meson.build | 22 ++++++++
> > meson_options.txt | 7 +++
> > src/gallium/meson.build | 7 ++-
> > src/gallium/state_trackers/xa/meson.build | 45 +++++++++++++++++
> > src/gallium/targets/xa/meson.build | 84
> > +++++++++++++++++++++++++++++++ 5 files changed, 164 insertions(+), 1
> > deletion(-)
> > create mode 100644 src/gallium/state_trackers/xa/meson.build
> > create mode 100644 src/gallium/targets/xa/meson.build
> >
> > diff --git a/meson.build b/meson.build
> > index 8c20523aab0..1d29eb67bfe 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -525,6 +525,28 @@ if va_drivers_path == ''
> > va_drivers_path = join_paths(get_option('libdir'), 'dri')
> > endif
> >
> > +_xa = get_option('gallium-xa')
> > +if _xa == 'auto'
> > + if not ['linux', 'bsd'].contains(host_machine.system())
> > + with_gallium_xa = false
> > + elif not (with_gallium_nouveau or with_gallium_freedreno or
> with_gallium_i915
> > + or with_gallium_svga)
>
> autotools don't not have such limitation. At least it gets build with gallium-
> drivers=r600,swrast. However, not sure if it is useful.
>
> Marc
autotools does the wrong thing in this case. For XA it checks that softpipe
(gallium swrast) + one non-swrast gallium driver is built. XA only works with
SVGA, freedreno, nouveau, and i915g though, so I've set the requirement to match
what the state_tracker actually does.
You can look at src/gallium/targets/xa/Makefile.am and see that it only works
with these drivers.
Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171114/bb3ed2f2/attachment.sig>
More information about the mesa-dev
mailing list