Re: [Mesa-dev] [PATCH] meson: Add lmsensors to gallium libgl-xlib target.

2017-12-07 Thread Dylan Baker
I don't suppose someone would like to ack this? Quoting Dylan Baker (2017-12-04 14:05:12) > Fixes: 5e71efef44b992b5d70b ("meson: Add lmsensors support") > Signed-off-by: Dylan Baker > --- > src/gallium/targets/libgl-xlib/meson.build | 2 +- > 1 file chang

Re: [Mesa-dev] [PATCH] meson: Fix building gallium media targets with gallium-xlib glx

2017-12-07 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-07 09:37:47) > On Thursday, 2017-12-07 09:16:24 -0800, Dylan Baker wrote: > > Quoting Eric Engestrom (2017-12-07 04:17:58) > > > On Tuesday, 2017-12-05 09:40:53 -0800, Dylan Baker wrote: > > > > Signed-off-by: Dylan Baker > &

Re: [Mesa-dev] [PATCH] meson: Add lmsensors to gallium libgl-xlib target.

2017-12-07 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-07 09:49:30) > On Thursday, 2017-12-07 09:32:39 -0800, Dylan Baker wrote: > > I don't suppose someone would like to ack this? > > > > Quoting Dylan Baker (2017-12-04 14:05:12) > > > Fixes: 5e71efef44b992b5d70b ("meson: Add

Re: [Mesa-dev] [PATCH] meson: Fix building gallium media targets with gallium-xlib glx

2017-12-07 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-07 10:13:27) > On Thursday, 2017-12-07 09:57:19 -0800, Dylan Baker wrote: > > Quoting Eric Engestrom (2017-12-07 09:37:47) > > > On Thursday, 2017-12-07 09:16:24 -0800, Dylan Baker wrote: > > > > Quoting Eric Engestrom (2017-12-07

[Mesa-dev] [PATCH 3/4] meson: set opencl flags for r600

2017-12-08 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/gallium/drivers/r600/meson.build | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build index 2132dbb33ad..5899518a2e8 100644 --- a/src/gallium/drivers/r600

[Mesa-dev] [PATCH 1/4] meson: Build SWR driver

2017-12-08 Thread Dylan Baker
This enables the SWR driver, but doesn't actually hook it up to any of the targets yet. I felt like this patch was big and complicated enough without adding that. Signed-off-by: Dylan Baker --- meson.build| 12 +- meson_option

[Mesa-dev] [PATCH 0/4] meson for SWR (on Linux) and Clover

2017-12-08 Thread Dylan Baker
generators), but it's mostly contained in the relevant driver/state_tracker/target code. Dylan Baker (4): meson: Build SWR driver meson: Turn on swr for relevant targets meson: set opencl flags for r600 meson: build clover include/meson.build

[Mesa-dev] [PATCH 2/4] meson: Turn on swr for relevant targets

2017-12-08 Thread Dylan Baker
Currently that's dri, libgl-xlib, and osmesa. CC: George Kyriazis Signed-off-by: Dylan Baker --- src/gallium/meson.build| 1 - src/gallium/targets/dri/meson.build| 4 ++-- src/gallium/targets/libgl-xlib/meson.build | 2 +- src/gallium/targets/osmesa/meson.

[Mesa-dev] [PATCH 4/4] meson: build clover

2017-12-08 Thread Dylan Baker
This has only been compile tested. cc: Curro Jerez Signed-off-by: Dylan Baker --- include/meson.build | 19 meson.build | 27 +- meson_options.txt | 12 +++ src/gallium/meson.build

Re: [Mesa-dev] [PATCH 1/4] meson: Build SWR driver

2017-12-11 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-11 07:49:07) > > +if with_gallium_swr > > + if meson.version().version_compare('< 0.44.0') > > +error('SWR requires meson 0.44.0 or greater.') > > + endif > > Mixed feelings about this, but I guess I'd rather land this now and > remove these three lines later.

Re: [Mesa-dev] [PATCH 3/4] meson: set opencl flags for r600

2017-12-11 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-11 07:55:30) > On Friday, 2017-12-08 16:27:21 -0800, Dylan Baker wrote: > > Signed-off-by: Dylan Baker > > Should come after the current 4/4, but > Reviewed-by: Eric Engestrom > > > --- > > src/gallium/drivers/r600/meson.build |

Re: [Mesa-dev] [PATCH 4/4] meson: build clover

2017-12-11 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-11 08:17:50) > On Friday, 2017-12-08 16:27:22 -0800, Dylan Baker wrote: > > This has only been compile tested. > > > > cc: Curro Jerez > > Signed-off-by: Dylan Baker > > --- > > include/meson.build

Re: [Mesa-dev] [PATCH mesa] meson: add dep_thread to every lib that includes threads.h

