Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Eric Engestrom
On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > On Fri, Jun 8, 2018 at 9:27 AM, Eric Engestrom > > wrote: > > > > On Friday, 2018-06-08 09:06:06 -0700, Jason Ekstrand wrote: > > > On Fri, Jun 8, 2018 at 8:57 AM, Eric Engestrom >

[Mesa-dev] [Bug 106877] The game Rise of the Tomb Raider lead to GPU hang when I try in same place jump into the hole.

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106877 Samuel Pitoiset changed: What|Removed |Added Component|Drivers/Gallium/radeonsi|Drivers/Vulkan/radeon QA Cont

[Mesa-dev] [Bug 106595] [RADV] Rendering distortions only when MSAA is enabled

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106595 --- Comment #11 from Samuel Pitoiset --- You have to grab and build renderdoc from https://github.com/baldurk/renderdoc Then, you can do "export ENABLE_VULKAN_RENDERDOC_CAPTURE=1", start the game and uses F12 for capturing a trace. -- You are

[Mesa-dev] [Bug 106877] The game Rise of the Tomb Raider lead to GPU hang when I try in same place jump into the hole.

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106877 --- Comment #2 from Samuel Pitoiset --- Can you try to reproduce the issue with latest mesa trunk? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___

[Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Gert Wollny
This warning is misleading: When a struct is partially initialized without assigning to the structure members by name, then the remaining fields will be zeroed out, and this warning will be issued (if enabled). If, on the other hand, the partial initialization is done by assigning to named members,

[Mesa-dev] [PATCH 24/24] gallium/aux/os: Fix warning/handle failure to read from /proc/self/cmdline

2018-06-11 Thread Gert Wollny
Handle the failure to read from /proc/self/cmdline by printing an error message and fix the -Wsign-compare warning: In file included from ./util/u_memory.h:39:0, from os/os_process.c:31: os/os_process.c: In function 'os_get_command_line': os/os_process.c:140:16: warning: compariso

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v2)

2018-06-11 Thread Gert Wollny
Am Freitag, den 08.06.2018, 16:28 +0100 schrieb Emil Velikov: > On 8 June 2018 at 12:02, Gert Wollny wrote: > > From: Gert Wollny > > > > This warning is misleading: When a struct is partially initialized > > without > > assigning to the struture members by name, then the un-initialized > > fiel

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Eric Engestrom
On Monday, 2018-06-11 11:33:20 +0200, Gert Wollny wrote: > This warning is misleading: When a struct is partially initialized without > assigning to the structure members by name, then the remaining fields > will be zeroed out, and this warning will be issued (if enabled). If, on the > other hand,

[Mesa-dev] [PATCH] nv50/ir: fix TargetNVC0::insnCanLoadOffset()

2018-06-11 Thread Rhys Perry
Previously, TargetNVC0::insnCanLoadOffset() returned whether the offset could be set to a specific value. The IndirectPropagation pass expected it to return whether the offset could be increased. Signed-off-by: Rhys Perry --- src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp | 1 + 1 f

[Mesa-dev] [PATCH 0/6] Fix Various Compilation Issues With Bindless

2018-06-11 Thread Rhys Perry
Ping to those who seem appropriate for this patch in case it was forgotten or missed. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 7/8] radeonsi: always put persistent buffers into GTT on radeon

2018-06-11 Thread Michel Dänzer
On 2018-06-09 05:16 AM, Marek Olšák wrote: > From: Marek Olšák > > This improves performance for certain games. > > Cc: 18.1 > --- > src/gallium/drivers/radeonsi/si_buffer.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/radeonsi/si_buffer.c

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 xinghua changed: What|Removed |Added Assignee|intel-3d-bugs@lists.freedes |mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH] wayland/egl: initialize window surface size to window size

2018-06-11 Thread Pekka Paalanen
On Tue, 05 Jun 2018 19:22:47 +0200 "Juan A. Suarez Romero" wrote: > On Tue, 2018-06-05 at 12:41 +0100, Daniel Stone wrote: > > Hi Juan, > > > > On 5 June 2018 at 09:51, Juan A. Suarez Romero wrote: > > > > > On Mon, 2018-06-04 at 13:22 +0100, Daniel Stone wrote: > > > > Yes, that's correc

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 --- Comment #1 from Lionel Landwerlin --- This test passes on Firefox, could this be a chrome bug? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 Lionel Landwerlin changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #2 from Lionel

[Mesa-dev] [Bug 106836] Out of bounds array access in FindProcIndex

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106836 Eric Engestrom changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [PATCH] nv50/ir: handle SHLADD in IndirectPropagation

