[Mesa-dev] [Bug 102665] test_glsl_to_tgsi_lifetime.cpp:53:67: error: ‘?=>>=?UTF-8?Q?’ should be ‘?=> >=?UTF-8?Q?’ within a nested template argument list

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102665 --- Comment #1 from Gert Wollny --- Strange, this file should be compiled with c++11, the construct is legal c++11, this and according to [1] g++4.8 should support it (right angle brackets N1757[2]). Could you confirm

Re: [Mesa-dev] [PATCH v2] i965: do not fallback to linear tiling for stencil surfaces

2017-09-11 Thread Iago Toral
On Mon, 2017-09-11 at 15:55 +0300, Pohjolainen, Topi wrote: > On Mon, Sep 11, 2017 at 02:33:09PM +0200, Iago Toral Quiroga wrote: > > We were skipping this fallback for depth, but not for stencil > > which the hardware always requires to be W-tiled. > > > > Also, make the checks for whether we

Re: [Mesa-dev] [RFC] NIR serialization

2017-09-11 Thread Kenneth Graunke
On Monday, September 11, 2017 9:27:28 PM PDT Ian Romanick wrote: > And... we wouldn't necessarily have to throw away cached SPIR-V when the > Mesa version changes... though we may want to anyway. Sure, SPIR-V is a defined, stable format, and that's a nice property. If we invented a serialized NIR

[Mesa-dev] [Bug 102597] [Regression] mpv, high rendering times (two to three times higher)

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102597 --- Comment #7 from Niklas Haas --- > That seems kinda silly, because it means that TIME_ELAPSED should be > (draw_finish_time - previous_draw_finish_time). What if they finish nearly at > the same time?

Re: [Mesa-dev] [RFC] NIR serialization

2017-09-11 Thread Timothy Arceri
On 12/09/17 14:23, Ian Romanick wrote: On 09/08/2017 01:59 AM, Kenneth Graunke wrote: On Thursday, September 7, 2017 4:26:04 PM PDT Jordan Justen wrote: On 2017-09-06 14:12:41, Daniel Schürmann wrote: Hello together! Recently, we had a small discussion (off the list) about the NIR

Re: [Mesa-dev] [PATCH] docs: Document shader capturing environment variables.

2017-09-11 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 09/12/2017 03:04 AM, Kenneth Graunke wrote: --- docs/envvars.html | 2 ++ docs/shading.html | 15 +++ 2 files changed, 17 insertions(+) diff --git a/docs/envvars.html b/docs/envvars.html index ca553e5397f..34ff11a7a17

Re: [Mesa-dev] [RFC] NIR serialization

2017-09-11 Thread Ian Romanick
On 09/11/2017 09:23 PM, Ian Romanick wrote: > On 09/08/2017 01:59 AM, Kenneth Graunke wrote: >> On Thursday, September 7, 2017 4:26:04 PM PDT Jordan Justen wrote: >>> On 2017-09-06 14:12:41, Daniel Schürmann wrote: Hello together! Recently, we had a small discussion (off the list) about

Re: [Mesa-dev] [RFC] NIR serialization

2017-09-11 Thread Ian Romanick
On 09/07/2017 04:26 PM, Jordan Justen wrote: > On 2017-09-06 14:12:41, Daniel Schürmann wrote: >> Hello together! >> Recently, we had a small discussion (off the list) about the NIR >> serialization, which was previously discussed in [RFC] ARB_gl_spirv and >> NIR backend for radeonsi. >> >> As

Re: [Mesa-dev] [RFC] NIR serialization

2017-09-11 Thread Ian Romanick
On 09/08/2017 01:59 AM, Kenneth Graunke wrote: > On Thursday, September 7, 2017 4:26:04 PM PDT Jordan Justen wrote: >> On 2017-09-06 14:12:41, Daniel Schürmann wrote: >>> Hello together! >>> Recently, we had a small discussion (off the list) about the NIR >>> serialization, which was previously

Re: [Mesa-dev] [PATCH] glsl: do not set the 'smooth' qualifier by default on ES shaders

2017-09-11 Thread Timothy Arceri
On 12/09/17 00:57, Nicolai Hähnle wrote: On 11.09.2017 16:47, Ilia Mirkin wrote: On Mon, Sep 11, 2017 at 10:44 AM, Nicolai Hähnle wrote: From: Nicolai Hähnle It breaks integer inputs and outputs on vertex processing stages (e.g. geometry

[Mesa-dev] [Bug 102597] [Regression] mpv, high rendering times (two to three times higher)

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102597 --- Comment #6 from Marek Olšák --- Here's why the times are different: Draw calls are not executed sequentially, but instead they are executed in parallel when it's possible. If you start 10 draw calls wrapped around 10

[Mesa-dev] [PATCH] docs: Document shader capturing environment variables.

2017-09-11 Thread Kenneth Graunke
--- docs/envvars.html | 2 ++ docs/shading.html | 15 +++ 2 files changed, 17 insertions(+) diff --git a/docs/envvars.html b/docs/envvars.html index ca553e5397f..34ff11a7a17 100644 --- a/docs/envvars.html +++ b/docs/envvars.html @@ -133,6 +133,8 @@ that variable is set), or else