2017-12-11 Thread Dylan Baker
Quoting Emil Velikov (2017-12-11 12:06:35) > On 7 December 2017 at 17:25, Dylan Baker wrote: > > Quoting Emil Velikov (2017-12-07 08:40:27) > >> On 7 December 2017 at 14:51, Eric Engestrom > >> wrote: > >> > Bugzilla: https://bugs.freedesktop.org/show

[Mesa-dev] [PATCH] meson: fix glx-test race

2017-12-12 Thread Dylan Baker
This test should rely on dispatch.h being generated, but it doesn't. Signed-off-by: Dylan Baker --- src/glx/tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/tests/meson.build b/src/glx/tests/meson.build index d81b76906da..51b2843fc90 100644 ---

[Mesa-dev] [PATCH] mesa: Add glSpecializeShaderARB to common_desktop_functions

2017-12-12 Thread Dylan Baker
CC: Nicolai Hähnle CC: Reviewed-by: Ian Romanick CC: Mark Janes Fixes: 46b21b8f906 ("mesa: add GL_ARB_gl_spirv boilerplate") Signed-off-by: Dylan Baker --- src/mesa/main/tests/dispatch_sanity.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/tests/dispatch_san

Re: [Mesa-dev] [PATCH 3/4] meson: set opencl flags for r600

2017-12-12 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-12 06:15:58) > On Monday, 2017-12-11 11:50:01 -0800, Dylan Baker wrote: > > Quoting Eric Engestrom (2017-12-11 07:55:30) > > > On Friday, 2017-12-08 16:27:21 -0800, Dylan Baker wrote: > > > > Signed-off-by: Dylan Baker > > >

Re: [Mesa-dev] [PATCH mesa] meson: add dep_thread to every lib that includes threads.h

2017-12-12 Thread Dylan Baker
Quoting Emil Velikov (2017-12-12 07:04:09) > On 11 December 2017 at 22:22, Dylan Baker wrote: > > Quoting Emil Velikov (2017-12-11 12:06:35) > >> On 7 December 2017 at 17:25, Dylan Baker wrote: > >> > Quoting Emil Velikov (2017-12-07 08:40:27) > >> >>

Re: [Mesa-dev] [PATCH] mesa: Add glSpecializeShaderARB to common_desktop_functions

2017-12-12 Thread Dylan Baker
I fixed the copy and pasta for idr that included the r-b tag (I copied and pasted from the git log), and added the bugzilla entry that Vinson opened locally. Quoting Dylan Baker (2017-12-12 11:50:30) > CC: Nicolai Hähnle > CC: Reviewed-by: Ian Romanick > CC: Mark Janes > Fixes:

Re: [Mesa-dev] [PATCH 4/4] meson: build clover

2017-12-12 Thread Dylan Baker
Quoting Jan Vesely (2017-12-12 15:00:28) > I can try to give it a go before my travels start on Thursday. Dylan, > are there any prerequisites to this series? > > Jan > Just meson 0.44.0, which came out Sunday. Dylan signature.asc Description: signature ___

[Mesa-dev] [PATCH v2 2/4] meson: Turn on swr for relevant targets

2017-12-13 Thread Dylan Baker
Currently that's dri, libgl-xlib, and osmesa. v2: - put drivers on a separate line from normal dependencies (Eric E) Signed-off-by: Dylan Baker Reviewed-by: Eric Engestrom --- src/gallium/meson.build| 1 - src/gallium/targets/dri/meson.build| 4 ++-- src/ga

[Mesa-dev] [PATCH v2 1/4] meson: Build SWR driver

2017-12-13 Thread Dylan Baker
or' (Eric E) - Use variables to hold files instead of looking above the current meson build (Eric E) - Use foreach loops to reduce the number of unique generators - Add comment about why some generators have names and some are just added to a list CC: George Kyr

[Mesa-dev] [PATCH v2 3/4] meson: build clover

2017-12-13 Thread Dylan Baker
This has only been compile tested. v2: - Have a single option for opencl (Eric E) - fix typo "tgis" -> "tgsi" (Curro) - Don't add "lib" prefix to pipe loader libraries, which matches the autotools behavior cc: Curro Jerez cc: Jan Vesely cc: A

[Mesa-dev] [PATCH v2 4/4] meson: set opencl flags for r600

2017-12-13 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/gallium/drivers/r600/meson.build | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build index 2132dbb33ad..5899518a2e8 100644 --- a/src/gallium/drivers/r600

[Mesa-dev] [PATCH] meson: warn if building a non-debug build with asserts

