[Mesa-dev] [PATCH 2/3] meson: Don't build intel shared components by default

2017-11-13 Thread Dylan Baker
It's a neat idea, and still useful in some cases, but the intel common code is used by i965 and anvil only, this is a little clearer. Signed-off-by: Dylan Baker --- src/intel/blorp/meson.build | 1 - src/intel/common/meson.build | 1 - src/intel/isl/meson.build| 3 --- src/meson.

[Mesa-dev] [PATCH 3/3] meson: Remove build_by_default from amd code

2017-11-13 Thread Dylan Baker
This is the same logic as the previous two patches. Signed-off-by: Dylan Baker --- src/amd/addrlib/meson.build | 1 - src/amd/common/meson.build | 1 - src/meson.build | 4 +++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/addrlib/meson.build b/src/amd

[Mesa-dev] [PATCH 1/3] meson: don't use build_by_default for specific gallium drivers

2017-11-13 Thread Dylan Baker
: Dylan Baker Tested-by: Lionel Landwerlin (v1) --- src/gallium/drivers/freedreno/meson.build| 1 - src/gallium/drivers/llvmpipe/meson.build | 1 - src/gallium/drivers/nouveau/meson.build | 1 - src/gallium/drivers/radeon/meson.build | 1 - src/gallium/drivers/radeonsi

Re: [Mesa-dev] [PATCH 1/3] meson: don't use build_by_default for specific gallium drivers

2017-11-13 Thread Dylan Baker
Quoting Eric Anholt (2017-11-13 13:07:31) > Dylan Baker writes: > > > Using build_by_default : false is convenient for dependencies that can > > be pulled in by various diverse components of the build system, the > > gallium hardware/software drivers and state

Re: [Mesa-dev] [PATCH 09/10] spirv: Generate code to track SPIR-V capability dependencies