[Mesa-dev] [Bug 102597] [Regression] mpv, high rendering times (two to three times higher)

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102597 --- Comment #5 from Niklas Haas --- > The TIME_ELAPSED queries tell me my rendering takes ~8ms, but I'm getting 200 > fps. Oops, my bad - I was measuring FPS incorrectly. With the measurement fixed, and the patch

[Mesa-dev] [Bug 102597] [Regression] mpv, high rendering times (two to three times higher)

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102597 --- Comment #4 from Niklas Haas --- Also, even with this patch reverted, the reported timers are unrealistic: The TIME_ELAPSED queries tell me my rendering takes ~8ms, but I'm getting 200 fps. (With higher settings,

Re: [Mesa-dev] [PATCH 19/23] anv: Add flag NO_CLOSE_FD for anv_bo_cache_import()

2017-09-11 Thread Chad Versace
On Sat 02 Sep 2017, Jason Ekstrand wrote: > On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace <[1]chadvers...@chromium.org> > wrote: > > This patch adds a flag param to anv_bo_cache_import() and defines > exactly one flag, ANV_BO_CACHE_IMPORT_NO_CLOSE_FD. If set, the function > will not

Re: [Mesa-dev] [PATCH 18/23] anv: Add field anv_image::mem_is_owned

2017-09-11 Thread Chad Versace
On Sat 02 Sep 2017, Jason Ekstrand wrote: > On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace <[1]chadvers...@chromium.org> > wrote: > > If this flag is set, then the image and it's device memory have the same > lifetime.  vkDestroyImage will free its anv_device_memory. > > We need this

[Mesa-dev] [Bug 102597] [Regression] mpv, high rendering times (two to three times higher)

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102597 --- Comment #3 from Niklas Haas --- Hello, this is the author of the affected `mpv` code. I've reproduced and bisected the mesa issue, and the first bad commit is: bd4b224fa6630262df2b70fd6a6fc8080ad59086 is the

[Mesa-dev] [Bug 102665] test_glsl_to_tgsi_lifetime.cpp:53:67: error: ‘?=>>=?UTF-8?Q?’ should be ‘?=> >=?UTF-8?Q?’ within a nested template argument list

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102665 Bug ID: 102665 Summary: test_glsl_to_tgsi_lifetime.cpp:53:67: error: ‘>>’ should be ‘> >’ within a nested template argument list Product: Mesa Version: git Hardware:

Re: [Mesa-dev] [PATCH 1/3] radv: do not pass a pipeline object to radv_emit_graphics_pipeline()

2017-09-11 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen for all 3. On Mon, Sep 11, 2017 at 5:52 PM, Samuel Pitoiset wrote: > To be consistent with radv_emit_compute_pipeline(). > > Signed-off-by: Samuel Pitoiset > --- >

Re: [Mesa-dev] [PATCH 1/6] radv: realign vgt flush on hawaii workaround with radeonsi.

2017-09-11 Thread Bas Nieuwenhuizen
On Mon, Sep 11, 2017 at 9:26 AM, Dave Airlie wrote: > From: Dave Airlie > > This realigns this code with the radeonsi version and fixes > the indirect case to work properly. > > Signed-off-by: Dave Airlie > --- >

[Mesa-dev] [PATCH 2/5] util: Add tests for the string buffer

2017-09-11 Thread Thomas Helland
More tests could probably be added, but this should cover concatenation, resizing, clearing, formatted printing, and checking the length, so it should be quite complete. V2: Address review feedback from Timothy, plus fixes - Use a large enough char array - Actually test the formatted

[Mesa-dev] [PATCH 1/5] util: Add a string buffer implementation

2017-09-11 Thread Thomas Helland
Based on Vladislav Egorovs work on the preprocessor, but split out to a util functionality that should be universal. Setup, teardown, memory handling and general layout is modeled around the hash_table and the set, to make it familiar for everyone. A notable change is that this implementation is

[Mesa-dev] [PATCH 4/5] glcpp: Use string_buffer for line continuation removal

2017-09-11 Thread Thomas Helland
Migrate removal of line continuations to string_buffer. Before this it used ralloc_strncat() to append strings, which internally each time calculates strlen() of its argument. Its argument is entire shader, so it multiple time scans the whole shader text. Signed-off-by: Vladislav Egorov

[Mesa-dev] [PATCH 0/5] Resend of string buffer series

2017-09-11 Thread Thomas Helland
I think I should have addressed all review feedback pointed out to me by Nicolai, fixed the build issues with the tests (thanks to Eric and Emil) and I've discovered another bug thanks to strengthening the gtest test even more. I've also given it some more polishing and slight modifications to