2017-12-13 Thread Dylan Baker
cc: Jason Ekstrand Signed-off-by: Dylan Baker --- meson.build | 9 + 1 file changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 6e5ae4d24e9..b00c1ffc3dc 100644 --- a/meson.build +++ b/meson.build @@ -29,6 +29,15 @@ project( default_options : ['buil

Re: [Mesa-dev] [PATCH v2 3/4] meson: build clover

2017-12-13 Thread Dylan Baker
Quoting Jan Vesely (2017-12-13 12:53:25) > On Wed, 2017-12-13 at 09:47 -0800, Dylan Baker wrote: > > +if (with_gallium_va or with_gallium_vdpau or with_gallium_omx or > > +with_gallium_xvmc or with_dri) > > + pipe_loader_link_with += libgalliumvl > > +else &

Re: [Mesa-dev] [PATCH v2 3/4] meson: build clover

2017-12-13 Thread Dylan Baker
Quoting Francisco Jerez (2017-12-13 13:01:29) > Jan Vesely writes: > > meson asked for libdrm_amdgpu dependency even though I'm only building > > clover+r600g driver. > > after a bit of fiddling with PATH and PK_CONFIG_PATH to pick up the latest > > llvm/liblclc > > linking failed with: > > src/

Re: [Mesa-dev] [PATCH v2 3/4] meson: build clover

2017-12-13 Thread Dylan Baker
Quoting Jan Vesely (2017-12-13 13:36:25) > On Wed, 2017-12-13 at 13:01 -0800, Francisco Jerez wrote: > > Jan Vesely writes: > > > > autotools build works OK with no-rtti build of llvm, I've been running > like that for some time. LLVM_CXXFLAGS which include fno-rtti are only > used to build libc

Re: [Mesa-dev] [PATCH] meson: warn if building a non-debug build with asserts

2017-12-13 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-13 13:43:24) > On Wednesday, 2017-12-13 10:33:05 -0800, Dylan Baker wrote: > > cc: Jason Ekstrand > > Signed-off-by: Dylan Baker > > --- > > meson.build | 9 + > > 1 file changed, 9 insertions(+) > > > > dif

Re: [Mesa-dev] [PATCH v2 3/4] meson: build clover

2017-12-13 Thread Dylan Baker
Quoting Jan Vesely (2017-12-13 14:23:21) > On Wed, 2017-12-13 at 13:54 -0800, Dylan Baker wrote: > > Quoting Jan Vesely (2017-12-13 12:53:25) > > > On Wed, 2017-12-13 at 09:47 -0800, Dylan Baker wrote: > > > > +if (with_gallium_va or with_galliu

Re: [Mesa-dev] [PATCH v2 3/4] meson: build clover

2017-12-15 Thread Dylan Baker
Quoting Jan Vesely (2017-12-14 11:58:03) > > I use a symlink from install target to build dir to make it work on > autotools build. > My point was that meson defines PIPE_SEARCH_DIR to be relative path > '-DPIPE_SEARCH_DIR="lib64/gallium-pipe"' > even if I configure meson using --prefix=$HOME/.loc

[Mesa-dev] [PATCH v3 3/4] meson: build clover

2017-12-15 Thread Dylan Baker
e PIPE_SEARCH_DIR an absolute path cc: Curro Jerez cc: Jan Vesely cc: Aaron Watry Signed-off-by: Dylan Baker --- include/meson.build | 19 meson.build | 29 +- meson_options.txt | 7 ++ src/gal

[Mesa-dev] [PATCH v3 2/4] meson: Turn on swr for relevant targets

2017-12-15 Thread Dylan Baker
Currently that's dri, libgl-xlib, and osmesa. v2: - put drivers on a separate line from normal dependencies (Eric E) cc: George Kyriazis cc: Tim Rowley cc: Bruce Cherniak Signed-off-by: Dylan Baker Reviewed-by: Eric Engestrom --- George, Tim, and Bruce, I don't know if you guy

[Mesa-dev] [PATCH v3 1/4] meson: Build SWR driver

2017-12-15 Thread Dylan Baker
or' (Eric E) - Use variables to hold files instead of looking above the current meson build (Eric E) - Use foreach loops to reduce the number of unique generators - Add comment about why some generators have names and some are just added to a list v3: - Remove trailing white

[Mesa-dev] [PATCH v3 4/4] meson: set opencl flags for r600

2017-12-15 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/gallium/drivers/r600/meson.build | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build index 2132dbb33ad..5899518a2e8 100644 --- a/src/gallium/drivers/r600

Re: [Mesa-dev] [PATCH] travis: use LLVM 5.0 for Meson Vulkan

2017-12-15 Thread Dylan Baker
Quoting Emil Velikov (2017-12-15 09:35:03) > On 15 December 2017 at 16:49, Eric Engestrom > wrote: > > On Friday, 2017-12-15 17:17:55 +0100, Juan A. Suarez Romero wrote: > >> Travis CI has moved to LLVM 5.0, and meson is detecting automatically > >> the available version. > >> > >> So just let's

Re: [Mesa-dev] [PATCH] travis: use LLVM 5.0 for Meson Vulkan

2017-12-15 Thread Dylan Baker
Quoting Emil Velikov (2017-12-15 09:35:03) > > Not to mention that distributions (Debian for example) allow multiple > versions to coexist, naming the binary - llvm-config-$version. > Just to add information, meson will try (with 0.44.0): llvm-config, reversed(llvm-config-${3.5-5.0}), reversed(l

Re: [Mesa-dev] [PATCH] travis: use LLVM 5.0 for Meson Vulkan

2017-12-15 Thread Dylan Baker
Quoting Gert Wollny (2017-12-15 11:30:07) > Am Freitag, den 15.12.2017, 18:49 +0100 schrieb Gert Wollny: > > Am Freitag, den 15.12.2017, 17:17 +0100 schrieb Juan A. Suarez > > Romero: > > > Travis CI has moved to LLVM 5.0, and meson is detecting > > > automatically > > > the available version. > >

Re: [Mesa-dev] [PATCH] egl: link libEGL against the dynamic version of libglapi

2017-12-18 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-18 08:33:18) > From: Brendan King > > DRI modules store the address of the dispatch table in a TLS variable, > _glapi_tls_Dispatch. > > Changes to the way libEGL is built in d884d8d0077c16d459b1 resulted in > it being statically linked against libglapi, and thus c

Re: [Mesa-dev] [PATCH v3 3/4] meson: build clover

2018-01-02 Thread Dylan Baker
ping. Quoting Dylan Baker (2017-12-15 10:54:18) > This has only been compile tested. > > v2: - Have a single option for opencl (Eric E) > - fix typo "tgis" -> "tgsi" (Curro) > - Don't add "lib" to pipe loader libraries, which matches t

[Mesa-dev] [PATCH] meson: nir_control_flow_test needs to depend on nir_builder_opcodes_h

2018-01-03 Thread Dylan Baker
Fixes a race condition in the build which causes sporadic failures when -Dbuild-tests=true and a significant number of cores is present. Fixes: d1992255bb29 ("meson: Add build Intel "anv" vulkan driver") CC: Mark Janes Signed-off-by: Dylan Baker --- src/compiler/

Re: [Mesa-dev] [PATCH] meson: nir_control_flow_test needs to depend on nir_builder_opcodes_h

2018-01-03 Thread Dylan Baker
iring everything which depends on nir gather > up a bunch of random generator dependencies seems a bit fragile. > > On Wed, Jan 3, 2018 at 9:28 AM, Dylan Baker wrote: > > Fixes a race condition in the build which causes sporadic failures when > -Dbuild-tests=true and a sign

[Mesa-dev] [PATCH 0/3] Meson build system

2018-01-03 Thread Dylan Baker
a wrapped dependency wit ext_foo variables. This means it can be used to build a mesa that requires a newer libdrm than the system provides (which can be especially useful if you can't install packages on that system) and for testing. This has been build tested only. Dylan Baker (3): Add

[Mesa-dev] [PATCH 2/3] autotools: Include meson.build files in tarball

2018-01-03 Thread Dylan Baker
I have tested that a tarball generated by autotools can be built with meson. Signed-off-by: Dylan Baker --- Makefile.am | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7b86214..66f70ca 100644 --- a/Makefile.am

[Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Dylan Baker
This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker --- .editorconfig | 4 +- amdgpu/.editorconfig| 5 +- amdgpu

[Mesa-dev] [PATCH 3/3] README: Add note about meson

2018-01-03 Thread Dylan Baker
Signed-off-by: Dylan Baker --- README | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README b/README index 26cab9d..58e55bc 100644 --- a/README +++ b/README @@ -15,9 +15,24 @@ with an older kernel. Compiling - -libdrm is a standard

Re: [Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Dylan Baker
Quoting Dylan Baker (2018-01-03 13:31:28) > diff --git a/freedreno/meson.build b/freedreno/meson.build > new file mode 100644 > index 000..47d6e44 > --- /dev/null > +++ b/freedreno/meson.build > @@ -0,0 +1,82 @@ > +# Copyright © 2017 Intel Corporation > + > +# P

Re: [Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Dylan Baker
Quoting Igor Gnatenko (2018-01-03 15:22:36) > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On Wed, 2018-01-03 at 13:31 -0800, Dylan Baker wrote: > > This patch adds a complete meson build system, including tests and > > install. It has the necessary hooks

[Mesa-dev] [PATCH v4 2/3] autotools: Include meson.build files in tarball

2018-01-04 Thread Dylan Baker
Signed-off-by: Dylan Baker --- Makefile.am | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7b86214..66f70ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -135,7 +135,35 @@ if HAVE_VMWGFX klibdrminclude_HEADERS

[Mesa-dev] [PATCH v4 0/3] Meson build system

2018-01-04 Thread Dylan Baker
- build and install modetest (this was missed in the first version for some reason) - install amdgpu.ids as 644 instead of 444 Dylan Baker (3): Add meson build system autotools: Include meson.build files in tarball README: Add note about meson .editorconfig | 4 +-

[Mesa-dev] [PATCH v4 3/3] README: Add note about meson

2018-01-04 Thread Dylan Baker
Signed-off-by: Dylan Baker --- README | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README b/README index 26cab9d..58e55bc 100644 --- a/README +++ b/README @@ -15,9 +15,24 @@ with an older kernel. Compiling - -libdrm is a standard

[Mesa-dev] [PATCH v4 1/3] Add meson build system

2018-01-04 Thread Dylan Baker
This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. v4: - fix freedreno kgls check Signed-off-by: Dylan Baker --- .editorconfig | 4 +- amdgpu

Re: [Mesa-dev] [PATCH v4 1/3] Add meson build system

2018-01-04 Thread Dylan Baker
Quoting Igor Gnatenko (2018-01-04 13:43:51) > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On Thu, 2018-01-04 at 10:28 -0800, Dylan Baker wrote: > > This patch adds a complete meson build system, including tests and > > install. It has the necessary hooks

Re: [Mesa-dev] [PATCH v4 3/3] README: Add note about meson

2018-01-05 Thread Dylan Baker
Quoting Eric Engestrom (2018-01-05 05:49:25) > On Thursday, 2018-01-04 10:28:42 -0800, Dylan Baker wrote: > > Signed-off-by: Dylan Baker > > Couple nitpicks, but: > Reviewed-by: Eric Engestrom > > > --- > > README | 21 ++--- > > 1 file

Re: [Mesa-dev] [PATCH v4 2/3] autotools: Include meson.build files in tarball

2018-01-05 Thread Dylan Baker
Quoting Eric Engestrom (2018-01-05 06:02:52) > On Thursday, 2018-01-04 10:28:41 -0800, Dylan Baker wrote: > > Signed-off-by: Dylan Baker > > Do we really want to use autotools' `dist` to package libdrm once meson > has landed? > I would've though we would switch t

Re: [Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-05 Thread Dylan Baker
Quoting Eric Engestrom (2018-01-05 05:34:53) > On Wednesday, 2018-01-03 13:31:28 -0800, Dylan Baker wrote: > > This patch adds a complete meson build system, including tests and > > install. It has the necessary hooks to allow it be used as a subproject > > for other meson

[Mesa-dev] [PATCH 0/3] Meson build system

2018-01-05 Thread Dylan Baker
generates during compilation) - Don't assign file lists to variables when possible. In a few cases files need to be conditionally added, but if we're not in one of those cases just put the lists directly in the exectuable or library declaration. Dylan Baker (3): Add

[Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-05 Thread Dylan Baker
This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker Reviewed-and-tested-by: Igor Gnatenko --- .editorconfig | 4

[Mesa-dev] [PATCH 3/3] README: Add note about meson

2018-01-05 Thread Dylan Baker
Signed-off-by: Dylan Baker --- README | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README b/README index 26cab9d..f3df9ac 100644 --- a/README +++ b/README @@ -15,9 +15,27 @@ with an older kernel. Compiling - -libdrm is a standard

[Mesa-dev] [PATCH 2/3] autotools: Include meson.build files in tarball

2018-01-05 Thread Dylan Baker
Signed-off-by: Dylan Baker --- Makefile.am | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7b86214..66f70ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -135,7 +135,35 @@ if HAVE_VMWGFX klibdrminclude_HEADERS

Re: [Mesa-dev] [PATCH 08/14] meson: fix BSD build

2018-01-05 Thread Dylan Baker
Quoting Greg V (2017-12-31 08:55:22) > --- > meson.build | 43 ++- > 1 file changed, 22 insertions(+), 21 deletions(-) > > diff --git a/meson.build b/meson.build > index d9f7ea9b2c..af62baf437 100644 > --- a/meson.build > +++ b/meson.build > @@ -199,12 +199

Re: [Mesa-dev] [PATCH 09/14] meson: do not redeclare pkg-config dependencies (yet)

2018-01-05 Thread Dylan Baker
We absolutely can't merge this as-is, it will break all of the these since they'll end up linking the backend and frontend, which we're not supposed to do. The bug you linked to has nothing to do with the problem you describe either, that issue is that `dependency("threads")` is special in meson,

Re: [Mesa-dev] [PATCH 10/14] meson: handle LLVM 'x.x.xgit-revision' versions

2018-01-05 Thread Dylan Baker
Quoting Juan A. Suarez Romero (2018-01-05 04:42:05) > On Fri, 2018-01-05 at 10:35 +0100, Gert Wollny wrote: > > On Sun, 2017-12-31 at 19:55 +0300, Greg V wrote: > > > > When LLVM is built inside of a git repo (even way below, e.g. > > > > /usr/ports/.git > > > > exists, and LLVM is built in /usr/p

Re: [Mesa-dev] [PATCH 10/14] meson: handle LLVM 'x.x.xgit-revision' versions

2018-01-05 Thread Dylan Baker
Please add a comment that svn suffixes are stripped by meson as of 0.43, and git suffixes are strippped as of 0.44. With that, Reviewed-by: Dylan Baker Quoting Greg V (2017-12-31 08:55:24) > When LLVM is built inside of a git repo (even way below, e.g. /usr/ports/.git > exists, and L

Re: [Mesa-dev] [PATCH 11/14] meson: fix missing dependencies

2018-01-05 Thread Dylan Baker
Quoting Greg V (2017-12-31 08:55:25) > --- > src/gallium/drivers/radeonsi/meson.build | 2 +- > src/mesa/meson.build | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/radeonsi/meson.build > b/src/gallium/drivers/radeonsi/meson.build

Re: [Mesa-dev] [PATCH 14/14] meson: glsl: add missing nir header dependency

2018-01-05 Thread Dylan Baker
Reviewed-by: Dylan Baker Quoting Greg V (2017-12-31 08:55:28) > --- > src/compiler/glsl/meson.build | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/compiler/glsl/meson.build b/src/compiler/glsl/meson.build > index 6aaa9bab05..9e7589c325 100644 &g

Re: [Mesa-dev] [PATCH 00/14] BSD portability (Meson, ANV, RADV, VC4/5, SWR)

2018-01-05 Thread Dylan Baker
Thanks so much for working on this, especially the meson bits! Quoting Greg V (2017-12-31 08:55:14) > Hello everyone and happy new year! :) > > This set of patches makes the Meson build work on FreeBSD, including > RADV, ANV, wayland-egl, VAAPI, VDPAU. > > I also managed to get SWR working, but

Re: [Mesa-dev] [PATCH v3 3/4] meson: build clover

2018-01-05 Thread Dylan Baker
Quoting Jan Vesely (2018-01-05 14:16:41) > Hi, > > > sorry for the delay. I was mostly traveling during the holidays. No worries, I was also away over the holidays and didn't look at this until today. > > On Fri, 2017-12-15 at 10:54 -0800, Dylan Baker wrote: > &g

[Mesa-dev] [PATCH 3/8] meson: Use consistent style for tests

2018-01-05 Thread Dylan Baker
Don't use intermediate variables, use consistent whitespace. Signed-off-by: Dylan Baker --- src/broadcom/qpu/meson.build| 12 ++- src/compiler/glsl/tests/meson.build | 90 -- src/compiler/nir/meson.build| 19 ++--- src/egl/wa

[Mesa-dev] [PATCH 1/8] meson: Use consistent style

2018-01-05 Thread Dylan Baker
Currently the meosn build has a mix of two styles: arg : [foo, ... bar], and arg :[ foo, ..., bar, ] For consistency let's pick one. I've picked the later style, which I think is more readable, and is more common in the mesa code base. Signed-off-by: Dylan Baker --- src/a

[Mesa-dev] [PATCH 7/8] meson: define inc_gbm as empty if not otherwise assigned

2018-01-05 Thread Dylan Baker
Otherwise this could be undefined in the egl directory. Signed-off-by: Dylan Baker --- src/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meson.build b/src/meson.build index 5fc14ac..730b2ff 100644 --- a/src/meson.build +++ b/src/meson.build @@ -67,6 +67,8 @@ subdir

[Mesa-dev] [PATCH 0/8] Meson cleanups, style fixes, and race hardening

2018-01-05 Thread Dylan Baker
nir and nir's generated headers. This should make the code easier to maintain going forward. Dylan Baker (8): meson: Use consistent style meson: Use include variables meson: Use consistent style for tests meson: don't use intermediate variables that are immediately discarded

[Mesa-dev] [PATCH 5/8] meson: Use dependencies for nir

2018-01-05 Thread Dylan Baker
high. Signed-off-by: Dylan Baker --- src/amd/common/meson.build| 5 +++-- src/amd/vulkan/meson.build| 6 +++--- src/broadcom/compiler/meson.build | 4 ++-- src/compiler/glsl/meson.build | 3 ++- src/compiler/meson.build

[Mesa-dev] [PATCH 4/8] meson: don't use intermediate variables that are immediately discarded

2018-01-05 Thread Dylan Baker
For things like: loop x = func() list += x end just do: loop list += func() end Signed-off-by: Dylan Baker --- src/broadcom/cle/meson.build | 3 +-- src/intel/genxml/meson.build | 3 +-- src/intel/isl/meson.build | 6 ++ src/intel/vulkan

[Mesa-dev] [PATCH 8/8] meson: add variable for including include/GL/internal

2018-01-05 Thread Dylan Baker
Signed-off-by: --- include/meson.build | 1 + src/glx/meson.build | 10 ++ src/glx/tests/meson.build | 4 ++-- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/include/meson.build b/include/meson.build index e4dae91..9b34490 100644 --- a/include/meson.build ++

[Mesa-dev] [PATCH 6/8] meson: move libsensors dependency to libgallium

2018-01-05 Thread Dylan Baker
This simplifies the build by removing the need to link targets against libsensors. Suggested-by: Emil Velikov Signed-off-by: Dylan Baker --- src/gallium/auxiliary/meson.build | 2 +- src/gallium/drivers/etnaviv/meson.build | 2 +- src/gallium/drivers/freedreno/meson.build | 1

[Mesa-dev] [PATCH 2/8] meson: Use include variables

2018-01-05 Thread Dylan Baker
These were added after adderlib was mesonified, but it still good to use them instead of open coding them. Signed-off-by: Dylan Baker --- src/amd/addrlib/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/addrlib/meson.build b/src/amd/addrlib/meson.build

Re: [Mesa-dev] [PATCH 08/14] meson: fix BSD build

2018-01-05 Thread Dylan Baker
On January 5, 2018 5:12:15 PM PST, Greg V wrote: > >On 01/06/2018 01:06, Dylan Baker wrote: >> Quoting Greg V (2017-12-31 08:55:22) >>> +is_like_linux = host_machine.system() == 'linux' or >host_machine.system().contains('bsd') # FIXME: illumos? >

Re: [Mesa-dev] [PATCH 11/14] meson: fix missing dependencies

2018-01-05 Thread Dylan Baker
On January 5, 2018 5:00:59 PM PST, Greg V wrote: >On 01/06/2018 01:36, Dylan Baker wrote: >> Quoting Greg V (2017-12-31 08:55:25) >>> --- >>> src/gallium/drivers/radeonsi/meson.build | 2 +- >>> src/mesa/meson.build | 1 + >>>

Re: [Mesa-dev] [PATCH v3 3/4] meson: build clover

2018-01-06 Thread Dylan Baker
Quoting Jan Vesely (2018-01-06 15:18:54) > On Fri, 2018-01-05 at 15:26 -0800, Dylan Baker wrote: > > Quoting Jan Vesely (2018-01-05 14:16:41) > > > Hi, > > > > > > > > > sorry for the delay. I was mostly traveling during the holidays. > > &g

Re: [Mesa-dev] meson: vdpau broken on r600

2018-01-10 Thread Dylan Baker
I'm not sure off the top of my head. I don't have an r600 anymore, but I have an SI and a nouveau machine, so I'll see if I can reproduce the problem there and fix it. Dylan Quoting Marc Dietrich (2018-01-09 02:38:33) > Hi Dylan, > > just found that vdpau does not work on r600 with meson build.

[Mesa-dev] [PATCH] meson: generate translations for driconf

2018-01-10 Thread Dylan Baker
ocation of make or ninja. I think this can be fixed upstream, but in the mean time this adds support for using translations. Signed-off-by: Dylan Baker --- src/util/xmlpool/gen_translations.py | 91 +- src/util/xmlpool/meson.build | 31 +++--- 2 files ch

Re: [Mesa-dev] [PATCH 0/3] Meson build system

2018-01-10 Thread Dylan Baker
I forgot to CC you on this like you asked, Dylan Quoting Dylan Baker (2018-01-05 12:00:57) > This is a fifth iteration of the meson build system for libdrm. This > version is significantly cleaned up from the last version and uses a > style more like the build system in mesa. > >

Re: [Mesa-dev] [PATCH] anv: Import mako templates only during execution of anv_extensions

2018-01-11 Thread Dylan Baker
I also prefer Jason's approach of moving just the creation of the mako Template inside the if __main__ block, but leaving the actual string at the top level. Alternatively we could split anv_extensions.py into two files: one that has the constant data, and one that generates anv_extensions.c. I th

Re: [Mesa-dev] [PATCH v2] anv: Import mako templates only during execution of anv_extensions

2018-01-11 Thread Dylan Baker
Reviewed-by: Dylan Baker Quoting Andres Gomez (2018-01-10 13:11:51) > anv_extensions usage from anv_icd was bringing the unwanted dependency > of mako templates for the latter. We don't want that since it will > force the dependency even for distributable tarballs which was not

Re: [Mesa-dev] [PATCH 1/7] gallium: Refactor out vl_put_screen and vl_get_screen

2018-01-11 Thread Dylan Baker
Please make sure the new .c file is added in the meson build as well before pushing. Dylan Quoting Christian König (2018-01-10 05:03:44) > My last status was that Leo wanted to commit this. > > Leo are you still waiting for something? > > Christian. > > Am 10.01.2018 um 10:29 schrieb Julien Is

[Mesa-dev] [PATCH 01/10] glsl/tests: reimplement warnings-test in python

2018-01-11 Thread Dylan Baker
ython, no more diff, pwd or sh. It's also no longer tied to autotools implementation details, like the environment variables $srcdir and $abs_builddir, though the autotools shell wrapper still uses those, which makes it possible to run the test in meson. Signed-off-by: Dylan Baker --- src/com

[Mesa-dev] [PATCH 04/10] meson: enable optimization-test

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/compiler/glsl/tests/meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build index 11fb4fb..d5e6b5f 100644 --- a/src/compiler/glsl/tests/meson.build +++ b/src/compiler/glsl

[Mesa-dev] [PATCH 06/10] glcpp/tests: Convert shell scripts to a python script

2018-01-11 Thread Dylan Baker
This ports glcpp-test.sh and glcpp-test-cr-lf.sh to a python script that accepts arguments for each line ending type. This should allow for better reporting to users. Signed-off-by: Dylan Baker --- src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh | 148 +-- src/compiler/glsl/glcpp

Re: [Mesa-dev] meson: vdpau broken on r600

2018-01-11 Thread Dylan Baker
-Wl,-whole-archive where autotools doesn't. Quoting Eric Engestrom (2018-01-11 08:58:32) > On Tuesday, 2018-01-09 10:09:16 -0800, Dylan Baker wrote: > > I'm not sure off the top of my head. I don't have an r600 anymore, but I > > have an > > SI and a nouve

[Mesa-dev] [PATCH 05/10] glsl/tests: Remove unused compare_ir.py script

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/compiler/glsl/tests/compare_ir.py | 58 + 1 file changed, 58 deletions(-) delete mode 100644 src/compiler/glsl/tests/compare_ir.py diff --git a/src/compiler/glsl/tests/compare_ir.py b/src/compiler/glsl/tests/compare_ir.py deleted

[Mesa-dev] [PATCH 03/10] glsl/tests: Convert optimization-test.sh to pure python

2018-01-11 Thread Dylan Baker
This patch converts optimization-test.sh to python, in this process it removes external shell dependencies including diff. It replaces the python script that generates shell scripts with a python library that generates test cases and runs them using subprocess. Signed-off-by: Dylan Baker

Re: [Mesa-dev] [PATCH v2] r600: Allow egd_tables.py to run with python3 too

2018-01-11 Thread Dylan Baker
This is somewhat insufficient, it might run okay with python3, but the behavior will be different between the two. Please add `from __future__ import print_function`, so that the behavior will be the same, not just the syntax. Also, the StringTable, InteTable, Field, and Reg classes is also an old

[Mesa-dev] [PATCH 00/10] Finish unit tests for meson build

2018-01-11 Thread Dylan Baker
not meant to be run directly, just to wrap the python scripts for autotools. Dylan Baker (10): glsl/tests: reimplement warnings-test in python meson: run glsl compiler warnings test glsl/tests: Convert optimization-test.sh to pure python meson: enable optimization-test glsl/tests: Remove

[Mesa-dev] [Test Patch] Meson: ensure vdpau has proper symbols exposed

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/gallium/targets/vdpau/meson.build | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/gallium/targets/vdpau/meson.build b/src/gallium/targets/vdpau/meson.build index 67f1469fb0f..432a32a7340 100644 --- a/src/gallium

[Mesa-dev] [PATCH 07/10] meson: enable glcpp test

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/compiler/glsl/glcpp/meson.build | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build index 17ee1a2..9f869da 100644 --- a/src/compiler/glsl/glcpp

[Mesa-dev] [PATCH 10/10] meson: build gallium unit tests

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/gallium/tests/meson.build | 1 +- src/gallium/tests/unit/meson.build | 31 +++- 2 files changed, 32 insertions(+) create mode 100644 src/gallium/tests/unit/meson.build diff --git a/src/gallium/tests/meson.build b/src/gallium

[Mesa-dev] [PATCH 02/10] meson: run glsl compiler warnings test

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/compiler/glsl/tests/meson.build | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build index 27f3407..11fb4fb 100644 --- a/src/compiler/glsl/tests/meson.build

[Mesa-dev] [PATCH 08/10] meson: Remove TODO about mesa/main tests

2018-01-11 Thread Dylan Baker
They're already done. Signed-off-by: Dylan Baker --- src/mesa/meson.build | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/meson.build b/src/mesa/meson.build index ab6bc27..ce612fb 100644 --- a/src/mesa/meson.build +++ b/src/mesa/meson.build @@ -18,8 +18,6 @@ # OUT OF

[Mesa-dev] [PATCH 09/10] meson: Build gallium trivial tests

2018-01-11 Thread Dylan Baker
Signed-off-by: Dylan Baker --- meson.build | 2 +-- src/gallium/meson.build | 6 -- src/gallium/tests/meson.build | 21 - src/gallium/tests/trivial/meson.build | 29 - 4 files changed, 54

Re: [Mesa-dev] meson: vdpau broken on r600

2018-01-12 Thread Dylan Baker
S_PATH (I can never remember). Running with 'strace -f' > can help figure this stuff out. > > -ilia > > On Thu, Jan 11, 2018 at 12:21 PM, Dylan Baker wrote: > > I couldn't reproduce with nouveau, vdpauinfo seems hardcoded to look for > > vdpau_nvidia, and j

<    3   4   5   6   7   8   9   10   11   12   >