2018-06-11 Thread Rhys Perry
An alternative solution to the problem fixed in 0bd83d0 ("nv50/ir: move LateAlgebraicOpt to the very end"). Should be useful in the future and seems to make dolphin ubershaders a bit smaller. total instructions in shared programs : 226722 -> 226464 (-0.11%) total gprs used in shared programs:

[Mesa-dev] [PATCH mesa] i965: fix resource leak

2018-06-11 Thread Eric Engestrom
From: Eric Engestrom v2: intel_miptree_release() already takes care of the planes, no need to hand-code the loop (Lionel) Coverity ID: 1436909 Cc: Lionel Landwerlin Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV images" Signed-off-by: Eric Engestrom --- src/m

[Mesa-dev] [PATCH mesa v2] i965: fix resource leak

2018-06-11 Thread Eric Engestrom
From: Eric Engestrom v2: intel_miptree_release() already takes care of the planes, no need to hand-code the loop (Lionel) Coverity ID: 1436909 Cc: Lionel Landwerlin Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV images" Signed-off-by: Eric Engestrom --- src/m

Re: [Mesa-dev] [PATCH mesa 2/3] include: sync khrplatform.h from Khronos

2018-06-11 Thread Eric Engestrom
NAK'ing my own patch, this is causing the symbols to no longer be exported; I'll look at this, but for now let's just ignore this patch :) On Sunday, 2018-06-10 09:35:52 +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom > --- > include/KHR/khrplatform.h | 20 > 1

Re: [Mesa-dev] [PATCH mesa v2] i965: fix resource leak

2018-06-11 Thread Lionel Landwerlin
On 11/06/18 14:22, Eric Engestrom wrote: From: Eric Engestrom v2: intel_miptree_release() already takes care of the planes, no need to hand-code the loop (Lionel) Coverity ID: 1436909 Cc: Lionel Landwerlin Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV image

Re: [Mesa-dev] [PATCH 7/8] radeonsi: always put persistent buffers into GTT on radeon

2018-06-11 Thread Marek Olšák
On Mon, Jun 11, 2018 at 6:54 AM, Michel Dänzer wrote: > On 2018-06-09 05:16 AM, Marek Olšák wrote: > > From: Marek Olšák > > > > This improves performance for certain games. > > > > Cc: 18.1 > > --- > > src/gallium/drivers/radeonsi/si_buffer.c | 6 +- > > 1 file changed, 5 insertions(+), 1

Re: [Mesa-dev] [PATCH 0/6] Fix Various Compilation Issues With Bindless

2018-06-11 Thread Marek Olšák
The series is OK with me, even though radeonsi can't support the new opcodes. Marek On Mon, Jun 11, 2018 at 6:24 AM, Rhys Perry wrote: > Ping to those who seem appropriate for this patch in case it was forgotten > or missed. > ___ mesa-dev mailing lis

[Mesa-dev] [PATCH] nir: add pass to move load_const

2018-06-11 Thread Rob Clark
Run this pass late (after opt loop) to move load_const instructions back into the basic blocks which use the result, in cases where a load_const is only consumed in a single block. This helps reduce register usage in cases where the backend driver cannot lower the load_const to a uniform. v2: use

[Mesa-dev] [Bug 106843] Cannot build osmesa with GLES support using Scons and MSVC

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106843 Alex Granni changed: What|Removed |Added CC||jfons...@vmware.com -- You are receiving

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Gert Wollny
Am Montag, den 11.06.2018, 11:05 +0100 schrieb Eric Engestrom: > On Monday, 2018-06-11 11:33:20 +0200, Gert Wollny wrote: > > This warning is misleading: When a struct is partially initialized > > without > > assigning to the structure members by name, then the remaining > > fields > > will be zero

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Dylan Baker
Quoting Gert Wollny (2018-06-11 09:05:52) > Am Montag, den 11.06.2018, 11:05 +0100 schrieb Eric Engestrom: > > On Monday, 2018-06-11 11:33:20 +0200, Gert Wollny wrote: > > > This warning is misleading: When a struct is partially initialized > > > without > > > assigning to the structure members by

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Dylan Baker
Quoting Eric Engestrom (2018-06-11 02:10:37) > On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > > On Fri, Jun 8, 2018 at 9:27 AM, Eric Engestrom > > > wrote: > > > > > > On Friday, 2018-06-08 09:06:06 -0700, Jason Ekstrand wrote: >

[Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v4)

2018-06-11 Thread Gert Wollny
This warning is misleading: When a struct is partially initialized without assigning to the structure members by name, then the remaining fields will be zeroed out, and this warning will be issued (if enabled). If, on the other hand, the partial initialization is done by assigning to named members,