[Mesa-dev] [PATCH 5/5] glcpp: Avoid unnecessary call to strlen

2017-09-11 Thread Thomas Helland
Length of the token was already calculated by flex and stored in yyleng, no need to implicitly call strlen() via linear_strdup(). Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri V2: Also convert this pattern in glsl_lexer.ll V3: Remove a misplaced comment

[Mesa-dev] [PATCH 3/5] glsl: Change the parser to use the string buffer

2017-09-11 Thread Thomas Helland
Reviewed-by: Nicolai Hähnle V2: Pointed out by Timothy - Fix pp.c reralloc size issue and comment V3 - Use vprintf instead of printf where we should - Fixes failing make-check tests V4 - Use buffer_append_char in a couple more places --- src/compiler/glsl/glcpp/glcpp-parse.y | 195

[Mesa-dev] [PATCH 08/10] swr/rast: Missed conversion to SIMD_T

2017-09-11 Thread Tim Rowley
--- src/gallium/drivers/swr/rasterizer/core/binner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/binner.cpp b/src/gallium/drivers/swr/rasterizer/core/binner.cpp index a6713e8..e08e489 100644 ---

[Mesa-dev] [PATCH 01/10] swr/rast: Add new API SwrStallBE

2017-09-11 Thread Tim Rowley
SwrStallBE stalls the backend threads until all work submitted before the stall has finished. The frontend threads can continue to make forward progress. --- src/gallium/drivers/swr/rasterizer/core/api.cpp | 9 + src/gallium/drivers/swr/rasterizer/core/api.h | 8 2 files

[Mesa-dev] [PATCH 07/10] swr/rast: whitespace changes

2017-09-11 Thread Tim Rowley
--- src/gallium/drivers/swr/rasterizer/jitter/jit_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_api.h b/src/gallium/drivers/swr/rasterizer/jitter/jit_api.h index 9f69669..e589d2c 100644 ---

[Mesa-dev] [PATCH 10/10] swr/rast: Fetch compile state changes

2017-09-11 Thread Tim Rowley
Add InstanceStrideEnable field and rename InstanceDataStepRate to InstanceAdvancementState in INPUT_ELEMENT_DESC structure. Add stubs for handling InstanceStrideEnable in FetchJit::JitLoadVertices() and FetchJit::JitGatherVertices() and assert if they are triggered. ---

[Mesa-dev] [PATCH 05/10] swr/rast: Migrate memory pointers to gfxptr_t type

2017-09-11 Thread Tim Rowley
--- .../swr/rasterizer/codegen/gen_llvm_types.py| 2 +- src/gallium/drivers/swr/rasterizer/core/state.h | 5 +++-- .../drivers/swr/rasterizer/memory/StoreTile.h | 4 ++-- .../drivers/swr/rasterizer/memory/TilingFunctions.h | 2 +- src/gallium/drivers/swr/swr_context.cpp

[Mesa-dev] [PATCH 04/10] swr/rast: Remove hardcoded clip/cull slot from clipper

2017-09-11 Thread Tim Rowley
--- src/gallium/drivers/swr/rasterizer/core/clip.h | 35 +++--- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/clip.h b/src/gallium/drivers/swr/rasterizer/core/clip.h index e0aaf81..cde5261 100644 ---

[Mesa-dev] [PATCH 06/10] swr/rast: add graph write to jit debug putput

2017-09-11 Thread Tim Rowley
--- src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index fc32b62..e4281f8 100644 ---

[Mesa-dev] [PATCH 03/10] swr/rast: Start to remove hardcoded clipcull_dist vertex attrib slot

2017-09-11 Thread Tim Rowley
Add new field in SWR_BACKEND_STATE::vertexClipCullOffset to specify the start of the clip/cull section of the vertex header. Removed use of hardcoded slot from binner. --- src/gallium/drivers/swr/rasterizer/core/binner.cpp | 11 ++- src/gallium/drivers/swr/rasterizer/core/state.h| 9

[Mesa-dev] [PATCH 09/10] swr/rast: adjust linux cpu topology identification code

2017-09-11 Thread Tim Rowley
Make more robust to handle strange strange configurations like a vmware exported 4-way numa X 1-core configuration. --- .../drivers/swr/rasterizer/core/threads.cpp| 81 ++ 1 file changed, 38 insertions(+), 43 deletions(-) diff --git

[Mesa-dev] [PATCH 02/10] swr/rast: Move clip/cull enables in API

2017-09-11 Thread Tim Rowley
Moved from from SWR_RASTSTATE to SWR_BACKEND_STATE. --- .../drivers/swr/rasterizer/core/backend.cpp| 4 ++-- .../drivers/swr/rasterizer/core/backend_impl.h | 2 +- .../drivers/swr/rasterizer/core/backend_sample.cpp | 4 ++-- .../swr/rasterizer/core/backend_singlesample.cpp | 4

[Mesa-dev] [PATCH 00/10] swr: update rasterizer

