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 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

[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

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

[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

[Mesa-dev] [PATCH 24/48] docs/meson.html: fix numerous issues spotted by xmllint

2018-06-11 Thread Dylan Baker
--- docs/meson.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/meson.html b/docs/meson.html index 6697dbb34ef..7541e7a71b0 100644 --- a/docs/meson.html +++ b/docs/meson.html @@ -1,9 +1,9 @@ http://www.w3.org/TR/html4/loose.dtd;> - + Compilation and

[Mesa-dev] [PATCH 35/48] util/tests: Use define instead of VLA

2018-06-11 Thread Dylan Baker
To allow the this test to be built with MSVC, which doesn't support VLAs. --- src/util/tests/hash_table/clear.c | 13 +++-- src/util/tests/hash_table/delete_management.c | 13 +++-- src/util/tests/hash_table/insert_many.c | 11 ++-

[Mesa-dev] [PATCH 39/48] meson: Set visibility and compat args for graw

2018-06-11 Thread Dylan Baker
--- src/gallium/targets/graw-gdi/meson.build | 1 + src/gallium/targets/graw-null/meson.build | 2 ++ src/gallium/targets/graw-xlib/meson.build | 1 + 3 files changed, 4 insertions(+) diff --git a/src/gallium/targets/graw-gdi/meson.build b/src/gallium/targets/graw-gdi/meson.build index

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

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: > Sorry for the multitude of replies. :-( It's all the same to me; you've been busy! >>radv_wsi_proc_addr, >> - _device->instance->alloc); >> + _device->instance->alloc, >> +

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

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:59 PM, Roland Scheidegger wrote: > 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

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

2018-06-11 Thread Rob Clark
On Mon, Jun 11, 2018 at 6:24 PM, Laura Ekstrand wrote: > 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. > webgl can be a bit heavy for startup time although it might be

[Mesa-dev] [PATCH 04/23] TRIVIAL: intel/eu: Use a local devinfo variable in brw_shader_time_add().

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu_emit.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index 7389e8e3bde..9f449fb9d34 100644 --- a/src/intel/compiler/brw_eu_emit.c +++

[Mesa-dev] [PATCH 22/23] intel/ir: Drop hard-coded correspondence between IR and HW opcodes.

2018-06-11 Thread Francisco Jerez
Having the IR opcodes locked to their hardware representation is risky because it causes opcodes as different as BRC and IFF to compare equal at the IR level (luckily the back-end only ever uses one opcode from each group, right now), and it prevents us from supporting instructions that change

Re: [Mesa-dev] [PATCH mesa 05/21] anv: Add EXT_direct_mode_display to anv driver

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: > Alphabetize, please. :-) They're not actually in alphabetical order; EXT comes after KHR? I've ordered the EXT extensions within the existing EXT list, and added the MESA and GOOGLE extensions at the end. -- -keith signature.asc Description: PGP signature

[Mesa-dev] [PATCH] anv: implement basic VK_AMD_shader_info support

2018-06-11 Thread Timothy Arceri
From: Timothy Arceri For now this just allows an app to query VK_SHADER_INFO_TYPE_DISASSEMBLY_AMD which for now only returns shader-db information. This will allow us to use anv with vkpipeline-db. We should add shader disassembly in the future so that RenderDoc can display it, but that will

[Mesa-dev] [PATCH 2/2] vkpipeline-db: add support for anv

2018-06-11 Thread Timothy Arceri
From: Timothy Arceri --- anv-report.py | 191 ++ run.c | 75 +--- 2 files changed, 239 insertions(+), 27 deletions(-) create mode 100755 anv-report.py diff --git a/anv-report.py b/anv-report.py new file mode 100755 index

[Mesa-dev] [PATCH 1/2] vkpipeline-db: add sType to pipeline info

2018-06-11 Thread Timothy Arceri
From: Timothy Arceri This avoids hitting asserts in anv. --- run.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.c b/run.c index eafbd7d..a962887 100644 --- a/run.c +++ b/run.c @@ -264,6 +264,7 @@ create_graphics_pipeline(VkDevice device, struct pipeline_info *info, return

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

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

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: > If you move the VK_OUTARRAY_MAKE up higher, both of the "goto bail"s can be > "return vk_outarray_status()". Not a big deal though; what you have > is probably fine. I'll leave it then. >> +prop->currentStackIndex = stack_index++; >> > > In your branch,

Re: [Mesa-dev] [PATCH mesa 07/21] vulkan: Add EXT_acquire_xlib_display [v2]

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: > As with patch 1, I've gone through and made a pile of style changes to > bring things back under 80 characters. You can find it on this > branch: I've adopted that style across the whole series. >> struct wsi_display { >> @@ -1414,5 +1421,468 @@

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

[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 ---

[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

[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 -

[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 ---

[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

[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

[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 +++

[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 @@

[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

[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

[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

[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

[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

[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

[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() ==

[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 -

[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 ---

[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 +++

[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

[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 =

[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

[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

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

2018-06-11 Thread Laura Ekstrand
It's done already, it was a one-liner: https://gitlab.freedesktop.org/ldeks/mesa/commits/website1_75_v2 On Mon, Jun 11, 2018 at 5:15 PM, Stuart Young wrote: > Laura: Brilliant. Don't let it hang any deployment though. There's so much > more good in this that losing the favicon for a while is

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

2018-06-11 Thread Roland Scheidegger
Am 12.06.2018 um 01:17 schrieb Rob Clark: > On Mon, Jun 11, 2018 at 6:59 PM, Roland Scheidegger > wrote: >> 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 >>

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

2018-06-11 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Mon, Jun 11, 2018 at 6:55 PM, Dylan Baker wrote: > 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

Re: [Mesa-dev] [PATCH mesa 02/21] anv: Add KHR_display extension to anv [v4]

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: >> +#define MM_PER_PIXEL (1.0/96.0 * 25.4) >> > > I don't think you need this. :-) Now you have me wondering when it was needed :-) > Other than that and the comment on patch 1 about stuff that should probably > go here, this looks good to me. Yeah, if you're not

[Mesa-dev] [PATCH 1/2] vkpipeline-db: add sType to pipeline info

2018-06-11 Thread Timothy Arceri
From: Timothy Arceri This avoids hitting asserts in anv. --- run.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.c b/run.c index eafbd7d..a962887 100644 --- a/run.c +++ b/run.c @@ -264,6 +264,7 @@ create_graphics_pipeline(VkDevice device, struct pipeline_info *info, return

[Mesa-dev] [PATCH 2/2] vkpipeline-db: add support for anv

2018-06-11 Thread Timothy Arceri
From: Timothy Arceri --- anv-report.py | 191 ++ run.c | 75 +--- 2 files changed, 239 insertions(+), 27 deletions(-) create mode 100755 anv-report.py diff --git a/anv-report.py b/anv-report.py new file mode 100755 index

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:59 PM, Roland Scheidegger wrote: > 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

[Mesa-dev] [PATCH 16/23] intel/eu: Assert that the instruction is send-like in brw_set_desc_ex().

2018-06-11 Thread Francisco Jerez
Constructing a descriptor in-place as part of the immediate of an ALU instruction is no longer supported. --- src/intel/compiler/brw_eu_emit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index

[Mesa-dev] [PATCH 12/23] intel/eu: Use descriptor constructors for dataport scattered byte surface messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu_emit.c | 60 ++-- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index c1a1004c033..cdf839d3053 100644 --- a/src/intel/compiler/brw_eu_emit.c +++

[Mesa-dev] [PATCH 07/23] intel/eu: Use descriptor constructors for dataport read messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.h | 33 + src/intel/compiler/brw_eu_emit.c | 77 ++- src/intel/compiler/brw_fs_generator.cpp | 32 ++--- src/intel/compiler/brw_vec4_generator.cpp | 33 +++-- 4 files changed, 80

[Mesa-dev] [PATCH 15/23] intel/eu: Get rid of the return value of brw_send_indirect_message().

2018-06-11 Thread Francisco Jerez
The return value is not used anymore. This allows simplifying the code slightly, and in addition it should frustrate anybody's attempts to continue using the obsolete piecemeal approach to construct a message descriptor in combination with brw_send_indirect_message(). ---

[Mesa-dev] [PATCH 13/23] intel/eu: Use descriptor constructors for dataport typed surface messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu_emit.c | 82 +--- 1 file changed, 35 insertions(+), 47 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index cdf839d3053..f414a5753f6 100644 --- a/src/intel/compiler/brw_eu_emit.c +++

[Mesa-dev] [PATCH 03/23] intel/eu: Use brw_set_desc() along with a helper to set common descriptor controls.

2018-06-11 Thread Francisco Jerez
This replaces brw_set_message_descriptor() with the composition of brw_set_desc() and a new inline helper function that packs the common message descriptor controls into an integer. The goal is to represent all message descriptors as a 32-bit integer which is written at once into the instruction,

[Mesa-dev] [PATCH 19/23] intel/eu: Fix up various type conversions in brw_eu.c that are illegal C++.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.c | 12 ++-- src/intel/compiler/brw_eu.h | 6 +++--- src/intel/compiler/brw_vec4_generator.cpp | 2 +- src/intel/compiler/test_eu_compact.cpp| 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git

[Mesa-dev] [PATCH 18/23] intel/ir: Uncomment definition of several unused hardware opcodes.

2018-06-11 Thread Francisco Jerez
There are a number of opcode_desc table entries for many of these unused opcodes. A symbolic opcode enum will be required in a future commit in order to keep them in the opcode description tables. The alternative would be to remove the unused opcodes from the opcode description tables. ---

[Mesa-dev] [PATCH 00/23] intel: Assorted code generation improvements.

2018-06-11 Thread Francisco Jerez
This series contains a few code generation refactors and clean-ups that are starting to pile up in an internal branch. By itself this series shouldn't cause any functional changes, but there's no reason why it couldn't be reviewed already which would lessen our pain keeping the branch up-to-date.

[Mesa-dev] [PATCH 14/23] intel/eu: Get rid of the return value of brw_send_indirect_surface_message().

2018-06-11 Thread Francisco Jerez
All users of brw_send_indirect_surface_message() should be providing a full descriptor immediate up front by now, this isn't necessary anymore. --- src/intel/compiler/brw_eu_emit.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git

[Mesa-dev] [PATCH 20/23] intel/eu: Rework opcode description tables to allow efficient look-up by either HW or IR opcode.

2018-06-11 Thread Francisco Jerez
This rewrites the current opcode description tables as a more compact flat data structure. The purpose is to allow efficient constant-time look-up by either HW or IR opcode, which will allow us to drop the hard-coded correspondence between HW and IR opcodes -- See the next commits for the

[Mesa-dev] [PATCH 09/23] intel/eu: Use descriptor constructors for pixel interpolator messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.h | 12 src/intel/compiler/brw_eu_emit.c | 23 ++- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index f595f5c6726..230be6026be 100644 ---

[Mesa-dev] [PATCH 05/23] intel/eu: Provide desc immediate argument up front to brw_send_indirect_message().

2018-06-11 Thread Francisco Jerez
The current approach of returning a setup instruction where additional descriptor fields can be specified is still supported in order to keep things working, but it will be removed later in this series. --- src/intel/compiler/brw_eu.h | 3 ++- src/intel/compiler/brw_eu_emit.c

[Mesa-dev] [PATCH 23/23] intel/fs: Handle FS_OPCODE_REP_FB_WRITE in implied_mrf_writes().

2018-06-11 Thread Francisco Jerez
It can have implied MRF writes ATM. --- src/intel/compiler/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 314d580cc1f..4625ddc723c 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@

[Mesa-dev] [PATCH 21/23] intel/eu: Encode and decode native instruction opcodes from/to IR opcodes.

2018-06-11 Thread Francisco Jerez
Change brw_inst_set_opcode() and brw_inst_opcode() to call brw_opcode_encode/decode() transparently in order to translate between hardware and IR opcodes, and update the EU compaction code in order to do the same as needed, so we can eventually drop the one-to-one correspondence between hardware

[Mesa-dev] [PATCH 08/23] intel/eu: Use descriptor constructors for dataport write messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.h | 39 src/intel/compiler/brw_eu_emit.c | 100 -- src/intel/compiler/brw_vec4_generator.cpp | 22 +++ 3 files changed, 63 insertions(+), 98 deletions(-) diff --git a/src/intel/compiler/brw_eu.h

[Mesa-dev] [PATCH 11/23] intel/eu: Use descriptor constructors for dataport untyped surface messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.h | 13 ++ src/intel/compiler/brw_eu_emit.c | 88 +--- 2 files changed, 51 insertions(+), 50 deletions(-) diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 230be6026be..05536c3aaff 100644 ---

[Mesa-dev] [PATCH 06/23] intel/eu: Use descriptor constructors for sampler messages.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.h | 34 ++- src/intel/compiler/brw_eu_emit.c | 45 +++ src/intel/compiler/brw_fs_generator.cpp | 72 ++- src/intel/compiler/brw_vec4_generator.cpp | 59 - 4 files

[Mesa-dev] [PATCH 17/23] intel/fs: Initialize mlen for gen7 varying pull constant load messages.

2018-06-11 Thread Francisco Jerez
This makes the message length available at the IR level, which should save some guesswork in a future commit. --- src/intel/compiler/brw_fs.cpp | 2 +- src/intel/compiler/brw_fs_generator.cpp | 10 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git

[Mesa-dev] [PATCH 10/23] intel/eu: Provide single descriptor argument to brw_send_indirect_surface_message().

2018-06-11 Thread Francisco Jerez
Instead of the current message_len, response_len and header_present arguments. --- src/intel/compiler/brw_eu_emit.c | 65 ++-- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c

[Mesa-dev] [PATCH 02/23] intel/eu: Define helper to specify the descriptor immediates of a SEND instruction.

2018-06-11 Thread Francisco Jerez
--- src/intel/compiler/brw_eu.h | 9 + src/intel/compiler/brw_eu_emit.c | 17 + 2 files changed, 26 insertions(+) diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 0f07eeb3d6d..5a396339fde 100644 --- a/src/intel/compiler/brw_eu.h +++

[Mesa-dev] [PATCH 01/23] intel/eu: Add brw_inst.h helpers for the SEND(C) descriptor and extended descriptor.

2018-06-11 Thread Francisco Jerez
This introduces helpers that can be used to specify or extract the whole descriptor of a SEND message instruction at once. Because the the instruction encoding of these is rather awkward on some generations using the generic brw_inst.h macros doesn't seem like an option. ---

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 00/16] Move the Mesa Website to Sphinx

2018-06-11 Thread Stuart Young
Laura: Brilliant. Don't let it hang any deployment though. There's so much more good in this that losing the favicon for a while is definitely worth it. On Tue, 12 Jun 2018 at 08:27, Laura Ekstrand wrote: > I really like the rotate on hover effect for the gears. I would rather > that we use 2D

Re: [Mesa-dev] [PATCH mesa 04/21] vulkan: Add EXT_direct_mode_display

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: > This seems a bit odd. Why is the FD not stored in the display? What if > you acquire multiple displays for two-player VR? If the master FD passed > in is not -1, we could just create a VkDisplayKHR object containing > it. You want to share the master_fd passed in at

[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 ---

[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

[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

[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

[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

[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

[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

[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 =

[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

[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 +++

[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 +++

[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 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'

[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 @@

[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 +++

[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

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

2018-06-11 Thread Keith Packard
Jason Ekstrand writes: > I apologize for how nit-picky this is going to get but it's starting to > bother me... I'm glad you showed me what you wanted; always nice to have help! I've reformatted and restructured the code along the lines that you've suggested here for the entire series. In

[Mesa-dev] [PATCH mesa 5/9] anv: Add EXT_direct_mode_display to anv driver [v2]

2018-06-11 Thread Keith Packard
Add support for the EXT_direct_mode_display extension. This just provides the vkReleaseDisplayEXT function. v2: Add extension to list in alphabetical order Suggested-by: Jason Ekstrand Signed-off-by: Keith Packard --- src/intel/vulkan/anv_extensions.py | 1 +

  1   2   >