Re: [Mesa-dev] [PATCH 35/38] ac,radv: run LLVM's SLP vectorizer

2018-12-17 Thread Marek Olšák
Can you remove AC_TM_SLP_VECTORIZE and run the pass unconditionally on >= gfx9? Thanks, Marek On Fri, Dec 7, 2018 at 12:23 PM Rhys Perry wrote: > Signed-off-by: Rhys Perry > --- > src/amd/common/ac_llvm_util.c | 9 ++--- > src/amd/common/ac_llvm_util.h | 1 + >

Re: [Mesa-dev] [PATCH 26/38] ac/nir: implement 8 and 16 bit ac_build_imsb

2018-12-17 Thread Marek Olšák
On Fri, Dec 7, 2018 at 12:23 PM Rhys Perry wrote: > Signed-off-by: Rhys Perry > --- > src/amd/common/ac_llvm_build.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/amd/common/ac_llvm_build.c > b/src/amd/common/ac_llvm_build.c > index 0123f3e31d..2172d81f8b 100644 > ---

Re: [Mesa-dev] [PATCH 0/5] Fixueps for ppc64 and gnu hurd

2018-12-17 Thread Timo Aaltonen
On 18.12.2018 7.52, Stuart Young wrote: > Hi Dylan, > > Can't speak on Timo's behalf, but looking at the build logs for 18.3.0 > (which is patched with these patches), it built fine on ppc64el (Little > Endian PPC64), but hurd is having issues, tho it looks like it's not > directly related to the

Re: [Mesa-dev] [PATCH v2 29/29] nir/algebraic: Add some optimizations for D3D-style Booleans

2018-12-17 Thread Timothy Arceri
On 7/12/18 6:45 am, Jason Ekstrand wrote: D3D Booleans use a 32-bit 0/-1 representation. Because this previously matched NIR exactly, we didn't have to really optimize for it. Now that we have 1-bit Booleans, we need some specific optimizations to chew through the D3D12-style Booleans.

[Mesa-dev] [Bug 109075] radv: New D3D boolean optimizations cause GPU hang in Witcher 3

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109075 --- Comment #4 from Timothy Arceri --- It looks like the '1.0@32' part of the search is failing. It also seems this is the only opt that looks for a constant in the whole file. Everything else looks for variables or ops e.g. 'a@32', 'bcsel@32'

[Mesa-dev] [Bug 109075] radv: New D3D boolean optimizations cause GPU hang in Witcher 3

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109075 --- Comment #3 from Timothy Arceri --- Maybe getting stuck in a infinite loop? There is a loop exit condition in the witcher where the optimise the following: /* preds: block_3 */ vec2 32 ssa_114 = vec2

Re: [Mesa-dev] [PATCH 0/5] Fixueps for ppc64 and gnu hurd

2018-12-17 Thread Stuart Young
Hi Dylan, Can't speak on Timo's behalf, but looking at the build logs for 18.3.0 (which is patched with these patches), it built fine on ppc64el (Little Endian PPC64), but hurd is having issues, tho it looks like it's not directly related to the patch you provided. Seems like the issue is that

[Mesa-dev] [Bug 109075] radv: New D3D boolean optimizations cause GPU hang in Witcher 3

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109075 --- Comment #2 from Jason Ekstrand --- This is really weird because, of all the optimizations in that commit, that is the one that's NOT new. It wasn't in that exact form but we definitely had that optimization before my 1-bit booleans series.

Re: [Mesa-dev] [PATCH 7/7] nir/dead_write_vars: Get modes directly from derefs

2018-12-17 Thread Timothy Arceri
Series: Reviewed-by: Timothy Arceri On 18/12/18 3:44 pm, Jason Ekstrand wrote: Instead of going all the way back to the variable, just look at the deref. The modes are guaranteed to be the same by nir_validate whenever the variable can be found. This fixes clear_unused_for_modes for derefs

[Mesa-dev] [PATCH 3/7] nir/lower_io_arrays_to_elements: Look at derefs for modes