2017-09-11 Thread Tim Rowley
Mostly some api changes, plus making the cpu topology code a bit more robust in the face of some odd configurations seen in virtualized environments. No piglit or vtk ctest regressions. Tim Rowley (10): swr/rast: Add new API SwrStallBE swr/rast: Move clip/cull enables in API swr/rast:

[Mesa-dev] [Bug 102564] swr: GPU Caps Viewer crashes with any 3D demo

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102564 George Kyriazis changed: What|Removed |Added CC|

[Mesa-dev] [Bug 102564] swr: GPU Caps Viewer crashes with any 3D demo

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102564 --- Comment #3 from George Kyriazis --- Alex, how did you get GPU Caps Viewer to pick up the mesa libs? I tried copying the mesa libs to \windows\system32 (that works will other apps), but GPU Caps Viewer looks like

Re: [Mesa-dev] [PATCH mesa 03/10] egl+glx: turn LIBGL_ALWAYS_SOFTWARE into a boolean

2017-09-11 Thread Kenneth Graunke
On Monday, September 11, 2017 10:54:45 AM PDT Eric Engestrom wrote: > On 11 September 2017 18:33:27 BST, Emil Velikov > wrote: > > > and then each env var in the doc would get an annotation: > > > LIBGL_ALWAYS_SOFTWARE (BOOL) > > > LIBGL_SHOW_FPS (INT) >

Re: [Mesa-dev] [PATCH mesa 03/10] egl+glx: turn LIBGL_ALWAYS_SOFTWARE into a boolean

2017-09-11 Thread Eric Engestrom
On 11 September 2017 18:33:27 BST, Emil Velikov wrote: > On 8 September 2017 at 18:36, Eric Engestrom > wrote: > > On Friday, 2017-09-08 08:13:54 -0700, Kenneth Graunke wrote: > >> On Friday, September 8, 2017 6:33:44 AM PDT Emil Velikov

Re: [Mesa-dev] [PATCH mesa 00/10] make use of env_var_as_boolean()

2017-09-11 Thread Emil Velikov
On 8 September 2017 at 13:40, Eric Engestrom wrote: > After fixing MESA_NO_ERROR=0 yesterday, I decided to have a look and do > the same change with a bunch of other env vars. > > I also updated the docs to suggest setting true/false as it's usually > clearer (what's

Re: [Mesa-dev] [PATCH mesa 05/10] glx: turn LIBGL_ALWAYS_INDIRECT into a boolean

2017-09-11 Thread Emil Velikov
On 8 September 2017 at 13:40, Eric Engestrom wrote: > Instead of setting based on set/unset, allow users to use boolean values. > In the docs, use `ALWAYS=true` instead of `ALWAYS=1` as it's clearer IMO. > > Signed-off-by: Eric Engestrom >

Re: [Mesa-dev] [PATCH mesa 03/10] egl+glx: turn LIBGL_ALWAYS_SOFTWARE into a boolean

2017-09-11 Thread Emil Velikov
On 8 September 2017 at 13:40, Eric Engestrom wrote: > docs/releasing.html | 4 ++-- In light of the earlier "can accept both true and 1" I wouldn't bother with this file, but meh. > #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) >

Re: [Mesa-dev] [PATCH mesa 03/10] egl+glx: turn LIBGL_ALWAYS_SOFTWARE into a boolean

2017-09-11 Thread Emil Velikov
On 8 September 2017 at 18:36, Eric Engestrom wrote: > On Friday, 2017-09-08 08:13:54 -0700, Kenneth Graunke wrote: >> On Friday, September 8, 2017 6:33:44 AM PDT Emil Velikov wrote: >> > Hi Eric, >> > >> > On 8 September 2017 at 13:40, Eric Engestrom

