[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #4 from Darek --- Please try this https://patchwork.freedesktop.org/patch/219239/ mesa 18.1.0-rc2 + dri3-Only-update-number-of-back-buffers-in-loader_dri3_get_buffers.patch It seems to me that there is

Re: [Mesa-dev] [PATCH v3 00/13] TGSI: improved live range tracking, also including arrays

2018-04-28 Thread Benedikt Schemmer
Hi Gert Am 28.04.2018 um 23:51 schrieb Gert Wollny: > Am Samstag, den 28.04.2018, 22:43 +0200 schrieb Benedikt Schemmer: >> The patches apply cleanly, however I just did a shader-db test run >> and can't find a difference with your patch >> applied, am I doing something wrong? > > AFAIK radeonsi

Re: [Mesa-dev] [PATCH] st/omx/enc: fix blit setup for YUV LoadImage

2018-04-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Apr 27, 2018 at 8:32 AM, Leo Liu wrote: > The blit here involves scaling since it's copying from I8 format to R8G8 > format. > Half of source will be filtered out with PIPE_TEX_FILTER_NEAREST > instruction, it >

Re: [Mesa-dev] [PATCH v3 00/13] TGSI: improved live range tracking, also including arrays

2018-04-28 Thread Gert Wollny
Am Samstag, den 28.04.2018, 22:43 +0200 schrieb Benedikt Schemmer: > The patches apply cleanly, however I just did a shader-db test run > and can't find a difference with your patch > applied, am I doing something wrong? AFAIK radeonsi doesn't use the register-merge optimizer in TGSI. > >

[Mesa-dev] [Bug 106304] glcpp/tests/glcpp-test-cr-lf and glcpp/tests/glcpp-test fail

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106304 Bug ID: 106304 Summary: glcpp/tests/glcpp-test-cr-lf and glcpp/tests/glcpp-test fail Product: Mesa Version: git Hardware: Other OS: All

Re: [Mesa-dev] [Mesa-announce] [ANNOUNCE] mesa 18.1.0-rc2

2018-04-28 Thread Dylan Baker
On April 28, 2018 9:12:38 AM PDT, "Juan A. Suarez Romero" wrote: >On Fri, 2018-04-27 at 14:07 -0700, Dylan Baker wrote: >> Hi List, >> >> Mesa 18.1.0-rc2 is now available. There are 20 nominated patches, and >no queued >> or rejected patches. All patches applied cleanly,

Re: [Mesa-dev] [PATCH v3 00/13] TGSI: improved live range tracking, also including arrays

2018-04-28 Thread Benedikt Schemmer
The patches apply cleanly, however I just did a shader-db test run and can't find a difference with your patch applied, am I doing something wrong? compile times went up though: before: Thread 3 took 113.72 seconds and compiled 17899 shaders (not including SIMD16) with 2232 GL context switches

[Mesa-dev] [PATCH v3 11/13] mesa/st/glsl_to_tgsi: add class for array access tracking

2018-04-28 Thread Gert Wollny
Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 102 + 1 file changed, 102 insertions(+) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp

[Mesa-dev] [PATCH v3 13/13] mesa/st/glsl_to_tgsi: Expose array live range tracking and merging

2018-04-28 Thread Gert Wollny
This patch ties in the array split, merge, and interleave code. shader-wb changes in the TGSI code are: original code | array-merge | change in % mean max | meanmax | mean -max --- arrays 0.05

[Mesa-dev] [PATCH v3 09/13] mesa/st/glsl_to_tgsi: rename access_record to register_merge_record and some more renames

2018-04-28 Thread Gert Wollny
Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 61 +++--- .../state_tracker/st_glsl_to_tgsi_temprename.h | 2 +- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git

[Mesa-dev] [PATCH v3 05/13] mesa/st: Add helper classes for array merging and interleaving

2018-04-28 Thread Gert Wollny
Signed-off-by: Gert Wollny --- src/mesa/Makefile.sources | 2 + src/mesa/meson.build | 2 + .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 283 +

[Mesa-dev] [PATCH v3 12/13] mesa/st/glsl_to_tgsi: add array life range evaluation into tracking code

2018-04-28 Thread Gert Wollny
Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 61 +- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp

[Mesa-dev] [PATCH v3 04/13] mesa/st/glsl_to_tgsi:rename lifetime to register_live_range

2018-04-28 Thread Gert Wollny
On one hand "live range" is the term used in the literature, and on the other hand a distinction is needed from the array live ranges. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 16 ++---

[Mesa-dev] [PATCH v3 08/13] mesa/st/tests: Add tests for array merge helper classes.

2018-04-28 Thread Gert Wollny
v2: Define tests also in the meson.build file. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/tests/Makefile.am | 20 +- src/mesa/state_tracker/tests/meson.build | 14 + src/mesa/state_tracker/tests/st_tests_common.h | 7 +-

[Mesa-dev] [PATCH v3 07/13] mesa/st/glsl_to_tgsi:Add array merge logic

2018-04-28 Thread Gert Wollny
Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 389 - .../state_tracker/st_glsl_to_tgsi_array_merge.h| 26 +- 2 files changed, 413 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH v3 10/13] mesa/st/glsl_to_tgsi: move evaluation of read mask up in the call hierarchy