Re: [Mesa-dev] [PATCH 4/4] meson: remove a bunch of out of date TODO's

2018-06-11 Thread Dylan Baker
Quoting Eric Anholt (2018-06-08 11:29:41) > Dylan Baker writes: > > > [ Unknown signature status ] > > Quoting Eric Anholt (2018-06-07 14:29:19) > >> Dylan Baker writes: > >> > >> > Some of these are done already, some of them are things we're not going > >> > to do, like have a toggle for GLX_

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Jason Ekstrand
On Mon, Jun 11, 2018 at 9:21 AM, Dylan Baker wrote: > Quoting Eric Engestrom (2018-06-11 02:10:37) > > On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > > > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > > > On Fri, Jun 8, 2018 at 9:27 AM, Eric Engestrom < > eric.engest...@intel.com> >

[Mesa-dev] [PATCH] radv: update the ZRANGE_PRECISION value for the TC-compat bug

2018-06-11 Thread Samuel Pitoiset
On GFX8+, there is a bug that affects TC-compatible depth surfaces when the ZRange is not reset after LateZ kills pixels. The workaround is to always set DB_Z_INFO.ZRANGE_PRECISION to match the last fast clear value. Because the value is set to 1 by default, we only need to update it when clearing

[Mesa-dev] [PATCH v2 4/6] meson: Add support for ppc assembly/optimizations

2018-06-11 Thread Dylan Baker
v2: - Use -mpower8-vector in compiler test for altivec - rename altivec option to power8 - reword power8 option description to be more clear, originally I had made it a boolean, but replaced it with an auto option. Signed-off-by: Dylan Baker --- meson.build | 31 +

[Mesa-dev] [PATCH v2 5/6] meson: Make use of optional modules

2018-06-11 Thread Dylan Baker
meson 0.43 gained support for optional modules, which clover wold like to use. Since we require 0.44.1 now we can rely on them being available for clover. compile tested only. Signed-off-by: Dylan Baker --- meson.build | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff

[Mesa-dev] [PATCH v2 6/6] meson: remove a bunch of out of date TODO's

2018-06-11 Thread Dylan Baker
Some of these are done already, some of them are things we're not going to do, like have a toggle for GLX_TLS. v2: - Don't remove USE_MGL_NAMESPACE or with_glx_direct Signed-off-by: Dylan Baker --- meson.build | 8 src/egl/meson.build | 2 -- src/gbm/meson.build | 2 -- 3 files

[Mesa-dev] [PATCH v2 1/6] meson: move cc and cpp definitions to top of main meson.build

2018-06-11 Thread Dylan Baker
This just makes using cc and cpp easier. v2: - Add this patch to fix altivec --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 160bbfa30ba..16866d77ed3 100644 --- a/meson.build +++ b/meson.build @@ -29,6 +29,9 @@ project( d

[Mesa-dev] [PATCH v2 2/6] meson: Set include dirs for asm

2018-06-11 Thread Dylan Baker
v2: - split this from the next patch - Only include x86-64 and not x86 when buiding x86_64 Signed-off-by: Dylan Baker --- src/mesa/meson.build | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/meson.build b/src/mesa/meson.build index cba361c0988..24b5cc821c

[Mesa-dev] [PATCH v2 3/6] meson: Add support for SPARC assembly

2018-06-11 Thread Dylan Baker
Not tested at all (not even compiled), just a blind port from autotools. Signed-off-by: Dylan Baker --- meson.build| 5 + src/mapi/glapi/meson.build | 3 ++- src/mesa/meson.build | 8 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/meson.build b

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Eric Engestrom
On Monday, 2018-06-11 09:42:08 -0700, Jason Ekstrand wrote: > On Mon, Jun 11, 2018 at 9:21 AM, Dylan Baker wrote: > > > Quoting Eric Engestrom (2018-06-11 02:10:37) > > > On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > > > > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > > > > On Fri

Re: [Mesa-dev] [PATCH v2 1/6] meson: move cc and cpp definitions to top of main meson.build

2018-06-11 Thread Matt Turner
Series looks good to me. Compile tested on ppc64 and ppc64le and confirmed that the POWER8 intrinsics are enabled only on ppc64le. Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/li

[Mesa-dev] [Bug 106810] ProgramBinary does not switch program correctly when using transform feedback

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106810 Jordan Justen changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [PATCH] mesa/st/nir: fix driver_location for arrays of image/sampler

2018-06-11 Thread Rob Clark
We can have arrays of images or samplers. But I forgot to handle that case long ago. Suprised no one complained yet. Signed-off-by: Rob Clark --- src/mesa/state_tracker/st_glsl_to_nir.cpp | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/mesa/state_tracke

[Mesa-dev] [Bug 106877] The game Rise of the Tomb Raider lead to GPU hang when I try in same place jump into the hole.

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106877 --- Comment #3 from Bas Nieuwenhuizen --- Any indication to devs trying to get to the same spot for testing, what level this is? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug._

Re: [Mesa-dev] [PATCH mesa 01/21] vulkan: Add KHR_display extension using DRM [v4]

2018-06-11 Thread Keith Packard
Eric Engestrom writes: > I just pushed it; your `if (result != VK_SUCCESS)` should now just be > `goto fail;` :) Yup, I've update my drm-lease branch to match. -- -keith signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@li