[Mesa-dev] [PATCH] automake: enable libunwind in `make distcheck'

2017-09-11 Thread Emil Velikov
From: Emil Velikov Enable the toggle to catch when the library is missing from the link path. Better to test, fail and address before releasing Mesa ;-) Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Emil Velikov --- Makefile.am |

Re: [Mesa-dev] [PATCH 2/2] travis-ci: Add libunwind-dev to gallium/make builds

2017-09-11 Thread Emil Velikov
On 11 September 2017 at 17:38, Gert Wollny wrote: > Am Montag, den 11.09.2017, 17:05 +0100 schrieb Emil Velikov: >> On 10 September 2017 at 12:17, Gert Wollny >> wrote: >> > configure picks up libunwind automatically if it is available and >> > links

Re: [Mesa-dev] [Intel-gfx] [PATCH 1/2] drm/i915/kbl: Remove unused Kabylake pci ids

2017-09-11 Thread Rodrigo Vivi
On Mon, Sep 11, 2017 at 04:11:33PM +, Anuj Phogat wrote: > See Mesa commits: ebc5ccf and b2dae9f I believe we need to be in sync between multiple gfx stack components, but I don't believe we should remove ids. In the past we had cases where we noticed a product group using a listed id to do

Re: [Mesa-dev] [PATCH] i965: do not fallback to linear tiling for depth/stencil surfaces

2017-09-11 Thread Jason Ekstrand
On Mon, Sep 11, 2017 at 2:15 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Sep 11, 2017 at 10:55:36AM +0200, Iago Toral wrote: > > On Fri, 2017-09-08 at 11:44 +0300, Pohjolainen, Topi wrote: > > > On Fri, Sep 08, 2017 at 09:41:11AM +0200, Iago Toral wrote: > > > > On Fri,

Re: [Mesa-dev] [PATCH] mesa/st: Include builddir/src/compiler/glsl to fix make check

2017-09-11 Thread Emil Velikov
On 11 September 2017 at 07:59, Michel Dänzer wrote: > On 11/09/17 03:36 PM, Gert Wollny wrote: >> Hi Michel, >> >> I can confirm that the problem exists on >> >>8d6b97a815874c7b695471a259fe4b6689890206 >> >> i.e. for me ir_expression_operation.h is created in the build >>

Re: [Mesa-dev] [PATCH v3] i965/fs: Add remove_extra_rounding_modes optimization

2017-09-11 Thread Jason Ekstrand
On Mon, Sep 11, 2017 at 8:00 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Alejandro Piñeiro > > Although from SPIR-V point of view, rounding modes are attached to the > operation/destination, on i965 it is a status, so we don't need to > explicitly

Re: [Mesa-dev] [PATCH 1/2] gallium/targets/dri: Add libunwind to linker flags

2017-09-11 Thread Gert Wollny
Am Montag, den 11.09.2017, 16:58 +0100 schrieb Emil Velikov: > Hi Gert, > > On 10 September 2017 at 12:17, Gert Wollny > wrote: > > Fixes: build failure in travis configuration "make Gallium ST > > Other" > > Please use "Fixes: " only with $sha ("commit summary") > > >

Re: [Mesa-dev] [PATCH 2/2] travis-ci: Add libunwind-dev to gallium/make builds

2017-09-11 Thread Gert Wollny
Am Montag, den 11.09.2017, 17:05 +0100 schrieb Emil Velikov: > On 10 September 2017 at 12:17, Gert Wollny > wrote: > > configure picks up libunwind automatically if it is available and > > links libmesagallium against it. Because static linking is used > > all targets that

Re: [Mesa-dev] [PATCH mesa 4/6] swr: use ARRAY_SIZE macro

2017-09-11 Thread Eric Engestrom
On Monday, 2017-09-11 15:58:11 +, Cherniak, Bruce wrote: > > > > On Sep 7, 2017, at 5:21 AM, Eric Engestrom > > wrote: > > > > Signed-off-by: Eric Engestrom > > --- > > src/gallium/drivers/swr/rasterizer/memory/StoreTile.h | 10

Re: [Mesa-dev] [PATCH] nir/spirv: fix crashes when dereferencing a pointer for an OpVariable

2017-09-11 Thread Jason Ekstrand
On Mon, Sep 11, 2017 at 1:42 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > > > On 09/07/2017 07:15 PM, Jason Ekstrand wrote: > > On Tue, Aug 29, 2017 at 3:04 AM, Samuel Iglesias Gonsálvez < > sigles...@igalia.com> wrote: > >> When creating a vtn_pointer for an OpVariable, the

Re: [Mesa-dev] [PATCH] r600/sb: remove superfluos assert

2017-09-11 Thread Emil Velikov
On 11 September 2017 at 15:39, Gert Wollny wrote: > The assert checks whether pshader->num_arrays != 0, but the code > after the assert actually branches based on the same check. > > Removing this assert fixes: > piglit spec@arb_gpu_shader5@execution@samplemaskin-indirect

Re: [Mesa-dev] [PATCH 2/2] travis-ci: Add libunwind-dev to gallium/make builds

2017-09-11 Thread Emil Velikov
On 10 September 2017 at 12:17, Gert Wollny wrote: > configure picks up libunwind automatically if it is available and > links libmesagallium against it. Because static linking is used > all targets that use libmesagallium also need to link against libunwind > in this case,

Re: [Mesa-dev] [PATCH 1/2] gallium/targets/dri: Add libunwind to linker flags

2017-09-11 Thread Emil Velikov
Hi Gert, On 10 September 2017 at 12:17, Gert Wollny wrote: > Fixes: build failure in travis configuration "make Gallium ST Other" Please use "Fixes: " only with $sha ("commit summary") > with libunwind enabled (https://travis-ci.org/gerddie/mesa/jobs/273673597) > --- >

Re: [Mesa-dev] [PATCH mesa 4/6] swr: use ARRAY_SIZE macro

2017-09-11 Thread Cherniak, Bruce
> > On Sep 7, 2017, at 5:21 AM, Eric Engestrom wrote: > > Signed-off-by: Eric Engestrom > --- > src/gallium/drivers/swr/rasterizer/memory/StoreTile.h | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git

[Mesa-dev] [PATCH 3/3] radv: return an error code when resetting a command buffer

2017-09-11 Thread Samuel Pitoiset
If the upload BO allocation failed. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c

[Mesa-dev] [PATCH 1/3] radv: do not pass a pipeline object to radv_emit_graphics_pipeline()

2017-09-11 Thread Samuel Pitoiset
To be consistent with radv_emit_compute_pipeline(). Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c

[Mesa-dev] [PATCH 2/3] radv: remove unnecessary goto in radv_create_cmd_buffer()

2017-09-11 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 3e9706e421..5e63089e4a 100644 ---

[Mesa-dev] [PATCH 1/2] intel/blorp: Support clearing L8_UNORM_SRGB surfaces

2017-09-11 Thread Jason Ekstrand
Vulkan needs to be able to clear any texture you can create. We want to add support for VK_FORMAT_R8_SRGB and we need to use L8_UNORM_SRGB to do that so we need to be able to clear it. --- src/intel/blorp/blorp_clear.c | 4 1 file changed, 4 insertions(+) diff --git

[Mesa-dev] [PATCH 2/2] anv: Advertise support VK_FORMAT_R8_SRGB

2017-09-11 Thread Jason Ekstrand
Unreal Engine 4 seems to really like this format for some reason. We don't technically have the hardware format but we do have L8_SRGB. It's easy enough to fake with that and a swizzle. Reviewed-by: Kenneth Graunke Reviewed-by: Lionel Landwerlin

Re: [Mesa-dev] [PATCH] glsl: do not set the 'smooth' qualifier by default on ES shaders

2017-09-11 Thread Ilia Mirkin
On Mon, Sep 11, 2017 at 10:57 AM, Nicolai Hähnle wrote: > On 11.09.2017 16:47, Ilia Mirkin wrote: >> >> On Mon, Sep 11, 2017 at 10:44 AM, Nicolai Hähnle >> wrote: >>> >>> From: Nicolai Hähnle >>> >>> It breaks integer inputs and

[Mesa-dev] [Bug 102596] indirect_init.c not compiling, incomplete function

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102596 Cris changed: What|Removed |Added Resolution|--- |FIXED

Re: [Mesa-dev] [PATCH v2] nir/spirv: handle if's with same label in both branches

2017-09-11 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Sep 11, 2017 at 2:41 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > From: "Juan A. Suarez Romero" > > When a conditional branch has the same labels in the "if" part and in the > "else" part, then we

Re: [Mesa-dev] [PATCH 01/10] i965/screen: Add basic support for rendering 10 bpc/depth 30 framebuffers.

2017-09-11 Thread Emil Velikov
On 9 September 2017 at 13:06, Mario Kleiner wrote: > > > On 09/07/2017 04:27 PM, Emil Velikov wrote: >> >> Hi Mario, >> >> On 5 September 2017 at 06:01, Mario Kleiner >> wrote: >>> >>> Expose formats which are supported at least back to Gen

Re: [Mesa-dev] [PATCH v3 0/5] VK_EXT_debug_report v3

2017-09-11 Thread Jason Ekstrand
Left a couple of tiny comments. With those fixed, Reviewed-by: Jason Ekstrand Thanks for working on this! On Sun, Sep 10, 2017 at 10:29 PM, Tapani Pälli wrote: > Here's v3 of VK_EXT_debug_report with fixes to issues found by Jason. > > Some

Re: [Mesa-dev] [PATCH v3 3/5] anv: wire up vk_errorf macro to do debug reporting

2017-09-11 Thread Jason Ekstrand
On Sun, Sep 10, 2017 at 10:29 PM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > src/intel/vulkan/anv_allocator.c | 8 +--- > src/intel/vulkan/anv_device.c | 38 -- > >

[Mesa-dev] [PATCH 2/2] radeonsi: hard-code pixel center for interpolateAtSample without multisample buffers

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle The GLSL rules for interpolateAtSample are unfortunate: "Returns the value of the input interpolant variable at the location of sample number sample. If multisample buffers are not available, the input variable will be evaluated at

[Mesa-dev] [PATCH 1/2] radeonsi: apply a mask to gl_SampleMaskIn in the PS prolog

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle gl_SampleMaskIn is supposed to contain set bits only for the samples that are covered by the current fragment shader invocation, but the VGPR initialization hardware loads the set of all bits that are covered at the current pixel. Fixes various

[Mesa-dev] [PATCH 3/4] radeonsi: make si_init_shader_selector_async static

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state.h | 1 - src/gallium/drivers/radeonsi/si_state_shaders.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.h

[Mesa-dev] [PATCH 2/4] radeonsi: fix segfault in descriptor dumping

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_debug.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 182574d653b..b092eba6ebd 100644 ---

[Mesa-dev] [PATCH 4/4] radeonsi: rename variable to clarify its meaning

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index ee070107fd5..da3c7debd57

[Mesa-dev] [PATCH 1/4] ddebug: write out final driver log messages with GALLIUM_DDEBUG=always

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle If the last operation happens to be a non-draw, such as a transfer_map that triggers a decompress blit, there may be interesting messages left in the driver log. --- src/gallium/drivers/ddebug/dd_context.c | 13 -

[Mesa-dev] [Bug 98842] mesa 13.0.1 build broken under debian8

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98842 Emil Velikov changed: What|Removed |Added Resolution|--- |INVALID

[Mesa-dev] [PATCH 2/2] radeonsi: remove SET_PREDICATION workaround on newer firmware

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle We need to keep the workaround for older firmware, though. --- src/gallium/drivers/radeon/r600_query.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_query.c

[Mesa-dev] [PATCH v3] i965/fs: Add remove_extra_rounding_modes optimization

2017-09-11 Thread Jose Maria Casanova Crespo
From: Alejandro Piñeiro Although from SPIR-V point of view, rounding modes are attached to the operation/destination, on i965 it is a status, so we don't need to explicitly set the rounding mode if the one we want is already set. Taking into account that the default mode

[Mesa-dev] [PATCH 1/2] amd/common: get ME/PFP/CE firmware feature versions as well

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/amd/common/ac_gpu_info.c | 10 ++ src/amd/common/ac_gpu_info.h | 3 +++ src/gallium/drivers/radeon/r600_pipe_common.c | 3 +++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] glsl: do not set the 'smooth' qualifier by default on ES shaders

2017-09-11 Thread Nicolai Hähnle
On 11.09.2017 16:47, Ilia Mirkin wrote: On Mon, Sep 11, 2017 at 10:44 AM, Nicolai Hähnle wrote: From: Nicolai Hähnle It breaks integer inputs and outputs on vertex processing stages (e.g. geometry stages). Instead, rely on the driver to choose

[Mesa-dev] [Bug 102639] BadLength (poly request too large or internal Xlib length erro

2017-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102639 --- Comment #1 from Emil Velikov --- Hi Thomas, Can you reproduce this with the GTK3 demos, or it's GTK2 specific? `make check' works like a charm here - please attach the src/mesa/main/tests/test-suite.log file. --