2018-04-28 Thread Gert Wollny
In preparation of the array live range tracking the evaluation of the read mask is moved out the register live range tracking to the enclosing call of the reneralized read access tracking. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp

[Mesa-dev] [PATCH v3 06/13] mesa/st/glsl_to_tgsi: Add class to track array live range

2018-04-28 Thread Gert Wollny
todo explain Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 69 ++ .../state_tracker/st_glsl_to_tgsi_array_merge.h| 46 +++ 2 files changed, 115 insertions(+) diff --git

[Mesa-dev] [PATCH v3 00/13] TGSI: improved live range tracking, also including arrays

2018-04-28 Thread Gert Wollny
this is another update of the series I've sent before. v3: - Add new test mesa/st/tests/meson.build - rebase patches to latest HEAD this is the merged version of two series [1] (TGSI: split, merge and interleave arrays) and [2] (mesa/st/glsl_to_tgsi: Properly resolve life times for simple

[Mesa-dev] [PATCH v3 02/13] mesa/st: glsl_to_tgsi: Split arrays who's elements are only accessed directly

2018-04-28 Thread Gert Wollny
Array who's elements are only accessed directly are replaced by the according number of temporary registers. By doing so the otherwise reserved register range becomes subject to further optimizations like copy propagation and register merging. Thanks to the resulting reduced register pressure

[Mesa-dev] [PATCH v3 03/13] mesa/st/glsl_to_tgsi: Properly resolve life times simple if/else + use constructs