[Mesa-dev] RFC about anv change that should be applicable to radv

2018-06-11 Thread Mauro Rossi
Hi Bas, commit [1] removed a check on 'supported' attribute in src/intel/vulkan/anv_entrypoints_gen.py Should the check on 'supported' attribute be removed also in src/amd/vulkan/radv_entrypoints_gen.py ? Thanks for your feedback Mauro [1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=6352

[Mesa-dev] [PATCH] intel/compiler: Properly consider UBO loads that cross 32B boundaries.

2018-06-11 Thread Kenneth Graunke
The UBO push analysis pass incorrectly assumed that all values would fit within a 32B chunk, and only recorded a bit for the 32B chunk containing the starting offset. For example, if a UBO contained the following, tightly packed: vec4 a; // [0, 16) float b; // [16, 20) vec4 c; // [20,

[Mesa-dev] [Bug 106893] Potential mem leak with radv

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106893 Bug ID: 106893 Summary: Potential mem leak with radv Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority:

Re: [Mesa-dev] [PATCH] mesa/st/nir: fix driver_location for arrays of image/sampler

2018-06-11 Thread Timothy Arceri
Looks right to me. I guess we have no piglit tests for it, I ran the CTS a few times on radeonsi but I was more focused on getting piglit working. Reviewed-by: Timothy Arceri On 12/06/18 04:56, Rob Clark wrote: We can have arrays of images or samplers. But I forgot to handle that case long a

Re: [Mesa-dev] [PATCH] mesa/st/nir: fix driver_location for arrays of image/sampler

2018-06-11 Thread Rob Clark
fwiw, I didn't notice yet any case where this matters for textures, but for images, you could try (from deqp gles31 module) dEQP-GLES31.functional.layout_binding.image.image2d.fragment_binding_array as an example (perhaps I should have mentioned that in the commit msg) I'm not 100% sure if we jus

Re: [Mesa-dev] [PATCH 00/16] Move the Mesa Website to Sphinx

2018-06-11 Thread Laura Ekstrand
I really like the rotate on hover effect for the gears. I would rather that we use 2D WebGL for it if we could, though, since Mesa enables WebGL on certain platforms. Stuart, I will try to get the favicon and rtd_theme fixed. We may have to make our Docker image. Thanks. Laura On Fri, Jun 8,

Re: [Mesa-dev] [PATCH 2/2] nir: add lowering for gl_HelperInvocation

2018-06-11 Thread Jason Ekstrand
On Wed, Jun 6, 2018 at 7:43 AM, Rob Clark wrote: > Signed-off-by: Rob Clark > --- > I can't say for sure that this will work on all drivers, but it is > what the blob driver does, and it seems to make deqp happy. I could > move this to it's own pass inside ir3, but that seemed like overkill > >

Re: [Mesa-dev] [PATCH 2/2] nir: add lowering for gl_HelperInvocation

2018-06-11 Thread Jason Ekstrand
On Mon, Jun 11, 2018 at 3:32 PM, Jason Ekstrand wrote: > On Wed, Jun 6, 2018 at 7:43 AM, Rob Clark wrote: > >> Signed-off-by: Rob Clark >> --- >> I can't say for sure that this will work on all drivers, but it is >> what the blob driver does, and it seems to make deqp happy. I could >> move th

Re: [Mesa-dev] [PATCH 2/2] nir: add lowering for gl_HelperInvocation

2018-06-11 Thread Rob Clark
On Mon, Jun 11, 2018 at 6:34 PM, Jason Ekstrand wrote: > On Mon, Jun 11, 2018 at 3:32 PM, Jason Ekstrand > wrote: >> >> On Wed, Jun 6, 2018 at 7:43 AM, Rob Clark wrote: >>> >>> Signed-off-by: Rob Clark >>> --- >>> I can't say for sure that this will work on all drivers, but it is >>> what the b

[Mesa-dev] [PATCH 01/48] meson: always define libglapi

2018-06-11 Thread Dylan Baker
This allows the identifier to be used even if shared-glapi isn't build, which simplifies a bunch of things. --- src/mapi/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mapi/meson.build b/src/mapi/meson.build index 798586bfb0c..0be80047e4d 100644 --- a/src/mapi/meson.build ++

[Mesa-dev] [PATCH 00/48] Meson for Windows (mingw and msvc)

2018-06-11 Thread Dylan Baker
This series gets things compiling with MinGW on Linux and MSVC on windows. I've got things compiling and some unit tests passing (with one still failing, and a few disabled). This is pretty much a shotgun approach, I just blindly copied all of the flags from scons/gallium.py and then began wacking

[Mesa-dev] [PATCH 14/48] meson: don't build shader cache on windows

2018-06-11 Thread Dylan Baker
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4247d195bc1..ed63276b63e 100644 --- a/meson.build +++ b/meson.build @@ -699,7 +699,7 @@ if get_option('buildtype') == 'debug' pre_args += '-DDEBUG' endif -if get_option('shader

[Mesa-dev] [PATCH 04/48] meson: add a expat subproject

2018-06-11 Thread Dylan Baker
--- meson.build| 2 +- subprojects/expat.wrap | 10 ++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 subprojects/expat.wrap diff --git a/meson.build b/meson.build index 6e5e2e873c2..5fba72c96f7 100644 --- a/meson.build +++ b/meson.build @@ -1009,7 +1009

[Mesa-dev] [PATCH 08/48] meson: fix dl detection on non cygwin windows

2018-06-11 Thread Dylan Baker
--- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 5fba72c96f7..634a7a21758 100644 --- a/meson.build +++ b/meson.build @@ -972,9 +972,9 @@ endif if cc.has_function('dlopen') dep_dl = null_dep else - dep_dl = cc.find_library

[Mesa-dev] [PATCH 05/48] gallium: fix ddebug on windows

2018-06-11 Thread Dylan Baker
by including the proper headers for getpid and for mkdir. --- src/gallium/auxiliary/driver_ddebug/dd_util.h | 6 +- src/gallium/auxiliary/meson.build | 6 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/driver_ddebug/dd_util.h b/src/gall

[Mesa-dev] [PATCH 03/48] meson: add a zlib subproject

2018-06-11 Thread Dylan Baker
To help windows build --- meson.build | 2 +- subprojects/zlib.wrap | 10 ++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 subprojects/zlib.wrap diff --git a/meson.build b/meson.build index 160bbfa30ba..6e5e2e873c2 100644 --- a/meson.build +++ b/meson.bui

[Mesa-dev] [PATCH 06/48] glapi: export glapi_destroy_multithread when building shared-glapi on windows

2018-06-11 Thread Dylan Baker
Which will allow meson to build a shared glapi build with mingw. --- src/mapi/glapi/glapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h index d5d4e0a03a6..cbdef2e4c5a 100644 --- a/src/mapi/glapi/glapi.h +++ b/src/mapi/glapi/gl

[Mesa-dev] [PATCH 11/48] meson: don't build glx or dri by default on windows

2018-06-11 Thread Dylan Baker
--- meson.build | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 9c8b9ca9ba5..1bdeeb95ec5 100644 --- a/meson.build +++ b/meson.build @@ -266,9 +266,13 @@ if with_glx == 'auto' elif with_platform_haiku with_glx = 'disabled' el

[Mesa-dev] [PATCH 43/48] meson: don't build or run mesa-sha1 test on windows

2018-06-11 Thread Dylan Baker
It crashes hard (pop-up window and all). --- src/util/meson.build | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/util/meson.build b/src/util/meson.build index c777984e28d..cf1eb64362d 100644 --- a/src/util/meson.build +++ b/src/util/meson.build @@ -1

[Mesa-dev] [PATCH 36/48] meson: Don't build glsl cache_test for windows

2018-06-11 Thread Dylan Baker
--- src/compiler/glsl/tests/meson.build | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build index fc7b863a278..725bc37438e 100644 --- a/src/compiler/glsl/tests/meson.build +++ b/src

[Mesa-dev] [PATCH 25/48] util/xmlconfig: include strndup.h for windows

2018-06-11 Thread Dylan Baker
--- src/util/xmlconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c index 60a6331c86c..de3548b6b9d 100644 --- a/src/util/xmlconfig.c +++ b/src/util/xmlconfig.c @@ -36,6 +36,7 @@ #include #include #include +#include "strndup.h" #include "x

[Mesa-dev] [PATCH 34/48] meson: Add idep_getopt for tests

2018-06-11 Thread Dylan Baker
There are quite a few tests that require getopt, when using MSVC we need to use the bundled version of getopt since there isn't a system version. --- src/compiler/glsl/glcpp/meson.build | 2 +- src/compiler/glsl/meson.build | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff -

[Mesa-dev] [PATCH 26/48] meson: fix pipe-loader compilation for windows

2018-06-11 Thread Dylan Baker
--- src/gallium/auxiliary/pipe-loader/meson.build | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/pipe-loader/meson.build b/src/gallium/auxiliary/pipe-loader/meson.build index 32e8188c68b..207e4b0fac4 100644 --- a/src/gallium/auxiliary/pipe-loade

[Mesa-dev] [PATCH 28/48] meson: Add support for using win_flex and win_bison on windows

2018-06-11 Thread Dylan Baker
--- meson.build | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 42e2540146c..f3e9676f8bf 100644 --- a/meson.build +++ b/meson.build @@ -1257,8 +1257,31 @@ endif # pthread stubs. Lets not and say we didn't -prog_b

[Mesa-dev] [PATCH 31/48] meson: disable sse4.1 optimizations with msvc

2018-06-11 Thread Dylan Baker
There isn't an obvious command line switch here, /arch:AVX *might* be the right thing, but meson doesn't know what to do here either and leaves the -msse4.1 and -mstackrealign. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index abe45

[Mesa-dev] [PATCH 30/48] meson: for incluse of inttypes.h for glcpp with msvc

2018-06-11 Thread Dylan Baker
Because we provide a copy if MSVC doesn't, and we need it to make flex do what we want. --- src/compiler/glsl/glcpp/meson.build | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build index 09d44

[Mesa-dev] [PATCH 09/48] meson: build getopt when using msvc

2018-06-11 Thread Dylan Baker
completely untested --- src/getopt/meson.build | 29 + src/meson.build| 5 + 2 files changed, 34 insertions(+) create mode 100644 src/getopt/meson.build diff --git a/src/getopt/meson.build b/src/getopt/meson.build new file mode 100644 index 000..5

[Mesa-dev] [PATCH 02/48] add a git ignore for subprojects

2018-06-11 Thread Dylan Baker
--- subprojects/.gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 subprojects/.gitignore diff --git a/subprojects/.gitignore b/subprojects/.gitignore new file mode 100644 index 000..68a882edba6 --- /dev/null +++ b/subprojects/.gitignore @@ -0,0 +1,3 @@ +* +!*.wrap +!

[Mesa-dev] [PATCH 13/48] meson: add windows compiler checks and libraries

2018-06-11 Thread Dylan Baker
--- meson.build | 126 ++-- 1 file changed, 82 insertions(+), 44 deletions(-) diff --git a/meson.build b/meson.build index fb07c2dd0de..4247d195bc1 100644 --- a/meson.build +++ b/meson.build @@ -688,6 +688,8 @@ if has_mako.returncode() != 0 endif

[Mesa-dev] [PATCH 32/48] meson: add switches for SWR with MSVC

2018-06-11 Thread Dylan Baker
--- src/gallium/drivers/swr/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/meson.build b/src/gallium/drivers/swr/meson.build index b95c8bc1bf8..ec4d80e4bb2 100644 --- a/src/gallium/drivers/swr/meson.build +++ b/src/gallium/drivers/swr/mes

[Mesa-dev] [PATCH 23/48] meson: Add support for wrapping llvm

2018-06-11 Thread Dylan Baker
For building on Windows (when not using cygwin), the assumption is that LLVM will have to be handled via a binary wrap. In this case the user wanting to use LLVM is this way will need to create a directory in subprojects (any name is fine), and pass that name via the -Dllvm-wrap option (for example

[Mesa-dev] [PATCH 42/48] meson: disable graw tests on mingw

2018-06-11 Thread Dylan Baker
I can't figure out why symbols are being exposed that shouldn't. --- src/gallium/tests/meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/tests/meson.build b/src/gallium/tests/meson.build index 15b9f549647..1d08da2ac10 100644 --- a/src/gallium/tests/me

[Mesa-dev] [PATCH 27/48] meson: don't look for rt on windows

2018-06-11 Thread Dylan Baker
--- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 67577241953..42e2540146c 100644 --- a/meson.build +++ b/meson.build @@ -1053,7 +1053,9 @@ elif with_dri_i965 and get_option('shader-cache') endif # Determine whether or not th

[Mesa-dev] [PATCH 47/48] appveyor: use chocolatey (cinst) to isntall winflexbixon

2018-06-11 Thread Dylan Baker
--- appveyor.yml | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 06063feba93..f544314e730 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,13 +34,11 @@ branches: clone_depth: 100 cache: -- win_flex_bison-2.5.9.zip - llvm-3.3.1-msvc

[Mesa-dev] [PATCH 29/48] meson: don't look for nm binary on windows

2018-06-11 Thread Dylan Baker
--- meson.build | 5 - src/mapi/es1api/meson.build | 2 +- src/mapi/es2api/meson.build | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index f3e9676f8bf..abe45e933ba 100644 --- a/meson.build +++ b/meson.build @@ -1468,8 +1468,11

[Mesa-dev] [PATCH 40/48] meosn: don't build gallium trivial tests on windows

2018-06-11 Thread Dylan Baker
They require the pipe-loaders, which require xmlconfig, which doesn't build with msvc. --- src/gallium/tests/meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/tests/meson.build b/src/gallium/tests/meson.build index 0ee04350c87..15b9f549647 100644 --- a

[Mesa-dev] [PATCH 38/48] nir/meson: fix c vs cpp args for nir test

2018-06-11 Thread Dylan Baker
--- src/compiler/nir/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build index 598c68aff9f..b6677ae7793 100644 --- a/src/compiler/nir/meson.build +++ b/src/compiler/nir/meson.build @@ -231,7 +231,7 @@ if with_t

[Mesa-dev] [PATCH 17/48] meson: build gallium gdi winsys

2018-06-11 Thread Dylan Baker
--- src/gallium/meson.build | 6 ++ src/gallium/winsys/sw/gdi/meson.build | 27 +++ 2 files changed, 33 insertions(+) create mode 100644 src/gallium/winsys/sw/gdi/meson.build diff --git a/src/gallium/meson.build b/src/gallium/meson.build index 561af9d33

[Mesa-dev] [PATCH 48/48] tests/vma: fix build with MSVC

2018-06-11 Thread Dylan Baker
--- src/util/tests/vma/vma_random_test.cpp | 8 1 file changed, 8 insertions(+) diff --git a/src/util/tests/vma/vma_random_test.cpp b/src/util/tests/vma/vma_random_test.cpp index de887fead30..26914a56d2c 100644 --- a/src/util/tests/vma/vma_random_test.cpp +++ b/src/util/tests/vma/vma_ra

[Mesa-dev] [PATCH 37/48] glsl/tests: define ssize_t on windows

2018-06-11 Thread Dylan Baker
--- src/compiler/glsl/tests/blob_test.c | 4 1 file changed, 4 insertions(+) diff --git a/src/compiler/glsl/tests/blob_test.c b/src/compiler/glsl/tests/blob_test.c index 1cc97236e7e..21b8b1efdc1 100644 --- a/src/compiler/glsl/tests/blob_test.c +++ b/src/compiler/glsl/tests/blob_test.c @@ -2

[Mesa-dev] [PATCH 22/48] meson: Don't check for posix_memalign on windows

2018-06-11 Thread Dylan Baker
There's a mingw bug for this, it exports __builtin_posix_memalign but not posix_memalign, so the check will succeed, but compiling will fail. --- meson.build | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index ed63276b63e..0b0203bc03d

[Mesa-dev] [PATCH 19/48] meson: build libgl-gdi target

2018-06-11 Thread Dylan Baker
--- src/gallium/meson.build | 1 + src/gallium/targets/libgl-gdi/meson.build | 44 +++ 2 files changed, 45 insertions(+) create mode 100644 src/gallium/targets/libgl-gdi/meson.build diff --git a/src/gallium/meson.build b/src/gallium/meson.build index a4f28d

[Mesa-dev] [PATCH 16/48] meson: Add necessary defines for mesa_gallium on windows

2018-06-11 Thread Dylan Baker
--- src/mesa/meson.build | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mesa/meson.build b/src/mesa/meson.build index cba361c0988..c1606b4551e 100644 --- a/src/mesa/meson.build +++ b/src/mesa/meson.build @@ -716,11 +716,19 @@ libmesa_classic = static_library(

[Mesa-dev] [PATCH 21/48] meson: fix gallium-osmesa to build for windows

2018-06-11 Thread Dylan Baker
--- src/gallium/state_trackers/osmesa/meson.build | 12 ++-- src/gallium/targets/osmesa/meson.build| 9 - 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/osmesa/meson.build b/src/gallium/state_trackers/osmesa/meson.build index 91

[Mesa-dev] [PATCH 20/48] meson: build graw-gdi target

2018-06-11 Thread Dylan Baker
--- src/gallium/meson.build | 4 ++- src/gallium/targets/graw-gdi/meson.build | 36 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/gallium/targets/graw-gdi/meson.build diff --git a/src/gallium/meson.build b/src/gallium/meson.bui

[Mesa-dev] [PATCH 10/48] meson: Add a platform for windows

2018-06-11 Thread Dylan Baker
This mirrors the haiku build which uses a platform. --- meson.build | 16 ++-- meson_options.txt | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 634a7a21758..9c8b9ca9ba5 100644 --- a/meson.build +++ b/meson.build @@ -222,14

[Mesa-dev] [PATCH 07/48] glsl: fix general_ir_test with mingw

2018-06-11 Thread Dylan Baker
Somewhere down in the depths of the mingw headers 'interface' is defined, change it to iface like a similar patch did. --- src/compiler/glsl/tests/general_ir_test.cpp | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler/glsl/tests/general_ir_test.cpp b/s

[Mesa-dev] [PATCH 44/48] meson: add windows specific linker flags

2018-06-11 Thread Dylan Baker
--- meson.build | 21 + 1 file changed, 21 insertions(+) diff --git a/meson.build b/meson.build index a244694fd4a..e1b3afbe688 100644 --- a/meson.build +++ b/meson.build @@ -847,6 +847,27 @@ else endforeach endif +# set linker arguments +if host_machine.system() == 'wind

[Mesa-dev] [PATCH 15/48] meson: Add windows defines to glapi

2018-06-11 Thread Dylan Baker
These are needed to control the export or symbols due to differences between the way windows and *nix handle symbol exports. --- src/mapi/es1api/meson.build | 10 +- src/mapi/es2api/meson.build | 10 +- src/mapi/glapi/meson.build| 13 - src/mapi/shar

[Mesa-dev] [PATCH 41/48] meson: Fix gtest linkage on msvc

2018-06-11 Thread Dylan Baker
We need to add an extra flag (/SUBSYSTEM:CONSOLE) to get the msvc linker to find main() in a static library. --- src/gtest/meson.build | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gtest/meson.build b/src/gtest/meson.build index 91a49240416..ed0d6974bd3 100644 --- a/src/gtest/meso

[Mesa-dev] [PATCH 18/48] meson: build wgl state tracker

2018-06-11 Thread Dylan Baker
--- src/gallium/meson.build| 3 ++ src/gallium/state_trackers/wgl/meson.build | 50 ++ 2 files changed, 53 insertions(+) create mode 100644 src/gallium/state_trackers/wgl/meson.build diff --git a/src/gallium/meson.build b/src/gallium/meson.build index 775

[Mesa-dev] [PATCH 45/48] meson: allow python2 to be installed as python

2018-06-11 Thread Dylan Baker
On mac and Windows it may not be installed as python2, so search for python as well. Also check that what we find actually is python2 --- meson.build | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e1b3afbe688..6fd02dd4c6c 10064

[Mesa-dev] [PATCH 12/48] meson: don't allow glvnd on windows

2018-06-11 Thread Dylan Baker
--- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1bdeeb95ec5..fb07c2dd0de 100644 --- a/meson.build +++ b/meson.build @@ -354,7 +354,9 @@ endif with_glvnd = get_option('glvnd') if with_glvnd - if with_glx == 'xlib' or with_g

[Mesa-dev] [PATCH 33/48] meson: don't define GLX_USE_TLS for windows

2018-06-11 Thread Dylan Baker
Because the macros for exporting dll symbols and using TLS are mutually exclusive. --- meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index bbcfb8ed8cb..a244694fd4a 100644 --- a/meson.build +++ b/meson.build @@ -327,7 +327,10 @@ if wit

Re: [Mesa-dev] [PATCH 2/2] nir: add lowering for gl_HelperInvocation

2018-06-11 Thread Roland Scheidegger
Am 12.06.2018 um 00:32 schrieb Jason Ekstrand: > On Wed, Jun 6, 2018 at 7:43 AM, Rob Clark > wrote: > > Signed-off-by: Rob Clark > > --- > I can't say for sure that this will work on all drivers, but it is > what the blo

[Mesa-dev] [PATCH 46/48] appveyor: Add support for meson as well as scons

2018-06-11 Thread Dylan Baker
This currently builds softpipe only --- appveyor.yml | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index bd33e2e9554..06063feba93 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,6 +42,9 @@ os: Visual Studio 2015 e

  1   2   >