Re: [Mesa-dev] [PATCH 1/2] tgsi/scan: add a new pass that analyzes tess factor writes (v2)

2017-09-11 Thread Nicolai Hähnle
On 11.09.2017 16:42, Marek Olšák wrote: On Mon, Sep 11, 2017 at 4:12 PM, Nicolai Hähnle wrote: On 07.09.2017 20:26, Marek Olšák wrote: From: Marek Olšák The pass tries to deduce whether tess factors are always written by all shader invocations. The

Re: [Mesa-dev] [PATCH] glsl: do not set the 'smooth' qualifier by default on ES shaders

2017-09-11 Thread Ilia Mirkin
On Mon, Sep 11, 2017 at 10:44 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > It breaks integer inputs and outputs on vertex processing stages > (e.g. geometry stages). Instead, rely on the driver to choose > smooth interpolation by default. >

[Mesa-dev] [PATCH] glsl: do not set the 'smooth' qualifier by default on ES shaders

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle It breaks integer inputs and outputs on vertex processing stages (e.g. geometry stages). Instead, rely on the driver to choose smooth interpolation by default. --- How about this instead? I haven't fully thought it through, but that's where the

Re: [Mesa-dev] [PATCH 1/2] tgsi/scan: add a new pass that analyzes tess factor writes (v2)