2018-04-28 Thread Gert Wollny
in constructs like below, currently the live range estimation extends the live range of t unecessarily to the whole loop because it was not detected that t is unconditional written and later read only in the "if (a)" scope. while (foo) { ... if (a) { ... if (b)

[Mesa-dev] [PATCH v3 01/13] mesa/st/glsl_to_tgsi: Add method to collect some statistics

2018-04-28 Thread Gert Wollny
When mesa is compiled in debug mode then this adds the possibility to print out some statistics about the translated shaders to a file. The functionality is enabled by setting the environment variable GLSL_TO_TGSI_PRINT_STATS to the file name where the statistics should be collected. The

[Mesa-dev] [ANNOUNCE] mesa 18.0.2

2018-04-28 Thread Juan A. Suarez Romero
Mesa 18.0.2 is now available. In this release we have: A couple of fixes for Meson that solves some problems regarding building tests and installation. A couple of fixes in state tracker / DRI that was causing crashes in QtCreator and Firefox, among other problems. A couple of fixes for GFX9,

Re: [Mesa-dev] [Mesa-announce] [ANNOUNCE] mesa 18.1.0-rc2

2018-04-28 Thread Juan A. Suarez Romero
On Fri, 2018-04-27 at 14:07 -0700, Dylan Baker wrote: > Hi List, > > Mesa 18.1.0-rc2 is now available. There are 20 nominated patches, and no > queued > or rejected patches. All patches applied cleanly, so no conflicts at all. Yay. > > I think you meant 20 queued patches, not nominated.

[Mesa-dev] [Bug 106296] Where does the string "OpenGL ES 3.1 Mesa 17.2.8" come from

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106296 Dilian changed: What|Removed |Added Resolution|--- |FIXED

Re: [Mesa-dev] Building Mesa3D with Meson and MSVC

2018-04-28 Thread Dylan Baker
Compiling for Windows with meson is still a work in progress. I have a branch that cross compiled from Linux with mingw, as I'm starting to work on msvc support. Dylan On April 28, 2018 8:35:24 AM PDT, Liviu Prodea wrote: >Short story > >As maintainer of this

[Mesa-dev] Building Mesa3D with Meson and MSVC

2018-04-28 Thread Liviu Prodea
Short story As maintainer of this project -  https://github.com/pal1000/mesa-dist-win where I build Mesa3D drivers with MSVC aided by a script I got a request to build swr AVX512 target. After a bit of research I discovered it's not implemented in Scons build and opened this ticket to

[Mesa-dev] [Bug 106296] Where does the string "OpenGL ES 3.1 Mesa 17.2.8" come from

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106296 --- Comment #1 from Ilia Mirkin --- >From glxinfo: OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.1.0-rc1 This is the return value for glGetString(GL_VERSION). That means that your 17.2.8 library is being picked

Re: [Mesa-dev] [PATCH 3/4] nir: add all combinations of conversions with rounding and saturation

2018-04-28 Thread Jason Ekstrand
On Sat, Apr 28, 2018 at 4:14 AM, Karol Herbst wrote: > OpenCL has explicit casts where one can specify the rounding mode and put a > sat modifier: > > https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/ > man/xhtml/convert_T.html > > _sat is valid for all conversions to an

Re: [Mesa-dev] [PATCH 1/4] nir: rename f2f16_undef to f2f16

2018-04-28 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Sat, Apr 28, 2018 at 4:14 AM, Karol Herbst wrote: > we need rounding modes on other conversions involving floats and it is > easier > to rename f2f16_undef than renaming all the other ones. > > Signed-off-by: Karol Herbst

[Mesa-dev] [Bug 106296] Where does the string "OpenGL ES 3.1 Mesa 17.2.8" come from

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106296 Bug ID: 106296 Summary: Where does the string "OpenGL ES 3.1 Mesa 17.2.8" come from Product: Mesa Version: 17.3 Hardware: Other OS: All

[Mesa-dev] [Bug 106283] Shader replacements works only for limited use cases

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106283 --- Comment #5 from b...@besd.de --- Hi, if you are looking at the shader capture code, would you consider looking at this patch too? https://lists.freedesktop.org/archives/mesa-dev/2018-April/193430.html I just send it to the

[Mesa-dev] [PATCH] mesa/main: Rework the shader capture naming convention

2018-04-28 Thread Benedikt Schemmer
Change from a purely number.shader_test naming scheme to sha_number.shader_test because especially games often use the same number for entirely different shaders based on graphics settings etc. and then already captured shaders get overwritten. It is also useful for capturing shaders from

[Mesa-dev] [Bug 106209] [opencl] [llvm-svn] build failure undefined reference to `clang::FrontendTimesIsEnabled'

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106209 Kai changed: What|Removed |Added CC|

[Mesa-dev] [Bug 106283] Shader replacements works only for limited use cases

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106283 --- Comment #4 from Tapani Pälli --- (In reply to iive from comment #3) > No it does not help. > Yes, I swapped the working and not working functions. > Sorry, my mistake. But the point remains. > > As you have said yourself,

[Mesa-dev] [PATCH 4/5] compiler/nir: Add conditional lowering for gl_BaseVertex

2018-04-28 Thread Antia Puentes
--- src/compiler/nir/nir.h | 6 ++ src/compiler/nir/nir_lower_system_values.c | 15 +++ 2 files changed, 21 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index f3326e6df94..1b1dd4dd31b 100644 --- a/src/compiler/nir/nir.h +++

[Mesa-dev] [PATCH 3/5] intel: emit is_indexed_draw in the same VE than gl_DrawID

2018-04-28 Thread Antia Puentes
The Vertex Elements are now: * VE 1: * VE 2: VE1 is it kept as it was before, VE2 additionally contains the new system value. --- src/intel/compiler/brw_fs_nir.cpp | 2 ++ src/intel/compiler/brw_nir.c | 11 +--

[Mesa-dev] [PATCH 0/5] i965: Fix gl_BaseVertex for non-indexed draws

2018-04-28 Thread Antia Puentes
This series is the alternative to the discarded patch 6 of the series: https://patchwork.freedesktop.org/series/41307/ It fixes gl_BaseVertex in i965 by calculating it as: is_indexed_draw(~0/0) & firstvertex. I have run jenkins for the last patch of the series and the intermediate patch 3. No

[Mesa-dev] [PATCH 2/5] intel/compiler: Add uses_is_indexed_draw flag

2018-04-28 Thread Antia Puentes
--- src/intel/compiler/brw_compiler.h | 1 + src/intel/compiler/brw_vec4.cpp | 4 2 files changed, 5 insertions(+) diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 24196248b8e..e3bf535a519 100644 --- a/src/intel/compiler/brw_compiler.h +++

[Mesa-dev] [PATCH 5/5] intel: activate the gl_BaseVertex lowering

2018-04-28 Thread Antia Puentes
Surplus code related to the basevertex is removed. The Vertex Elements contain now: * VE 1: * VE 2: Also fixes unreachable message. Fixes OpenGL CTS tests: *

[Mesa-dev] [PATCH 1/5] compiler: Add SYSTEM_VALUE_IS_INDEXED_DRAW and instrinsics

2018-04-28 Thread Antia Puentes
This VS system value contains if the draw command used to start the rendering was an indexed draw command or a non-indexed one (~0/0 respectively). Useful to calculate the gl_BaseVertex as: (SYSTEM_VALUE_IS_INDEXED_DRAW & SYSTEM_VALUE_FIRST_VERTEX). --- src/compiler/nir/nir.c | 4

[Mesa-dev] [PATCH 4/4] nir: add helper functions for rounding mode

2018-04-28 Thread Karol Herbst
For easier implementing of the new conversion opcodes. Signed-off-by: Karol Herbst --- src/compiler/nir/nir_opcodes_h.py | 57 +++ 1 file changed, 57 insertions(+) diff --git a/src/compiler/nir/nir_opcodes_h.py

[Mesa-dev] [PATCH 2/4] nir: enable float rounding modes for all float conversions

2018-04-28 Thread Karol Herbst
we need those for OpenCL Signed-off-by: Karol Herbst --- src/compiler/nir/nir_opcodes.py | 2 +- src/compiler/nir/nir_opcodes_c.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index

[Mesa-dev] [PATCH 1/4] nir: rename f2f16_undef to f2f16

2018-04-28 Thread Karol Herbst
we need rounding modes on other conversions involving floats and it is easier to rename f2f16_undef than renaming all the other ones. Signed-off-by: Karol Herbst --- src/compiler/nir/nir_opcodes.py | 4 ++-- src/compiler/nir/nir_opcodes_c.py | 8

[Mesa-dev] [PATCH 0/4] nir: add support for extended conversions ops needed by OpenCL

2018-04-28 Thread Karol Herbst
This series adds a bunch of new conversion ops to nir to support all possible combinations of conversions mandated by the OpenCL specification. Current drivers shouldn't be affected by any of those changes except renaming nir_op_f2f16_undef to nir_op_f2f16. Karol Herbst (4): nir: rename

[Mesa-dev] [PATCH 3/4] nir: add all combinations of conversions with rounding and saturation

2018-04-28 Thread Karol Herbst
OpenCL has explicit casts where one can specify the rounding mode and put a sat modifier: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/convert_T.html _sat is valid for all conversions to an integer type and rounding modes are valid for all conversions involving floats.

[Mesa-dev] [Bug 106283] Shader replacements works only for limited use cases

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106283 --- Comment #3 from i...@yahoo.com --- No it does not help. Yes, I swapped the working and not working functions. Sorry, my mistake. But the point remains. As you have said yourself, Shader replacements don't work for ancient glProgramString().

[Mesa-dev] [Bug 106157] [Tracker] Mesa 18.1 release tracker

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106157 --- Comment #4 from mercuriete --- Sorry for the noise, I need help to know how make useful logs I have this bug: https://bugs.freedesktop.org/show_bug.cgi?id=106180 I can't use any vulkan application when using PRIME.

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #3 from mercuriete --- Still happen in mesa 18.1.0-rc2 Sorry I need help to add useful logs. I tried to revert that patch but there are conflicts when reverting. Thanks in advance. -- You are receiving this

Re: [Mesa-dev] [PATCH] Don't set swap interval for PBuffer surface. This fixes crash due to NULL window.

2018-04-28 Thread Erik Faye-Lund
On Fri, Apr 27, 2018 at 11:17 AM, samiuddi wrote: > Test: CtsDisplayTestCases pass > > Signed-off-by: samiuddi > --- > src/egl/drivers/dri2/platform_android.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

[Mesa-dev] [Bug 106290] meson: missing radeon option in dri-drivers section of meson_options.txt

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106290 charlie changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop.

[Mesa-dev] [Bug 106290] meson: missing radeon option in dri-drivers section of meson_options.txt

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106290 Bug ID: 106290 Summary: meson: missing radeon option in dri-drivers section of meson_options.txt Product: Mesa Version: git Hardware: x86-64 (AMD64) OS:

[Mesa-dev] [Bug 106283] Shader replacements works only for limited use cases

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106283 --- Comment #2 from Tapani Pälli --- One source of confusion here might be that there exists 2 shader dumping paths in Mesa, created for different purposes. Shader replacement is done with MESA_SHADER_DUMP_PATH and

[Mesa-dev] [Bug 106283] Shader replacements works only for limited use cases

2018-04-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106283 --- Comment #1 from Tapani Pälli --- If you are referring to MESA_SHADER_DUMP_PATH and MESA_SHADER_READ_PATH, your conclusion seems wrong. Shader replacement works when application calls glShaderSource(). You need to set the