2018-12-17 Thread Jason Ekstrand
This is instead of looking all the way back to the variable which may not exist for all derefs. This makes this code properly ignore casts with modes other than the mode[s] we care about (where casts aren't allowed). --- src/compiler/nir/nir_lower_io_arrays_to_elements.c | 13 - 1

[Mesa-dev] [PATCH 6/7] nir/copy_prop_vars: Get modes directly from derefs

2018-12-17 Thread Jason Ekstrand
Instead of going all the way back to the variable, just look at the deref. The modes are guaranteed to be the same by nir_validate whenever the variable can be found. This fixes apply_barrier_for_modes for derefs that don't have an accessible variable. ---

[Mesa-dev] [PATCH 7/7] nir/dead_write_vars: Get modes directly from derefs

2018-12-17 Thread Jason Ekstrand
Instead of going all the way back to the variable, just look at the deref. The modes are guaranteed to be the same by nir_validate whenever the variable can be found. This fixes clear_unused_for_modes for derefs that don't have an accessible variable. ---

[Mesa-dev] [PATCH 5/7] nir/lower_wpos_center: Look at derefs for modes

2018-12-17 Thread Jason Ekstrand
This is instead of looking all the way back to the variable which may not exist for all derefs. This makes this code properly ignore casts with modes other than the mode[s] we care about (where casts aren't allowed). --- src/compiler/nir/nir_lower_wpos_center.c | 6 -- 1 file changed, 4

[Mesa-dev] [PATCH 0/7] nir: Prepare various passes for cast derefs

2018-12-17 Thread Jason Ekstrand
In order to be able to use derefs for UBOs and SSBOs and actually pass them through optimizations, various things need to be fixed up to properly handle casts. Because casts are only going to be allowed on UBOs, SSBOs, and maybe shared variables at present, most of the time it's as simple as

[Mesa-dev] [PATCH 4/7] nir/lower_io_to_scalar: Look at derefs for modes

2018-12-17 Thread Jason Ekstrand
This is instead of looking all the way back to the variable which may not exist for all derefs. This makes this code properly ignore casts with modes other than the mode[s] we care about (where casts aren't allowed). --- src/compiler/nir/nir_lower_io_to_scalar.c | 9 ++--- 1 file changed, 6

[Mesa-dev] [PATCH 2/7] nir/linking_helpers: Look at derefs for modes

2018-12-17 Thread Jason Ekstrand
This is instead of looking all the way back to the variable which may not exist for all derefs. This makes this code properly ignore casts with modes other than the mode[s] we care about (where casts aren't allowed). --- src/compiler/nir/nir_linking_helpers.c | 23 +++ 1 file

[Mesa-dev] [PATCH 1/7] nir/propagate_invariant: Skip unknown vars

2018-12-17 Thread Jason Ekstrand
If we can't find the variable from the deref, just assume it isn't invariant and continue on. This can happen if, for instance, we're writing to a deref that points into an SSBO. --- src/compiler/nir/nir_propagate_invariant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH 4/4] nir: link time opt duplicate varyings

2018-12-17 Thread Jason Ekstrand
On Mon, Dec 10, 2018 at 10:28 PM Timothy Arceri wrote: > If we are outputting the same value to more than one output > component rewrite the inputs to read from a single component. > > This will allow the duplicate varying components to be optimised > away by the existing opts. > > shader-db

Re: [Mesa-dev] [PATCH 01/38] ac: add various helpers for float16/int16/int8

2018-12-17 Thread Marek Olšák
On Fri, Dec 7, 2018 at 12:22 PM Rhys Perry wrote: > Signed-off-by: Rhys Perry > --- > src/amd/common/ac_llvm_build.c | 123 ++-- > src/amd/common/ac_llvm_build.h | 22 +- > src/amd/common/ac_nir_to_llvm.c | 30 > 3 files changed, 154 insertions(+),

[Mesa-dev] [Bug 109082] meson lmsensors check fails but always returns true

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109082 Bug ID: 109082 Summary: meson lmsensors check fails but always returns true Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW

[Mesa-dev] [PATCH] meson: Fix typo.

2018-12-17 Thread Vinson Lee
Fixes: 6b4c7047d571 ("meson: build gallium nine state_tracker") Signed-off-by: Vinson Lee --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index fe647f682c1c..d0f4b7e51f44 100644 --- a/meson.build +++ b/meson.build @@ -619,7 +619,7 @@

Re: [Mesa-dev] [PATCH 12/28] util: add fp64 -> fp32 conversion support for RTNE and RTZ rounding modes

2018-12-17 Thread Matt Turner
On Mon, Dec 10, 2018 at 11:25 AM Samuel Iglesias Gonsálvez wrote: > > On 07/12/2018 03:03, Matt Turner wrote: > > On Wed, Dec 5, 2018 at 7:56 AM Samuel Iglesias Gonsálvez > > wrote: > >> > >> Signed-off-by: Samuel Iglesias Gonsálvez > >> --- > >> src/util/Makefile.sources | 2 + > >>

[Mesa-dev] [Bug 108946] High memory usage in Black Mesa

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108946 --- Comment #12 from MGG --- Hey, the new beta version has dramatically reduced the memory usage! Nice work there! Please, don't forget to give us the extra info about the problem/bug you found in order to close this ticket (in case there it

[Mesa-dev] [PATCH 2/3] ac/nir_to_llvm: add ac_are_tessfactors_def_in_all_invocs()

2018-12-17 Thread Timothy Arceri
The following patch will use this with the radeonsi NIR backend but I've added it to ac so we can use it with RADV in future. This is a NIR implementation of the tgsi function tgsi_scan_tess_ctrl(). --- src/amd/common/ac_nir_to_llvm.c | 161

[Mesa-dev] [PATCH 3/3] radeonsi: make use of ac_are_tessfactors_def_in_all_invocs()

2018-12-17 Thread Timothy Arceri
--- src/gallium/drivers/radeonsi/si_shader_nir.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index b81bea00b8..931d41245d 100644 ---

[Mesa-dev] [PATCH 1/3] radeonsi: remove unrequired param in si_nir_scan_tess_ctrl()

2018-12-17 Thread Timothy Arceri
--- src/gallium/drivers/radeonsi/si_shader.h| 1 - src/gallium/drivers/radeonsi/si_shader_nir.c| 1 - src/gallium/drivers/radeonsi/si_state_shaders.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.h

Re: [Mesa-dev] [PATCH 10/12] virgl: modify how we handle GL_MAP_FLUSH_EXPLICIT_BIT

2018-12-17 Thread Gurchetan Singh
On Tue, Dec 11, 2018 at 2:49 PM Elie Tournier wrote: > On Mon, Dec 10, 2018 at 10:20:36AM -0800, Gurchetan Singh wrote: > > Previously, we ignored the the glUnmap(..) operation and > > flushed before we flush the cbuf. Now, let's just flush > > the data when we unmap. > > > > Neither method is

Re: [Mesa-dev] [PATCH mesa] drop autotools

2018-12-17 Thread Andres Gomez
On Mon, 2018-12-17 at 19:51 +0100, Bas Nieuwenhuizen wrote: > On Mon, Dec 17, 2018 at 6:33 PM Juan A. Suarez Romero > wrote: > > > > On Mon, 2018-12-03 at 10:21 +, Eric Engestrom wrote: > > > Cc: Emil Velikov > > > Cc: Andres Gomez > > > Cc: Juan A. Suarez Romero > > > Cc: Dylan Baker >

[Mesa-dev] Two MRs related to NIR copy_prop_vars

2018-12-17 Thread Caio Marcelo de Oliveira Filho
Hi, nir: properly find the entry to keep in copy_prop_vars https://gitlab.freedesktop.org/mesa/mesa/merge_requests/23 Fixes https://bugs.freedesktop.org/show_bug.cgi?id=108624. nir: properly clear the entry sources in copy_prop_vars https://gitlab.freedesktop.org/mesa/mesa/merge_requests/24

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-17 Thread Tobias Klausmann
On 17.12.18 23:16, Dylan Baker wrote: Quoting Tobias Klausmann (2018-12-17 14:05:13) On 17.12.18 20:33, Dylan Baker wrote: Quoting Emil Velikov (2018-12-17 11:10:00) On Fri, 14 Dec 2018 at 17:57, Dylan Baker wrote: Quoting Emil Velikov (2018-12-13 08:15:57) From: Emil Velikov Reasonably

[Mesa-dev] [PATCH] docs: update 18.3 and add 19.x cycles for the release calendar

2018-12-17 Thread Andres Gomez
Cc: Dylan Baker Cc: Juan A. Suarez Cc: Emil Velikov Signed-off-by: Andres Gomez --- docs/release-calendar.html | 118 - 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/docs/release-calendar.html b/docs/release-calendar.html index

[Mesa-dev] [PATCH] radv: Work around non-renderable 128bpp compressed 3d textures on GFX9.

2018-12-17 Thread Bas Nieuwenhuizen
Exactly what title says, the new addrlib does not allow the above with certain dimensions that the CTS seems to hit. Work around it by not allowing the app to render to it via compat with other 128bpp formats and do not render to it ourselves during copies. Fixes: 776b9113656 "amd/addrlib:

Re: [Mesa-dev] MR: NIR: Partial redundancy elimination for compares

2018-12-17 Thread Ian Romanick
I was really hoping to avoid having review discussion for a patch series on both the mailing list and the MR, but I guess that ship has sailed. On 12/17/18 2:39 PM, Roland Scheidegger wrote: > Am 17.12.18 um 23:27 schrieb Roland Scheidegger: >> Am 17.12.18 um 23:07 schrieb Ilia Mirkin: >>> On

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Dylan Baker
Quoting Marek Olšák (2018-12-17 12:25:29) > On Mon, Dec 17, 2018 at 1:18 PM Eric Anholt wrote: > > Eero Tamminen writes: > > > Hi, > > > > On 17.12.2018 8.08, Marek Olšák wrote: > > [...] > >> I think one of the serious usability issues is that environment > >>

Re: [Mesa-dev] MR: NIR: Partial redundancy elimination for compares

2018-12-17 Thread Roland Scheidegger
Am 17.12.18 um 23:27 schrieb Roland Scheidegger: > Am 17.12.18 um 23:07 schrieb Ilia Mirkin: >> On Mon, Dec 17, 2018 at 5:05 PM Ian Romanick wrote: >>> >>>

Re: [Mesa-dev] [PATCH 1/2] bin/get-pick-list.sh: rework handing of sha nominations

2018-12-17 Thread Andres Gomez
On Mon, 2018-12-17 at 18:36 +, Emil Velikov wrote: > On Mon, 17 Dec 2018 at 18:14, Andres Gomez wrote: > > > > On Mon, 2018-12-17 at 16:43 +, Emil Velikov wrote: > > > Currently our is_sha_nomination does: > > > - folds any whitespace, attempting to extract sha-like information > > > -

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-17 Thread Matt Turner
On Mon, Dec 17, 2018 at 2:12 PM Emil Velikov wrote: > Additionally, distributions build latest loader and use it with DRI1 > era drivers. I'm curious if there are distributions that still ships the DRI1 drivers. Do you know which, if any, do? ___

Re: [Mesa-dev] MR: NIR: Partial redundancy elimination for compares

2018-12-17 Thread Roland Scheidegger
Am 17.12.18 um 23:07 schrieb Ilia Mirkin: > On Mon, Dec 17, 2018 at 5:05 PM Ian Romanick wrote: >> >>

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-17 Thread Dylan Baker
Quoting Tobias Klausmann (2018-12-17 14:05:13) > > On 17.12.18 20:33, Dylan Baker wrote: > > Quoting Emil Velikov (2018-12-17 11:10:00) > >> On Fri, 14 Dec 2018 at 17:57, Dylan Baker wrote: > >>> Quoting Emil Velikov (2018-12-13 08:15:57) > From: Emil Velikov > > Reasonably often

Re: [Mesa-dev] PSA: Please send MRs to the mailing list

2018-12-17 Thread Jason Ekstrand
On Mon, Dec 17, 2018 at 2:13 PM Jason Ekstrand wrote: > On Mon, Dec 17, 2018 at 1:53 PM Eric Anholt wrote: > >> Jason Ekstrand writes: >> >> > I don't know if it was actually in the doc that Jordan wrote up but it's >> > courteous of you to send a quick e-mail to the mailing list when you >>

Re: [Mesa-dev] MR: NIR: Partial redundancy elimination for compares

2018-12-17 Thread Ilia Mirkin
On Mon, Dec 17, 2018 at 5:05 PM Ian Romanick wrote: > > https://gitlab.freedesktop.org/mesa/mesa/merge_requests/22 > > This series adds a new optimization pass that tries to replace code > sequences like > > if (x < y) { > z = y - x; > ... > } > > with a sequence like > > t = x - y; > if

Re: [Mesa-dev] PSA: Please send MRs to the mailing list

2018-12-17 Thread Ian Romanick
On 12/16/18 4:54 PM, Ilia Mirkin wrote: > A diffstat would also be nice as it would better inform people reading > emails whether they need to care or not. That's a good idea. I tagged the message that I just sent with MR: to make it more obvious that it's for a merge request. I saw Jason's

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-17 Thread Tobias Klausmann
On 17.12.18 20:33, Dylan Baker wrote: Quoting Emil Velikov (2018-12-17 11:10:00) On Fri, 14 Dec 2018 at 17:57, Dylan Baker wrote: Quoting Emil Velikov (2018-12-13 08:15:57) From: Emil Velikov Reasonably often people will want to build the loader w/o any drivers. Be that debugging an issue

[Mesa-dev] MR: NIR: Partial redundancy elimination for compares

2018-12-17 Thread Ian Romanick
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/22 This series adds a new optimization pass that tries to replace code sequences like if (x < y) { z = y - x; ... } with a sequence like t = x - y; if (t < 0) { z = -t; ... } On architectures where the subtract can

[Mesa-dev] [Bug 109075] radv: New D3D boolean optimizations cause GPU hang in Witcher 3

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109075 --- Comment #1 from var...@protonmail.com --- Polaris 30 (RX 590, 4.20 and latest firmware), DXVK 0.94 Latest mesa-git built against llvm 7.0.1 This line also seems to break Overwatch, resulting in a black login screen. Commenting out the line

Re: [Mesa-dev] [PATCH] freedreno/ir3: Make imageStore use num components from image format

2018-12-17 Thread Ilia Mirkin
Note that the format may not be known. I suspect that falls into your "default" case. On Mon, Dec 17, 2018 at 3:41 PM Eduardo Lima Mitev wrote: > > emit_intrinsic_store_image() is always using 4 components when > collecting registers for the value. When image has less than > 4 components (e.g,

[Mesa-dev] [PATCH] freedreno/ir3: Make imageStore use num components from image format

2018-12-17 Thread Eduardo Lima Mitev
emit_intrinsic_store_image() is always using 4 components when collecting registers for the value. When image has less than 4 components (e.g, r32f, r32i, r32ui) this results in extra mov instructions. This patch uses the actual number of components from the image format. For example, in a

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Marek Olšák
On Mon, Dec 17, 2018 at 1:18 PM Eric Anholt wrote: > Eero Tamminen writes: > > > Hi, > > > > On 17.12.2018 8.08, Marek Olšák wrote: > > [...] > >> I think one of the serious usability issues is that environment > >> variables such as CFLAGS, CXXFLAGS, LDFLAGS, and PKG_CONFIG_PATH are > not > >>

Re: [Mesa-dev] PSA: Please send MRs to the mailing list

2018-12-17 Thread Jason Ekstrand
On Mon, Dec 17, 2018 at 1:53 PM Eric Anholt wrote: > Jason Ekstrand writes: > > > I don't know if it was actually in the doc that Jordan wrote up but it's > > courteous of you to send a quick e-mail to the mailing list when you > create > > a new MR so that people who aren't regularly trolling

Re: [Mesa-dev] PSA: Please send MRs to the mailing list

2018-12-17 Thread Eric Anholt
Jason Ekstrand writes: > I don't know if it was actually in the doc that Jordan wrote up but it's > courteous of you to send a quick e-mail to the mailing list when you create > a new MR so that people who aren't regularly trolling the list of MRs are > at least aware that it exists. Of the 20

Re: [Mesa-dev] [PATCH 03/18] glx: meson: build src/glx only with -Dglx=dri

2018-12-17 Thread Dylan Baker
Quoting Emil Velikov (2018-12-17 10:58:11) > On Fri, 14 Dec 2018 at 17:13, Dylan Baker wrote: > > > > Quoting Emil Velikov (2018-12-13 08:05:52) > > > From: Emil Velikov > > > > > > The library is the dri capable one, push the check src/meson.build, > > > instead of the current partial handling

Re: [Mesa-dev] [PATCH 18/18] travis: meson: port gallium build combinations over

2018-12-17 Thread Dylan Baker
Quoting Emil Velikov (2018-12-17 11:03:32) > On Fri, 14 Dec 2018 at 17:53, Dylan Baker wrote: > > > > Quoting Emil Velikov (2018-12-13 08:06:07) > > > From: Emil Velikov > > > > > > This commit adds a number of build combos: > > > > > > - Gallium Drivers {SWR, RadeonSI, Others) > > > Each one

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-17 Thread Dylan Baker
Quoting Emil Velikov (2018-12-17 11:10:00) > On Fri, 14 Dec 2018 at 17:57, Dylan Baker wrote: > > > > Quoting Emil Velikov (2018-12-13 08:15:57) > > > From: Emil Velikov > > > > > > Reasonably often people will want to build the loader w/o any drivers. > > > Be that debugging an issue in the

[Mesa-dev] [Bug 109062] meson incorrectly handles/reports libdrm_$foo

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109062 --- Comment #7 from Dylan Baker --- but if the time difference is negligible then thats a fair trade for a better error message :) -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the

[Mesa-dev] [Bug 109062] meson incorrectly handles/reports libdrm_$foo

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109062 --- Comment #6 from Dylan Baker --- that's not the right comparison though. Meson doesn't support querying two dependencies at the same time, that's something that only pkg-config can do (you can't do that with windows find-a-dll, mac's

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-17 Thread Emil Velikov
On Fri, 14 Dec 2018 at 17:57, Dylan Baker wrote: > > Quoting Emil Velikov (2018-12-13 08:15:57) > > From: Emil Velikov > > > > Reasonably often people will want to build the loader w/o any drivers. > > Be that debugging an issue in the former, distribution bundle or other. > > > > Currently

Re: [Mesa-dev] [PATCH 1/6] st/mesa: Drop dead 'passthrough_fs' field.

2018-12-17 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Mon, Dec 17, 2018 at 1:37 PM Kenneth Graunke wrote: > > Dead since 2015 (commit 5142564734bd68f165b02e29e384ebbcf91cce38). > --- > src/mesa/state_tracker/st_context.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/mesa/state_tracker/st_context.h >

Re: [Mesa-dev] [PATCH 18/18] travis: meson: port gallium build combinations over

2018-12-17 Thread Emil Velikov
On Fri, 14 Dec 2018 at 17:53, Dylan Baker wrote: > > Quoting Emil Velikov (2018-12-13 08:06:07) > > From: Emil Velikov > > > > This commit adds a number of build combos: > > > > - Gallium Drivers {SWR, RadeonSI, Others) > > Each one has different LLVM requirements. Building SWR alone is twice >

Re: [Mesa-dev] [PATCH 03/18] glx: meson: build src/glx only with -Dglx=dri

2018-12-17 Thread Emil Velikov
On Fri, 14 Dec 2018 at 17:13, Dylan Baker wrote: > > Quoting Emil Velikov (2018-12-13 08:05:52) > > From: Emil Velikov > > > > The library is the dri capable one, push the check src/meson.build, > > instead of the current partial handling in src/glx/meson.build. > > > > Fixes: a47c525f328

Re: [Mesa-dev] [PATCH mesa] drop autotools

2018-12-17 Thread Bas Nieuwenhuizen
On Mon, Dec 17, 2018 at 6:33 PM Juan A. Suarez Romero wrote: > > On Mon, 2018-12-03 at 10:21 +, Eric Engestrom wrote: > > Cc: Emil Velikov > > Cc: Andres Gomez > > Cc: Juan A. Suarez Romero > > Cc: Dylan Baker > > Signed-off-by: Eric Engestrom > > --- > > This patch depends on the

[Mesa-dev] [Bug 109062] meson incorrectly handles/reports libdrm_$foo

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109062 --- Comment #5 from Emil Velikov --- On my 3+ y/o laptop shows virtually no difference in runtime between the following two commands. pkg-config --libs "libdrm >= 2.4.20" "libdrm_nouveau >= 2.4.20" pkg-config --libs "libdrm_nouveau >= 2.4.20"

Re: [Mesa-dev] [PATCH 1/2] bin/get-pick-list.sh: rework handing of sha nominations

2018-12-17 Thread Emil Velikov
On Mon, 17 Dec 2018 at 18:14, Andres Gomez wrote: > > On Mon, 2018-12-17 at 16:43 +, Emil Velikov wrote: > > Currently our is_sha_nomination does: > > - folds any whitespace, attempting to extract sha-like information > > - checks that at least one of the shas has landed > > > > Split it in

[Mesa-dev] [PATCH 6/6] st/nir: Drop unused gl_program parameter in VS input handling helper.

2018-12-17 Thread Kenneth Graunke
Nobody uses this, so let's drop it. This makes the helper callable from places without a gl_program. --- src/mesa/state_tracker/st_glsl_to_nir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp

[Mesa-dev] [PATCH 3/6] st/mesa: Don't open code the drawpixels vertex shader.

2018-12-17 Thread Kenneth Graunke
Now that we always copy color, we can just use the util function. --- src/mesa/state_tracker/st_cb_drawpixels.c | 38 +++ 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c

[Mesa-dev] [PATCH 5/6] st/nir: Gather info after applying lowering FS variant features

2018-12-17 Thread Kenneth Graunke
DrawPixels lowering, for example, adds new varyings that need to be accounted for in inputs_read. The earlier info gathering at link time cannot account for this. --- src/mesa/state_tracker/st_program.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/state_tracker/st_program.c

[Mesa-dev] [PATCH 2/6] st/mesa: Drop !passColor optimization in drawpixels shaders.

2018-12-17 Thread Kenneth Graunke
The glDrawPixels passthrough vertex shader copies position and texcoord vertex attributes to varying outputs. It also optionally copies a third gl_Color attribute, which sometimes is unnecessary. Until now, we've compiled separate variants of the shader, one of which does this extra copy, and

[Mesa-dev] [PATCH 4/6] st/mesa: Combine the DrawPixels and Bitmap passthrough VS programs.

2018-12-17 Thread Kenneth Graunke
They're now identical, so we can just compile it once. --- src/mesa/state_tracker/st_cb_bitmap.c | 27 +-- src/mesa/state_tracker/st_cb_drawpixels.c | 20 - src/mesa/state_tracker/st_cb_drawpixels.h | 3 +++ src/mesa/state_tracker/st_context.h | 5

[Mesa-dev] [PATCH 1/6] st/mesa: Drop dead 'passthrough_fs' field.

2018-12-17 Thread Kenneth Graunke
Dead since 2015 (commit 5142564734bd68f165b02e29e384ebbcf91cce38). --- src/mesa/state_tracker/st_context.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 95133c7020f..78e962dec00 100644 ---

Re: [Mesa-dev] [PATCH v3] anv: support VkExternalFormatANDROID in vkCreateSamplerYcbcrConversion

2018-12-17 Thread Lionel Landwerlin
On 14/12/2018 12:05, Tapani Pälli wrote: + + /* The Vulkan 1.1.95 spec says "When creating an external format conversion, +* the value of components if ignored." +*/ + if (ext_format) { + conversion->mapping[0] = pCreateInfo->components.r; + conversion->mapping[1] =

Re: [Mesa-dev] [PATCH] i965: Don't override subslice count to 4 on Gen11.

2018-12-17 Thread Anuj Phogat
On Fri, Dec 14, 2018 at 3:59 PM Kenneth Graunke wrote: > > Gen9-10 have fewer than 4 subslices per slice, so they need this to be > rounded up. Gen11 isn't documented as needing this hack, and it can > also have more than 4 subslices, so the hack actually can break things. > --- >

Re: [Mesa-dev] [PATCH v5] anv/android: add GetAndroidHardwareBufferPropertiesANDROID

2018-12-17 Thread Lionel Landwerlin
On 14/12/2018 11:53, Tapani Pälli wrote: + if (desc.usage & AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER) + tiling = VK_IMAGE_TILING_LINEAR; + + p->formatFeatures = + anv_get_image_format_features(>info, p->format, +anv_format, VK_IMAGE_TILING_OPTIMAL);

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Eric Anholt
Eero Tamminen writes: > Hi, > > On 17.12.2018 8.08, Marek Olšák wrote: > [...] >> I think one of the serious usability issues is that environment >> variables such as CFLAGS, CXXFLAGS, LDFLAGS, and PKG_CONFIG_PATH are not >> saved by meson for future reconfigures. > > I don't know what Meson

Re: [Mesa-dev] [PATCH 1/2] bin/get-pick-list.sh: rework handing of sha nominations

2018-12-17 Thread Andres Gomez
On Mon, 2018-12-17 at 16:43 +, Emil Velikov wrote: > Currently our is_sha_nomination does: > - folds any whitespace, attempting to extract sha-like information > - checks that at least one of the shas has landed > > Split it in two and do sha-like validation first. > > This way, commits

Re: [Mesa-dev] Suggestions for improving meson-based builds

2018-12-17 Thread Dylan Baker
Quoting Ilia Mirkin (2018-12-16 11:48:52) > Hello all, > > There has been some discussion of late about dropping autotools or > making it a second-class citizen. I firmly believe such discussions > are premature. > > I've had a chance to try meson recently. First off, I'd like to > commend the

Re: [Mesa-dev] [PATCH mesa] drop autotools

2018-12-17 Thread Juan A. Suarez Romero
On Mon, 2018-12-03 at 10:21 +, Eric Engestrom wrote: > Cc: Emil Velikov > Cc: Andres Gomez > Cc: Juan A. Suarez Romero > Cc: Dylan Baker > Signed-off-by: Eric Engestrom > --- > This patch depends on the releasing procedure in docs/releasing.html to > be updated to not rely on autotools

[Mesa-dev] [Bug 108946] High memory usage in Black Mesa

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108946 --- Comment #11 from void...@gmail.com --- On December 17, we pushed new beta into public-beta branch. That's major ToGL layer rework, which should address memory issues with open-source Mesa drivers. The actual issue is much deeper than one

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Dylan Baker
Quoting Kai Wasserbäch (2018-12-17 07:48:38) > Hey Dylan, > Dylan Baker wrote on 11.12.18 00:10: > > Meson 0.49.0 has been out for a couple of days now, and I'd like to make the > > final call for autotools. My patch is so massive that it's a huge pain to > > send > > to the list, the latest

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Dylan Baker
Quoting Gert Wollny (2018-12-16 03:57:48) > Am Freitag, den 14.12.2018, 13:11 +0100 schrieb Gert Wollny: > > Am Freitag, den 14.12.2018, 01:19 -0500 schrieb Ilia Mirkin: > > > I have to say that the user experience for autotools is WAY better > > > than for meson. As a concrete example, I had a

[Mesa-dev] [Bug 109071] meson --wipe results in Exception: "FileNotFoundError: [Errno 2] No such file or directory"

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109071 Dylan Baker changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |baker.dyla...@gmail.com

Re: [Mesa-dev] [PATCH 0/5] Fixueps for ppc64 and gnu hurd

2018-12-17 Thread Dylan Baker
Quoting Timo Aaltonen (2018-12-05 03:56:54) > On 4.12.2018 23.52, Dylan Baker wrote: > > This little series is aimed at fixing problems reported by fedora and debian > > when using meson, there's a couple of patches in here for fixing ppc64 > > detection > > (tested without llvm), and a couple

[Mesa-dev] [Bug 109062] meson incorrectly handles/reports libdrm_$foo

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109062 --- Comment #4 from Dylan Baker --- That's going to increase the number of calls to pkg-config considerably. If we take this approach please check the changes in the time it takes to run an initial meson; I have a feeling it could be bad. The

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Jason Ekstrand
On Mon, Dec 17, 2018 at 8:54 AM Eero Tamminen wrote: > Hi, > > On 17.12.2018 8.08, Marek Olšák wrote: > [...] > > I think one of the serious usability issues is that environment > > variables such as CFLAGS, CXXFLAGS, LDFLAGS, and PKG_CONFIG_PATH are not > > saved by meson for future

Re: [Mesa-dev] [PATCH] anv: Bump the patch version to 96

2018-12-17 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 17/12/2018 16:49, Jason Ekstrand wrote: --- src/intel/vulkan/anv_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index b6269d0047a..a0bf4127002 100644

[Mesa-dev] [PATCH] anv: Bump the patch version to 96

2018-12-17 Thread Jason Ekstrand
--- src/intel/vulkan/anv_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index b6269d0047a..a0bf4127002 100644 --- a/src/intel/vulkan/anv_extensions.py +++

[Mesa-dev] [PATCH 1/2] bin/get-pick-list.sh: rework handing of sha nominations

2018-12-17 Thread Emil Velikov
Currently our is_sha_nomination does: - folds any whitespace, attempting to extract sha-like information - checks that at least one of the shas has landed Split it in two and do sha-like validation first. This way, commits with mesa-stable and sha nominations will feature the fixes/revert/etc

[Mesa-dev] [PATCH 2/2] bin/get-pick-list.sh: warn when commit lists invalid sha

2018-12-17 Thread Emil Velikov
From: Emil Velikov We had cases where people would list old/invalid sha in the commit. Add a trivial checker to catch those and throw a warning. CC: Andres Gomez CC: Juan A. Suarez CC: Dylan Baker CC: mesa-sta...@lists.freedesktop.org Signed-off-by: Emil Velikov --- bin/get-pick-list.sh |

Re: [Mesa-dev] [PATCH 1/2] vulkan: Update the XML and headers to 1.1.96

2018-12-17 Thread Jason Ekstrand
Thanks! Both pushed. On Mon, Dec 17, 2018 at 9:45 AM Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Reviewed-by: Lionel Landwerlin > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH] nir: create 32-bit bcsel for 32-bit conditions

2018-12-17 Thread Rhys Perry
Signed-off-by: Rhys Perry --- src/compiler/nir/nir_opt_peephole_select.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_peephole_select.c b/src/compiler/nir/nir_opt_peephole_select.c index ad9d0abec0..241627ed99 100644 ---

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Kai Wasserbäch
Hey Dylan, Dylan Baker wrote on 11.12.18 00:10: > Meson 0.49.0 has been out for a couple of days now, and I'd like to make the > final call for autotools. My patch is so massive that it's a huge pain to send > to the list, the latest versions is here: >

Re: [Mesa-dev] [PATCH 1/2] vulkan: Update the XML and headers to 1.1.96

2018-12-17 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] vulkan: Update the XML and headers to 1.1.96

2018-12-17 Thread Samuel Iglesias Gonsálvez
Patch series is, Reviewed-by: Samuel Iglesias Gonsálvez Sam On 17/12/2018 16:39, Jason Ekstrand wrote: > --- > include/vulkan/vulkan_core.h | 16 > src/vulkan/registry/vk.xml | 22 +++--- > 2 files changed, 19 insertions(+), 19 deletions(-) > > diff --git

[Mesa-dev] [PATCH 2/2] anv,radv: Re-enable VK_EXT_pci_bus_info

2018-12-17 Thread Jason Ekstrand
Now at version 2 with the fixed header. --- src/amd/vulkan/radv_extensions.py | 2 +- src/intel/vulkan/anv_extensions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index ae5e6950f1e..8ac8ae6698c

[Mesa-dev] [PATCH 1/2] vulkan: Update the XML and headers to 1.1.96

2018-12-17 Thread Jason Ekstrand
--- include/vulkan/vulkan_core.h | 16 src/vulkan/registry/vk.xml | 22 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/include/vulkan/vulkan_core.h b/include/vulkan/vulkan_core.h index 50064109ef3..72542c72ec8 100644 ---

[Mesa-dev] [Bug 108116] [vulkancts] stencil partial clear tests fail.

2018-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108116 Rhys Perry changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] last call for autotools

2018-12-17 Thread Eero Tamminen
Hi, On 17.12.2018 8.08, Marek Olšák wrote: [...] I think one of the serious usability issues is that environment variables such as CFLAGS, CXXFLAGS, LDFLAGS, and PKG_CONFIG_PATH are not saved by meson for future reconfigures. I don't know what Meson is supposed to do, but to me that would be

Re: [Mesa-dev] Suggestions for improving meson-based builds

2018-12-17 Thread Eero Tamminen
Hi, On 17.12.2018 2.33, Jason Ekstrand wrote: On Sun, Dec 16, 2018 at 1:49 PM Ilia Mirkin > wrote: [...]> 2. Summary at the end. This is not strictly an autotools-specific issue, but rather how mesa has used it. That summary at the end is very useful to

[Mesa-dev] [PATCH 7/7] swr/rast: Store cached files in multiple subdirs

2018-12-17 Thread Alok Hota
This improves cache filesystem performance, especially during CI tests Also updated jitcache magic number due to codegen parameter changes Removed 2 `if constexpr` to prevent C++17 requirement --- .../swr/rasterizer/jitter/JitManager.cpp | 51 ---

[Mesa-dev] [PATCH 4/7] swr/rast: Unaligned and translations in gathers

2018-12-17 Thread Alok Hota
- added graphics address translation in odd gathers - added support for unaligned gathers in fetch shader - changed how 2+ GB offsets are handled to make them compatible with unaligned offsets --- .../swr/rasterizer/jitter/fetch_jit.cpp | 56 --- 1 file changed, 35

[Mesa-dev] [PATCH 6/7] swr/rast: New execution engine per JIT

2018-12-17 Thread Alok Hota
Fixes relocation errors with LLVM 7.0.0 --- .../swr/rasterizer/jitter/JitManager.cpp | 79 +++ .../swr/rasterizer/jitter/JitManager.h| 28 +-- 2 files changed, 65 insertions(+), 42 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp

[Mesa-dev] [PATCH 0/7] swr/rast: jitter updates

2018-12-17 Thread Alok Hota
These patches contain a series of updates to the jitter Alok Hota (7): swr/rast: Use gfxptr_t value in JitGatherVertices swr/rast: Add annotator to interleave isa text swr/rast: partial support for Tiled Resources swr/rast: Unaligned and translations in gathers swr/rast: Scope

  1   2   >