2017-09-11 Thread Marek Olšák
On Mon, Sep 11, 2017 at 4:12 PM, Nicolai Hähnle wrote: > On 07.09.2017 20:26, Marek Olšák wrote: >> >> From: Marek Olšák >> >> The pass tries to deduce whether tess factors are always written by >> all shader invocations. >> >> The implication for

[Mesa-dev] [PATCH] r600/sb: remove superfluos assert

2017-09-11 Thread Gert Wollny
The assert checks whether pshader->num_arrays != 0, but the code after the assert actually branches based on the same check. Removing this assert fixes: piglit spec@arb_gpu_shader5@execution@samplemaskin-indirect --- src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 2 -- 1 file changed, 2

Re: [Mesa-dev] [PATCH] Android: fix undeclared identifier 'gfx9d_reg_table'

2017-09-11 Thread Rob Herring
On Sat, Sep 9, 2017 at 12:17 PM, Chih-Wei Huang wrote: > Since commit 552aaa11 the compiler complains: > > external/mesa/src/amd/common/ac_debug.c:124:51: error: use of undeclared > identifier 'gfx9d_reg_table'; did you mean 'sid_reg_table'? > reg =

Re: [Mesa-dev] [PATCH] gallium/{r600, radeonsi}: Fix segfault with color format