2017-11-13 Thread Dylan Baker
Quoting Ian Romanick (2017-11-13 13:34:15) > On 11/13/2017 10:49 AM, Dylan Baker wrote: > > Quoting Ian Romanick (2017-11-10 14:32:49) > > [snip] > > > >> + > >> +def collect_data(spirv): > >> +for x in spirv["opera

Re: [Mesa-dev] [PATCH 10/10] spirv: Generate SPIR-V builder infrastructure

2017-11-13 Thread Dylan Baker
Quoting Ian Romanick (2017-11-10 14:32:50) [snip] > + > +def can_have_extra_operands(name, enums): > +"""Determine whether an enum can have extra operands. > + > +Some enums, like SpvDecoration, can have extra operands with some values. > +Other enums, like SpvMemorySemantics, cannot. >

Re: [Mesa-dev] [PATCH 10/10] spirv: Generate SPIR-V builder infrastructure

2017-11-13 Thread Dylan Baker
Quoting Ian Romanick (2017-11-13 16:00:08) > > That's what I had first, and it did not work in some cases. I believe > that list==list is only True if the elements have the same order. This > function only requires that both lists have the same contents without > regard for order. I will add a

[Mesa-dev] [PATCH v3 01/15] meson: add proper LLVM modules to check for RadeonSI as well

2017-11-13 Thread Dylan Baker
Signed-off-by: Dylan Baker --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e8467590df2..8ea2b3e106c 100644 --- a/meson.build +++ b/meson.build @@ -702,7 +702,7 @@ if with_gallium_freedreno endif llvm_modules = ['bitw

[Mesa-dev] [PATCH v3 05/15] meson: build svga driver on linux

2017-11-13 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 6 ++- src/gallium/drivers/svga/meson.build| 88 + src/gallium/meson.build | 5 +- src/gallium/targets/dri/meson.build | 5 ++ src/gallium

[Mesa-dev] [PATCH v3 13/15] meson: build gallium omx state tracker

2017-11-13 Thread Dylan Baker
v2: - set with_gallium_omx when -Dgallium-omx=true - Fix detection of omx plugins dir - only use cflags from pkg-config, don't add linker flags. --- meson.build| 60 - meson_options.txt | 13 src/

[Mesa-dev] [PATCH v3 11/15] meson: build gallium vdpau state tracker

2017-11-13 Thread Dylan Baker
v2: - set with_gallium_vdpau when -Dgallium-vdpau=true - Install megadriver hard links and symlinks - only use cflags from pkg-config, don't add linker flags. --- meson.build | 46 - meson_options.txt| 13 src/ga

[Mesa-dev] [PATCH v3 02/15] meson: build i915g driver

2017-11-13 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 7 +++- src/gallium/drivers/i915/meson.build| 70 + src/gallium/meson.build | 7 ++-- src/gallium/targets/dri/meson.build | 5 +++ src/gallium

[Mesa-dev] [PATCH v3 07/15] autotools: set XA versions in configure.ac and configure header file

2017-11-13 Thread Dylan Baker
r and more obvious. Tested with make distcheck. v2: - Split tiny -> patch change - Drop temporary variables - change XA_VERSION_* -> XA_* Signed-off-by: Dylan Baker Reviewed-by: Emil Velikov Reviewed-by: Matt Turner --- configure.ac

[Mesa-dev] [PATCH v3 00/15] Remaining gallium drivers + media

2017-11-13 Thread Dylan Baker
building media state trackers with explicitly turned on (off and auto worked previous) - Split the XA autotools changes - fix gallium media targets megadriver install - Fix omx pluginsdir detection. Dylan Baker (15): meson: add proper LLVM modules to check for RadeonSI as well

[Mesa-dev] [PATCH v3 04/15] meson: build r600 driver

2017-11-13 Thread Dylan Baker
Signed-off-by: Dylan Baker Tested-by: Aaron Watry --- meson.build | 22 -- src/gallium/drivers/r600/meson.build | 128 +++ src/gallium/meson.build | 6 +- src/gallium/targets/dri/meson.build | 7 +- 4 files changed

[Mesa-dev] [PATCH v3 15/15] meson: build gallium xa state tracker

2017-11-13 Thread 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 +++

[Mesa-dev] [PATCH v3 06/15] meson: build virgl driver

2017-11-13 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build| 16 src/gallium/drivers/virgl/meson.build | 39 ++ src/gallium/meson.build| 7 +- src/gallium/targets/dri/meson.build| 5

[Mesa-dev] [PATCH v3 08/15] autotools: change version TINY -> PATCH

2017-11-13 Thread Dylan Baker
Because patch is more common than tiny for talking about the 3rd element of a version. Signed-off-by: Dylan Baker --- configure.ac | 6 +++--- src/gallium/state_trackers/xa/xa_tracker.h.in | 2 +- src/gallium/targets/d3dadapter9/Makefile.am | 2 +- src/gallium

[Mesa-dev] [PATCH v3 12/15] meson: build gallium xvmc state tracker

2017-11-13 Thread Dylan Baker
v2: - set with_gallium_xvmc when -Dgallium-xvmc=true - Install megadrivers properly - only use cflags from pkg-config, don't add linker flags. --- meson.build | 40 ++- meson_options.txt | 13 + src/gallium/meson.bui

[Mesa-dev] [PATCH v3 03/15] meson: build r300 driver

2017-11-13 Thread Dylan Baker
This is build tested only Signed-off-by: Dylan Baker --- meson.build | 6 +- src/gallium/drivers/r300/meson.build | 156 +++ src/gallium/meson.build | 9 +- src/gallium/targets/dri/meson.build | 12 ++- 4 files changed

[Mesa-dev] [PATCH v3 10/15] meson: drop gallium-media argument

2017-11-13 Thread Dylan Baker
This argument is the wrong approach for handling gallium media state trackers, since it doesn't allow for an auto option. Instead we'll use tristates, which do allow for auto. This option has never been wired to anything anyway. Signed-off-by: Dylan Baker --- meson.build

[Mesa-dev] [PATCH v3 14/15] meson: build gallium va state tracker

2017-11-13 Thread Dylan Baker
v2: - set with_gallium_va when -Dgallium-va=true - Fix megadrivers install - only use cflags from pkg-config, don't add linker flags. - Don't get version from pkg-config, it's not tracking the same version information. --- meson.build | 41 ++

[Mesa-dev] [PATCH v3 09/15] meson: extend install_megadrivers script to handle symmlinking

2017-11-13 Thread Dylan Baker
which is required for the gallium media state trackers. --- bin/install_megadrivers.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py index a98d7dd177b..581ff9791e5 100755 --- a/bin/install_megadrivers.py +++ b/bin/install_megadriv

Re: [Mesa-dev] [PATCH] meson: if dep_dl is an empty list, it's not a dependency object

2017-11-14 Thread Dylan Baker
Quoting Jon Turney (2017-11-14 04:05:21) > On 13/11/2017 17:41, Dylan Baker wrote: > > I thought I'd fixed this already, > > Reviewed-by: Dylan Baker > > This workaround is already in place for dep_xxf86vm. > > I took a brief look, and didn't see anywhere

Re: [Mesa-dev] [PATCH v3 04/15] meson: build r600 driver

2017-11-14 Thread Dylan Baker
Quoting Marc Dietrich (2017-11-14 01:45:43) > Hi Dylan, > > Am Dienstag, 14. November 2017, 02:09:08 CET schrieb Dylan Baker: > > Signed-off-by: Dylan Baker > > Tested-by: Aaron Watry > > --- > > meson.build | 22 -- > > src

Re: [Mesa-dev] [PATCH v3 09/15] meson: extend install_megadrivers script to handle symmlinking

2017-11-14 Thread Dylan Baker
Quoting Eric Engestrom (2017-11-14 06:47:33) > On Monday, 2017-11-13 17:09:13 -0800, Dylan Baker wrote: > > which is required for the gallium media state trackers. > > --- > > bin/install_megadrivers.py | 6 ++ > > 1 file changed, 6 insertions(+

Re: [Mesa-dev] [PATCH v3 14/15] meson: build gallium va state tracker

2017-11-14 Thread Dylan Baker
Quoting Marc Dietrich (2017-11-14 01:49:42) > Hi Dylan, > > Am Dienstag, 14. November 2017, 02:09:18 CET schrieb Dylan Baker: > > v2: - set with_gallium_va when -Dgallium-va=true > > - Fix megadrivers install > > - only use cflags from pkg-config, don't a

Re: [Mesa-dev] [PATCH v3 15/15] meson: build gallium xa state tracker

2017-11-14 Thread Dylan Baker
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

[Mesa-dev] [PATCH 1/2] meson: don't build gallium subdir unless we're building gallium

2017-11-14 Thread Dylan Baker
This will allow us to simplify some guards within the gallium directory. Signed-off-by: Dylan Baker --- src/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 9232cc4ab18..00bbaa8989c 100644 --- a/src/meson.build +++ b/src

[Mesa-dev] [PATCH 2/2] meson: Guard the gallium dri componenet

2017-11-14 Thread Dylan Baker
Currently the target has a redundant guard, and the state tracker isn't properly guarded. Signed-off-by: Dylan Baker --- src/gallium/meson.build | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/meson.build b/src/gallium/meson.build index 7ccf48

Re: [Mesa-dev] [PATCH] mapi: Use correct shared library name on macOS.

2017-11-14 Thread Dylan Baker
I think "suffix" would be better for the title "name". Also, library -> libraries. With that changed: Reviewed-by: Dylan Baker Quoting Vinson Lee (2017-11-14 17:17:49) > Signed-off-by: Vinson Lee > --- > src/mapi/es1api/ABI-check | 7 ++- > src/mapi/es2a

Re: [Mesa-dev] [PATCH] meson: Add dridriverdir variable to dri.pc.

2017-11-15 Thread Dylan Baker
Reviewed-by: Dylan Baker Quoting Rafael Antognolli (2017-11-15 09:32:47) > Xorg (and possibly other things) depend on this variable to find the > path to DRI drivers. > > Signed-off-by: Rafael Antognolli > Cc: Dylan Baker > --- > src/mesa/drivers/dri/meson.build | 1 +

Re: [Mesa-dev] [PATCH] meson: Don't define HAVE_PTHREAD only on linux

2017-11-15 Thread Dylan Baker
bs, and I don't think those get HAVE_PTHREADS. I also don't konw what depdnency('threads') returns on windows, but in mean time this probably fixes some platforms and doesn't break any that previous worked. Reviewed-by: Dylan Baker > > In include/c11/threads.h the

Re: [Mesa-dev] [PATCH] amd: build addrlib with C++11

2017-11-15 Thread Dylan Baker
Nope. meson builds all C++ code as C++11 because so much of mesa's C++ code cannot be built without it (Because of LLVM). As far as I can tell the GLSL compiler and the Intel Compiler are the only C++ code in mesa not using C++11. Quoting Kai Wasserbäch (2017-11-15 08:45:30) > Doesn't the meson.bu

Re: [Mesa-dev] [PATCH v2] threads, configure.ac, meson.build: define and use HAVE_TIMESPEC_GET

2017-11-15 Thread Dylan Baker
7;: > + # This is quite incomplete, but it hopefully covers the platforms that > + # people actually use SCons on... > + env.Append(CPPDEFINES= [ > + 'HAVE_TIMESPEC_GET', > + ]) > + I think that haiku uses scons, I've added one of (a

Re: [Mesa-dev] [PATCH] amd: build addrlib with C++11

2017-11-15 Thread Dylan Baker
Quoting Ilia Mirkin (2017-11-15 09:52:06) > On Wed, Nov 15, 2017 at 12:47 PM, Dylan Baker wrote: > > Nope. meson builds all C++ code as C++11 because so much of mesa's C++ code > > cannot be built without it (Because of LLVM). As far as I can tell the GLSL > > compiler

Re: [Mesa-dev] [PATCH v3] threads, configure.ac, meson.build: define and use HAVE_TIMESPEC_GET

2017-11-15 Thread Dylan Baker
This should make scons work correctly on every platform, so: Reviewed-by: Dylan Baker Quoting Nicolai Hähnle (2017-11-15 12:58:12) > From: Nicolai Hähnle > > Tested with Travis and Appveyor. > > v2: add HAVE_TIMESPEC_GET for non-Windows Scons builds > v3: use check_functi

Re: [Mesa-dev] [PATCH] st/glsl_to_nir: don't generate nir twice for gs

2017-11-15 Thread Dylan Baker
Quoting Timothy Arceri (2017-11-15 16:16:10) > This was left out of c980a3aa3133 > --- > src/mesa/state_tracker/st_program.c | 10 ++ > 1 file changed, 2 insertions(+), 8 deletions(-) > > diff --git a/src/mesa/state_tracker/st_program.c > b/src/mesa/state_tracker/st_program.c > index 97b

[Mesa-dev] [PATCH 2/4] meson: disable x86 asm in fewer cases.

2017-11-15 Thread Dylan Baker
build tested. Signed-off-by: Dylan Baker --- meson.build | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index 0d201c711a0..261c4753427 100644 --- a/meson.build +++ b/meson.build @@ -554,13 +554,16 @@ endif # TODO: texture

[Mesa-dev] [PATCH 1/4] meson: Enable SSE4.1 optimizations

2017-11-15 Thread Dylan Baker
This patch checks for an and then enables sse4.1 optimizations if the host machine will be x86/x86_64. Signed-off-by: Dylan Baker --- meson.build | 27 ++- src/mesa/meson.build | 14 +++--- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a

[Mesa-dev] [PATCH 3/4] meson: Fix TODO for missing dl_iterate_phdr function

2017-11-15 Thread Dylan Baker
This function is required for both the Intel "Anvil" vulkan driver and the i965 GL driver. Error out if either of those is enabled but this function isn't found. Signed-off-by: Dylan Baker --- meson.build | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 4/4] meson: Remove completed or irrelevant TODO comments

2017-11-15 Thread Dylan Baker
These are all either done already, or are autotools specific. The misspelled gallium G3DVL is the autotools specific bit, meson is handling that via build_by_default. Signed-off-by: Dylan Baker --- meson.build | 15 --- 1 file changed, 15 deletions(-) diff --git a/meson.build b

Re: [Mesa-dev] [PATCH 4/5] egl/wayland: move teardown code to the platform file

2017-11-16 Thread Dylan Baker
Hey Emil, this commit breaks mesa pretty badly, wflinfo segfaults: 40a01c9a0ef2c8110d79c284976ef34c0f73be92 is the first bad commit commit 40a01c9a0ef2c8110d79c284976ef34c0f73be92 Author: Emil Velikov Date: Thu Nov 9 19:04:25 2017 + egl/drm: move teardown code to the platform file

Re: [Mesa-dev] [PATCH] egl: pass the dri2_dpy to the $plat_teardown functions

2017-11-16 Thread Dylan Baker
Tested-by: Dylan Baker Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103784 Quoting Emil Velikov (2017-11-16 10:36:01) > From: Emil Velikov > > Cc: Mark Janes > Fixes: 40a01c9a0ef ("egl/drm: move teardown code to the platform file") > Fixes: 8d745abc009 (&q

Re: [Mesa-dev] [PATCH 3/4] meson: Fix TODO for missing dl_iterate_phdr function

2017-11-16 Thread Dylan Baker
Quoting Emil Velikov (2017-11-16 05:21:50) > On 16 November 2017 at 01:11, Dylan Baker wrote: > > This function is required for both the Intel "Anvil" vulkan driver and > > the i965 GL driver. Error out if either of those is enabled but this > > function isn't

Re: [Mesa-dev] [PATCH 2/4] meson: disable x86 asm in fewer cases.

2017-11-16 Thread Dylan Baker
Quoting Eric Engestrom (2017-11-16 03:46:04) > On Wednesday, 2017-11-15 17:11:00 -0800, Dylan Baker wrote: > > This patch allows building asm for x86 on x86_64 platforms, when the > > operating system is the same. Previously cross compile always turned off > > assembly. This

Re: [Mesa-dev] [PATCH 3/4] meson: Fix TODO for missing dl_iterate_phdr function

2017-11-16 Thread Dylan Baker
Quoting Emil Velikov (2017-11-16 05:21:50) > On 16 November 2017 at 01:11, Dylan Baker wrote: > > This function is required for both the Intel "Anvil" vulkan driver and > > the i965 GL driver. Error out if either of those is enabled but this > > function isn't

Re: [Mesa-dev] [PATCH 1/4] meson: Enable SSE4.1 optimizations

2017-11-16 Thread Dylan Baker
Quoting Matt Turner (2017-11-15 21:57:37) > On Wed, Nov 15, 2017 at 5:10 PM, Dylan Baker wrote: > > This patch checks for an and then enables sse4.1 optimizations if the > > host machine will be x86/x86_64. > > There's some stack realignment stuff that probably needs t

Re: [Mesa-dev] [PATCH 1/4] meson: Enable SSE4.1 optimizations

2017-11-16 Thread Dylan Baker
Quoting Emil Velikov (2017-11-16 03:35:17) > Hi Dylan, > > On 16 November 2017 at 01:10, Dylan Baker wrote: > > This patch checks for an and then enables sse4.1 optimizations if the > > host machine will be x86/x86_64. > > > Hell yeah, SSE is coming to town :-) &

[Mesa-dev] [PATCH v2] meson: Enable SSE4.1 optimizations

2017-11-16 Thread Dylan Baker
This patch checks for an and then enables sse4.1 optimizations if the host machine will be x86/x86_64. v2: - Don't compile code, it's unnecessary since we require a compiler which always has SSE4.1 (Matt) Signed-off-by: Dylan Baker Reviewed-by: Eric Engestrom (v1) --- m

[Mesa-dev] [PATCH v4 03/13] meson: build r300 driver

2017-11-16 Thread Dylan Baker
This is build tested only Signed-off-by: Dylan Baker --- meson.build | 6 +- src/gallium/drivers/r300/meson.build | 156 +++ src/gallium/meson.build | 9 +- src/gallium/targets/dri/meson.build | 12 ++- 4 files changed

[Mesa-dev] [PATCH v4 04/13] meson: build r600 driver

2017-11-16 Thread Dylan Baker
v4: - Ensure inc_amd_common defined when radeonsi is disabled (needed by r600) Signed-off-by: Dylan Baker Tested-by: Aaron Watry --- meson.build | 22 -- src/amd/common/meson.build | 2 - src/gallium/drivers/r600/meson.build | 128

[Mesa-dev] [PATCH v4 01/13] meson: add proper LLVM modules to check for RadeonSI as well

2017-11-16 Thread Dylan Baker
Signed-off-by: Dylan Baker --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 383ebb36662..87d435fcb71 100644 --- a/meson.build +++ b/meson.build @@ -702,7 +702,7 @@ if with_gallium_freedreno endif llvm_modules = ['bitw

[Mesa-dev] [PATCH v4 06/13] meson: build virgl driver

2017-11-16 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build| 16 src/gallium/drivers/virgl/meson.build | 39 ++ src/gallium/meson.build| 7 +- src/gallium/targets/dri/meson.build| 5

[Mesa-dev] [PATCH v4 09/13] meson: build gallium vdpau state tracker

2017-11-16 Thread Dylan Baker
v2: - set with_gallium_vdpau when -Dgallium-vdpau=true - Install megadriver hard links and symlinks - only use cflags from pkg-config, don't add linker flags. v4: - make use of the install_megadrivers.py changes Signed-off-by: Dylan Baker --- meson.

[Mesa-dev] [PATCH v4 12/13] meson: build gallium va state tracker

2017-11-16 Thread Dylan Baker
v2: - set with_gallium_va when -Dgallium-va=true - Fix megadrivers install - only use cflags from pkg-config, don't add linker flags. - Don't get version from pkg-config, it's not tracking the same version information. v4: - Fix variable double-assignment Signe

[Mesa-dev] [PATCH v4 11/13] meson: build gallium omx state tracker

2017-11-16 Thread Dylan Baker
v2: - set with_gallium_omx when -Dgallium-omx=true - Fix detection of omx plugins dir - only use cflags from pkg-config, don't add linker flags. Signed-off-by: Dylan Baker --- meson.build| 60 - meson_option

[Mesa-dev] [PATCH v4 05/13] meson: build svga driver on linux

2017-11-16 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 6 ++- src/gallium/drivers/svga/meson.build| 88 + src/gallium/meson.build | 5 +- src/gallium/targets/dri/meson.build | 5 ++ src/gallium

[Mesa-dev] [PATCH v4 02/13] meson: build i915g driver

2017-11-16 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 7 +++- src/gallium/drivers/i915/meson.build| 70 + src/gallium/meson.build | 7 ++-- src/gallium/targets/dri/meson.build | 5 +++ src/gallium

[Mesa-dev] [PATCH v4 10/13] meson: build gallium xvmc state tracker

2017-11-16 Thread Dylan Baker
v2: - set with_gallium_xvmc when -Dgallium-xvmc=true - Install megadrivers properly - only use cflags from pkg-config, don't add linker flags. v4: - make use of the install_megadrivers.py changes Signed-off-by: Dylan Baker --- meson.build

[Mesa-dev] [PATCH v4 13/13] meson: build gallium xa state tracker

2017-11-16 Thread Dylan Baker
v2: - set with_gallium_xa when -Dgallium-xa=true - install pkg config file Signed-off-by: Dylan Baker --- meson.build | 22 meson_options.txt | 7 +++ src/gallium/meson.build | 7 ++- src/gallium

[Mesa-dev] [PATCH v4 08/13] meson: drop gallium-media argument

2017-11-16 Thread Dylan Baker
This argument is the wrong approach for handling gallium media state trackers, since it doesn't allow for an auto option. Instead we'll use tristates, which do allow for auto. This option has never been wired to anything anyway. Signed-off-by: Dylan Baker --- meson.build

[Mesa-dev] [PATCH v4 07/13] meson: extend install_megadrivers script to handle symmlinking

2017-11-16 Thread Dylan Baker
Which is required for the gallium media state trackers. v4: - Make the full version the hard link and the partial so versiions the symlinks Signed-off-by: Dylan Baker --- bin/install_megadrivers.py | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a

[Mesa-dev] [PATCH v3] meson: Enable SSE4.1 optimizations

2017-11-16 Thread Dylan Baker
This patch checks for an and then enables sse4.1 optimizations if the host machine will be x86/x86_64. v2: - Don't compile code, it's unnecessary since we require a compiler which always has SSE4.1 (Matt) v3: - x64 -> x86_64 (Matt) Signed-off-by: Dylan Baker Reviewed-by: E

Re: [Mesa-dev] [PATCH 1/4] meson: Enable SSE4.1 optimizations

2017-11-17 Thread Dylan Baker
Quoting Emil Velikov (2017-11-17 03:11:50) > On 16 November 2017 at 22:21, Dylan Baker wrote: > > Quoting Emil Velikov (2017-11-16 03:35:17) > >> Hi Dylan, > >> > >> On 16 November 2017 at 01:10, Dylan Baker wrote: > >> > This patch checks for

Re: [Mesa-dev] [PATCH v4 11/13] meson: build gallium omx state tracker

2017-11-17 Thread Dylan Baker
Quoting Emil Velikov (2017-11-17 04:19:22) > Hi Dylan, > > On 17 November 2017 at 00:27, Dylan Baker wrote: > > > + elif not (with_gallium_r600 or with_gallium_radeonsi or > > with_gallium_nouveau) > > > > + elif not (with_gallium_r600 or with_gallium_r

Re: [Mesa-dev] [PATCH 1/4] meson: Enable SSE4.1 optimizations

2017-11-17 Thread Dylan Baker
Quoting Matt Turner (2017-11-17 12:46:03) > On Fri, Nov 17, 2017 at 12:34 PM, Dylan Baker wrote: > > Quoting Emil Velikov (2017-11-17 03:11:50) > >> On 16 November 2017 at 22:21, Dylan Baker wrote: > >> > Quoting Emil Velikov (2017-11-16 03:35:17) > >> >

Re: [Mesa-dev] [PATCH] meson: add si_driinfo.h in libgallium_dri

2017-11-17 Thread Dylan Baker
I noticed this race condition too, this patch isn't correct though, since this will add a radeonsi generated target unconditionally to the sources. si_driinfo_h should be added to the gallium_dri_sources inside the `if with_gallium_radeonsi` block. Dylan Quoting Juan A. Suarez Romero (2017-11-17

Re: [Mesa-dev] [PATCH v4 11/13] meson: build gallium omx state tracker

2017-11-20 Thread Dylan Baker
Quoting Emil Velikov (2017-11-17 04:19:22) > Hi Dylan, > > On 17 November 2017 at 00:27, Dylan Baker wrote: > > > + elif not (with_gallium_r600 or with_gallium_radeonsi or > > with_gallium_nouveau) > > > > + elif not (with_gallium_r600 or with_gallium_r

[Mesa-dev] [PATCH v5 02/13] meson: build i915g driver

2017-11-20 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 7 +++- src/gallium/drivers/i915/meson.build| 70 + src/gallium/meson.build | 7 ++-- src/gallium/targets/dri/meson.build | 5 +++ src/gallium

[Mesa-dev] [PATCH v5 07/13] meson: extend install_megadrivers script to handle symmlinking

2017-11-20 Thread Dylan Baker
symlinks as necessary. Signed-off-by: Dylan Baker --- bin/install_megadrivers.py | 8 1 file changed, 8 insertions(+) diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py index a98d7dd177b..587a1f6726d 100755 --- a/bin/install_megadrivers.py +++ b/bin/install_megadrivers.py

[Mesa-dev] [PATCH v5 03/13] meson: build r300 driver

2017-11-20 Thread Dylan Baker
This is build tested only Signed-off-by: Dylan Baker --- meson.build | 6 +- src/gallium/drivers/r300/meson.build | 156 +++ src/gallium/meson.build | 9 +- src/gallium/targets/dri/meson.build | 12 ++- 4 files changed

[Mesa-dev] [PATCH v5 11/13] meson: build gallium omx state tracker

2017-11-20 Thread Dylan Baker
v2: - set with_gallium_omx when -Dgallium-omx=true - Fix detection of omx plugins dir - only use cflags from pkg-config, don't add linker flags. Signed-off-by: Dylan Baker --- meson.build| 60 - meson_option

[Mesa-dev] [PATCH v5 08/13] meson: drop gallium-media argument

2017-11-20 Thread Dylan Baker
This argument is the wrong approach for handling gallium media state trackers, since it doesn't allow for an auto option. Instead we'll use tristates, which do allow for auto. This option has never been wired to anything anyway. Signed-off-by: Dylan Baker --- meson.build

[Mesa-dev] [PATCH v5 04/13] meson: build r600 driver

2017-11-20 Thread Dylan Baker
v4: - Ensure inc_amd_common defined when radeonsi is disabled (needed by r600) Signed-off-by: Dylan Baker Tested-by: Aaron Watry --- meson.build | 22 -- src/amd/common/meson.build | 2 - src/gallium/drivers/r600/meson.build | 128

[Mesa-dev] [PATCH v5 06/13] meson: build virgl driver

2017-11-20 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build| 16 src/gallium/drivers/virgl/meson.build | 39 ++ src/gallium/meson.build| 7 +- src/gallium/targets/dri/meson.build| 5

[Mesa-dev] [PATCH v5 12/13] meson: build gallium va state tracker

2017-11-20 Thread Dylan Baker
v2: - set with_gallium_va when -Dgallium-va=true - Fix megadrivers install - only use cflags from pkg-config, don't add linker flags. - Don't get version from pkg-config, it's not tracking the same version information. v4: - Fix variable double-assignment Signe

[Mesa-dev] [PATCH v5 01/13] meson: add proper LLVM modules to check for RadeonSI as well

2017-11-20 Thread Dylan Baker
Signed-off-by: Dylan Baker --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 383ebb36662..87d435fcb71 100644 --- a/meson.build +++ b/meson.build @@ -702,7 +702,7 @@ if with_gallium_freedreno endif llvm_modules = ['bitw

[Mesa-dev] [PATCH v5 13/13] meson: build gallium xa state tracker

2017-11-20 Thread Dylan Baker
v2: - set with_gallium_xa when -Dgallium-xa=true - install pkg config file Signed-off-by: Dylan Baker --- meson.build | 22 meson_options.txt | 7 +++ src/gallium/meson.build | 7 ++- src/gallium

[Mesa-dev] [PATCH v5 09/13] meson: build gallium vdpau state tracker

2017-11-20 Thread Dylan Baker
v2: - set with_gallium_vdpau when -Dgallium-vdpau=true - Install megadriver hard links and symlinks - only use cflags from pkg-config, don't add linker flags. v4: - make use of the install_megadrivers.py changes v5: - adapt for install_megadrivers changes Signed-off-by: Dylan

[Mesa-dev] [PATCH v5 10/13] meson: build gallium xvmc state tracker

2017-11-20 Thread Dylan Baker
v2: - set with_gallium_xvmc when -Dgallium-xvmc=true - Install megadrivers properly - only use cflags from pkg-config, don't add linker flags. v4: - make use of the install_megadrivers.py changes v5: - adapt for install_megadrivers changes Signed-off-by: Dylan Baker --- meson.

[Mesa-dev] [PATCH v5 05/13] meson: build svga driver on linux

2017-11-20 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 6 ++- src/gallium/drivers/svga/meson.build| 88 + src/gallium/meson.build | 5 +- src/gallium/targets/dri/meson.build | 5 ++ src/gallium

[Mesa-dev] [PATCH v4 1/4] meson: Enable SSE4.1 optimizations

2017-11-20 Thread Dylan Baker
This patch checks for an and then enables sse4.1 optimizations if the host machine will be x86/x86_64. v2: - Don't compile code, it's unnecessary since we require a compiler which always has SSE4.1 (Matt) v3: - x64 -> x86_64 (Matt) Signed-off-by: Dylan Baker Reviewed-by: E

[Mesa-dev] [PATCH v4 4/4] meson: Remove completed or irrelevant TODO comments

2017-11-20 Thread Dylan Baker
These are all either done already, or are autotools specific. The misspelled gallium G3DVL is the autotools specific bit, meson is handling that via build_by_default. Signed-off-by: Dylan Baker Reviewed-by: Eric Engestrom --- meson.build | 15 --- 1 file changed, 15 deletions

[Mesa-dev] [PATCH v4 2/4] meson: disable x86 asm in fewer cases.

2017-11-20 Thread Dylan Baker
build tested. v4: - set condition to build == x86_64 and host == 'x86' and build.system == host.system Signed-off-by: Dylan Baker --- meson.build | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index 049c9a24e4a..2

[Mesa-dev] [PATCH v4 3/4] meson: Fix TODO for missing dl_iterate_phdr function

2017-11-20 Thread Dylan Baker
This function is required for both the Intel "Anvil" vulkan driver and the i965 GL driver. Error out if either of those is enabled but this function isn't found. Signed-off-by: Dylan Baker Reviewed-by: Emil Velikov Reviewed-by: Eric Engestrom --- meson.build | 6 -- 1

[Mesa-dev] [PATCH 0/8] Fix non-shared glapi path

2017-11-20 Thread Dylan Baker
There are two distinct set of problems this series addresses. 1) the meson build has never worked 2) the checks for this path have been broken in several different ways for a long time. Dylan Baker (8): glapi: don't walk backwards for includes meson: fix test source name for static

[Mesa-dev] [PATCH 1/8] glapi: don't walk backwards for includes

2017-11-20 Thread Dylan Baker
Instead just set the proper -I flags and include it from a more standard path. In this case we'll add -Isrc/mesa (which is common), and #include main/foo.h. --- src/mapi/Makefile.am | 3 ++- src/mapi/glapi/meson.build | 1 + src/mapi/glapi/tests/check_table.cpp | 2 +- 3

[Mesa-dev] [PATCH 7/8] glapi: Don't search through subdirs from glapitable.h

2017-11-20 Thread Dylan Baker
Because meson won't put it in that folder. Signed-off-by: Dylan Baker --- src/mapi/glapi/tests/check_table.cpp | 2 +- src/mesa/main/tests/Makefile.am | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/

[Mesa-dev] [PATCH 5/8] autotools: Fix includes for non-shared glapi tests.

2017-11-20 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/mapi/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am index 015edc37cb3..5db888abddc 100644 --- a/src/mapi/Makefile.am +++ b/src/mapi/Makefile.am @@ -150,7 +150,8 @@ check_PROGRAMS

[Mesa-dev] [PATCH 4/8] glapi: remove APPLE extensions from test

2017-11-20 Thread Dylan Baker
Fixes: 7009955281260fbb ("mesa: Remove GL_APPLE_vertex_array_object stubs") Signed-off-by: Dylan Baker --- src/mapi/glapi/tests/check_table.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp index 7

[Mesa-dev] [PATCH 6/8] state_tracker: Don't build st-renumerate-test without shared glapi

2017-11-20 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/mesa/state_tracker/tests/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/tests/Makefile.am b/src/mesa/state_tracker/tests/Makefile.am index 6c58d367694..18c0ce50621 100644 --- a/src/mesa/state_tracker/tests/Makefile.am

[Mesa-dev] [PATCH 8/8] glapi: fix check_table test for non-shared glapi with meson

2017-11-20 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/mapi/glapi/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapi/glapi/meson.build b/src/mapi/glapi/meson.build index 892d8b35759..db6cd834511 100644 --- a/src/mapi/glapi/meson.build +++ b/src/mapi/glapi/meson.build

[Mesa-dev] [PATCH 3/8] glapi/check_table: Remove 'extern "C"' block

2017-11-20 Thread Dylan Baker
This doesn't actually accomplish what it's meant to do, as extern C doesn't undefine __cplusplus, so the included headers define a template (because __cplusplus is defined), but then that code is in an 'extern "C"' block, and explosion. Signed-off-by: Dyl

[Mesa-dev] [PATCH 2/8] meson: fix test source name for static glapi

2017-11-20 Thread Dylan Baker
fixes: 43a6e84927e3 ("meson: build mesa test.") Signed-off-by: Dylan Baker --- src/mesa/main/tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/tests/meson.build b/src/mesa/main/tests/meson.build index 2c1d8e067e8..78bef00f61e 100644

[Mesa-dev] [PATCH 5/6] meson: add logic to select apple and windows dri

2017-11-20 Thread Dylan Baker
This is still not fully correct (haiku and BSD are probably not correct), but Linux is not regressed and this should be correct for macOS and Windows. Signed-off-by: Dylan Baker --- meson.build | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/meson.build b

[Mesa-dev] [PATCH 3/6] meson: convert llvm option to tristate

2017-11-20 Thread Dylan Baker
This option has been acting as a strange sort of half-tri state anyway. Signed-off-by: Dylan Baker --- meson.build | 48 +--- meson_options.txt | 5 +++-- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/meson.build b

[Mesa-dev] [PATCH 1/6] meson: Remove duplicate _GNU_SOURCE

2017-11-20 Thread Dylan Baker
There is one provided unconditionally, and one guarded by platform == linux. Remove the unconditional one. Signed-off-by: Dylan Baker --- meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/meson.build b/meson.build index 383ebb36662..ce2c8c2c1d0 100644 --- a/meson.build +++ b

[Mesa-dev] [PATCH 2/6] meson: Convert platform to auto

2017-11-20 Thread Dylan Baker
This is necessary to support operating systems other than the *nix family (excluding macOS). For Linux nothing has changed, the defaults are still the same. Signed-off-by: Dylan Baker --- meson.build | 7 +++ meson_options.txt | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions

[Mesa-dev] [PATCH 6/6] meson: replace with_*dri with with_dri_platform

2017-11-20 Thread Dylan Baker
This fixes the windows and macos stubs to be consistent with the *nix path. Signed-off-by: Dylan Baker --- meson.build| 4 src/glx/meson.build| 4 ++-- src/mapi/glapi/meson.build | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/meson.build b

<    1   2   3   4   5   6   7   8   9   10   >