2017-09-11 Thread Nicolai Hähnle
On 10.09.2017 20:52, Denis Pauk wrote: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102552 --- src/gallium/auxiliary/util/u_format.c| 4 src/gallium/drivers/r600/r600_state_common.c | 4 src/gallium/drivers/radeonsi/si_state.c | 13 - 3 files

Re: [Mesa-dev] [PATCH] Android: fix undeclared identifier 'gfx9d_reg_table'

2017-09-11 Thread Nicolai Hähnle
On 09.09.2017 19:17, Chih-Wei Huang wrote: Since commit 552aaa11 the compiler complains: external/mesa/src/amd/common/ac_debug.c:124:51: error: use of undeclared identifier 'gfx9d_reg_table'; did you mean 'sid_reg_table'? reg = find_register(gfx9d_reg_table,

Re: [Mesa-dev] [PATCH 1/2] tgsi/scan: add a new pass that analyzes tess factor writes (v2)

2017-09-11 Thread Nicolai Hähnle
On 07.09.2017 20:26, Marek Olšák wrote: From: Marek Olšák The pass tries to deduce whether tess factors are always written by all shader invocations. The implication for radeonsi is that it doesn't have to use a barrier near the end of TCS, and doesn't have to use LDS for

Re: [Mesa-dev] [PATCH 6/7] radeonsi: implement pipe_context::server_fence_sync

2017-09-11 Thread Nicolai Hähnle
On 06.09.2017 11:34, Marek Olšák wrote: From: Marek Olšák This will be more useful once we have sync_file support. --- src/gallium/drivers/radeon/r600_pipe_common.c | 44 +++ src/gallium/drivers/radeon/radeon_winsys.h| 7 +

Re: [Mesa-dev] [PATCH] radv: use simpler indirect packet 3 if possible.

2017-09-11 Thread Nicolai Hähnle
On 07.09.2017 15:07, Bas Nieuwenhuizen wrote: On Thu, Sep 7, 2017, at 14:52, Nicolai Hähnle wrote: On 07.09.2017 12:26, Dave Airlie wrote: On 7 Sep. 2017 6:34 pm, "Nicolai Hähnle" > wrote: On 07.09.2017 09 :58, Bas

[Mesa-dev] [PATCH] glsl: remove assert in lower_packed_varyings

2017-09-11 Thread Ilia Mirkin
It's obviously misformed, and it's triggering on dEQP-GLES31.functional.program_interface_query.program_input.type.separable_geometry.int and a few related tests, which have a geometry shader with "in highp int target[];" which for some reason ends up with a "smooth" interpolation. I'm not

[Mesa-dev] [PATCH 1.5/4] [RFC] ac/addrlib: relax an assertion

2017-09-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- We hit this assertion with 3D textures on gfx9. I'm not aware of any 3D-texture-specific failures, but I'm also not sure whether CMASK is supposed to work with 3D textures or whether we've just been lucky. ---

Re: [Mesa-dev] [PATCH v2] glsl: disallow mixed varying types within a location

2017-09-11 Thread Ilia Mirkin
On Mon, Sep 11, 2017 at 1:59 AM, Timothy Arceri wrote: > On 11/09/17 14:07, Ilia Mirkin wrote: >> >> On Sun, Sep 10, 2017 at 8:03 PM, Timothy Arceri >> wrote: >>> >>> At the risk of sounding like a broken record. Why not just >>> update/re-factor >>>

Re: [Mesa-dev] [PATCH v2] i965: do not fallback to linear tiling for stencil surfaces

2017-09-11 Thread Pohjolainen, Topi
On Mon, Sep 11, 2017 at 02:33:09PM +0200, Iago Toral Quiroga wrote: > We were skipping this fallback for depth, but not for stencil > which the hardware always requires to be W-tiled. > > Also, make the checks for whether we need to apply retiling > strategies based on usage instead of tiling

[Mesa-dev] i965: Two possible bug fixes

2017-09-11 Thread Topi Pohjolainen
While debugging one internal workload I've been trying various things. Here are two of those. I'm not aware of them actually fixing anything but... CC: Mark Janes Topi Pohjolainen (3): i965/gen8: Remove unused gen8_emit_3dstate_multisample() intel/blorp/hiz: Always

[Mesa-dev] [PATCH 1/3] i965/gen8: Remove unused gen8_emit_3dstate_multisample()

2017-09-11 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_context.h| 1 - src/mesa/drivers/dri/i965/gen8_multisample_state.c | 16 2 files changed, 17 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h

[Mesa-dev] [PATCH 3/3] i965: Disable stencil cache optimization combining two 4x2 blocks

2017-09-11 Thread Topi Pohjolainen
From the BDW PRM, Volume 15, Workarounds: KMD Wa4x4STCOptimizationDisable HIZ/STC hang in hawx frames. W/A: Disable 4x4 RCPFE STC optimization and therefore only send one valid 4x4 to STC on 4x4 interface. This will require setting bit 6 of reg. 0x7004. Must be done at boot and all

  1   2   >