Re: [Mesa-dev] [PATCH mesa v2 1/2] egl/display: only detect the platform once

2017-06-16 Thread Eric Engestrom
On Friday, 2017-06-16 12:10:55 +0300, Grazvydas Ignotas wrote: > On Fri, Jun 16, 2017 at 1:53 AM, Eric Engestrom wrote: > > My refactor missed the fact that `native_platform` is static. > > Add the proper guard around the detection code, as it might not be > > necessary, and

Re: [Mesa-dev] [PATCH] st/mesa: don't set the border color if it's unused

2017-06-16 Thread Marek Olšák
On Jun 16, 2017 6:08 AM, "Michel Dänzer" wrote: On 15/06/17 08:56 PM, Marek Olšák wrote: > From: Marek Olšák [...] > /* For non-black borders... */ > - if (msamp->BorderColor.ui[0] || > - msamp->BorderColor.ui[1] || > -

[Mesa-dev] [PATCH] glsl: gl_Max{Vertex, Fragment}UniformComponents exist in all desktop GL versions

2017-06-16 Thread Iago Toral Quiroga
The current implementation assumed that these were replaced in GLSL >= 4.10 by gl_Max{Vertex,Fragment}UniformVectors, however this is not true: both built-ins should be produced from GLSL 4.10 onwards. This was raised by new CTS tests that are in development. ---

[Mesa-dev] [PATCH v2 3/3] mesa/st: glsl_to_tgsi: tie in the new register renaming approach

2017-06-16 Thread Gert Wollny
This patch replaces the old register livetime estimation with the new approach. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp

[Mesa-dev] [PATCH v2 1/3] mesa/st: glsl_to_tgsi move some helper classes to extra files

2017-06-16 Thread Gert Wollny
To prepare the implementation of a temp register lifetime tracker some of the classes and functions are moved into seperate header/ implementation files to make them accessible from other files. Specifically these are: class st_src_reg; class st_dst_reg; class glsl_to_tgsi_instruction;

[Mesa-dev] [PATCH v2 0/3][RFC]mesa/st: glsl_to_tgsi: improved temp-reg lifetime estimation

2017-06-16 Thread Gert Wollny
Dear all, with the help of Nicolai's comments I rewrote the proposed patch set to improve the register renaming. The patch is related to bugs where shader compilation fails with "- translation from TGSI failed!" Among these is https://bugs.freedesktop.org/show_bug.cgi?id=65448 which I

[Mesa-dev] [PATCH v2 2/3] mesa/st: glsl_to_tgsi Implement a new lifetime tracker for temporaries

2017-06-16 Thread Gert Wollny
This patch adds new classes and tests to implement a tracker for the life time of temporary registers for the register renaming stage of glsl_to_tgsi. The tracker aims at estimating the shortest possible life time for each register. The code base requires c++11, the flag is propagated from the

Re: [Mesa-dev] [PATCH mesa v2 1/2] egl/display: only detect the platform once

2017-06-16 Thread Grazvydas Ignotas
On Fri, Jun 16, 2017 at 1:53 AM, Eric Engestrom wrote: > My refactor missed the fact that `native_platform` is static. > Add the proper guard around the detection code, as it might not be > necessary, and only print the debug message when a detection was > actually performed. >

[Mesa-dev] [PATCH] i965: update MaxTextureRectSize to match PRMs and comply with OpenGL 4.1+

2017-06-16 Thread Iago Toral Quiroga
We were exposing 4096, but we can do up to 8192 in Gen4-6 and up to 16384 in gen7+. OpenGL 4.1+ requires at least 16384. --- src/mesa/drivers/dri/i965/brw_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c

[Mesa-dev] [Bug 101464] PrimitiveRestartNV inside a render list causes a crash

2017-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101464 Bug ID: 101464 Summary: PrimitiveRestartNV inside a render list causes a crash Product: Mesa Version: 17.0 Hardware: x86-64 (AMD64) OS: All Status: NEW

[Mesa-dev] [PATCH] i965: skip varyings without slot

2017-06-16 Thread Juan A. Suarez Romero
Commit 00620782c9 (i965: use nir_shader_gather_info() over do_set_program_inouts()) changed how we compute the outputs written. In the previous version it was using the IR declared outputs, while in the new one it uses NIR to parse the instructions that write outputs. Thus, if the shader has

Re: [Mesa-dev] [PATCH 0/6] i965/vec4: Implement partial DF register spilling

2017-06-16 Thread Samuel Iglesias Gonsálvez
On Thu, 2017-06-15 at 13:15 +0200, Samuel Iglesias Gonsálvez wrote: > Hello, > > As mentioned in the patch series that implemented Ivybridge support > ARB_gpu_shader_fp64 [0], the only missing feature in that series was > register spilling of 64-bit data and, because of that, about ~39 fp64 >

Re: [Mesa-dev] [PATCH] i965: don't call dup() twice when calling eglDupNativeFenceFDANDROID.

2017-06-16 Thread Tapani Pälli
Oops sorry, forget about this one. This does not work ok :/ Need to take a closer look why. On 06/16/2017 10:21 AM, Tapani Pälli wrote: From: Randy Xu This was causing crashes in Vulkan and GLES stress testing. Currently, both libEGL and the DRI module call dup when the

[Mesa-dev] [PATCH] i965: don't call dup() twice when calling eglDupNativeFenceFDANDROID.

2017-06-16 Thread Tapani Pälli
From: Randy Xu This was causing crashes in Vulkan and GLES stress testing. Currently, both libEGL and the DRI module call dup when the function is called. Remove the former since it's ultimately a driver decision how to manage the file descriptor. v2: remove dup from the

Re: [Mesa-dev] [PATCH v1 0/7] Android etnaviv and imx support

2017-06-16 Thread Tapani Pälli
I sent some small nitpicking on commented lines in mk files, otherwise everything LGTM. I'm not sure about patch to enable texture-float, should this be left as a 'policy decision' for end distribution, it's not enabled by default on desktop? other patches (with those small nits fixed) are

Re: [Mesa-dev] [PATCH v1 6/7] android: add etnaviv driver build support

2017-06-16 Thread Tapani Pälli
On 06/16/2017 09:28 AM, Tapani Pälli wrote: On 06/15/2017 11:47 PM, Robert Foss wrote: From: Rob Herring Add etnaviv to Android makefiles. Signed-off-by: Rob Herring --- Android.mk| 5 +-- src/gallium/Android.mk

Re: [Mesa-dev] [PATCH v1 7/7] android: build imx-drm winsys

2017-06-16 Thread Tapani Pälli
On 06/15/2017 11:47 PM, Robert Foss wrote: From: Tomeu Vizoso Signed-off-by: Tomeu Vizoso --- Android.mk| 5 +++-- src/gallium/Android.mk| 1 + src/gallium/winsys/imx/drm/Android.mk |

Re: [Mesa-dev] [PATCH v1 6/7] android: add etnaviv driver build support

2017-06-16 Thread Tapani Pälli
On 06/15/2017 11:47 PM, Robert Foss wrote: From: Rob Herring Add etnaviv to Android makefiles. Signed-off-by: Rob Herring --- Android.mk| 5 +-- src/gallium/Android.mk| 1 +

[Mesa-dev] [PATCH v1 1/3] dri: Add UYVY as available format UYVY is diffrent with YUYV in byte order. YUYV is already declared in dri_interface.h, this CL add the difinitions for UYVY. Drivers can add

2017-06-16 Thread Johnson Lin
--- include/GL/internal/dri_interface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index fc2d4bbe22ef..6992da16d5f8 100644 --- a/include/GL/internal/dri_interface.h +++

[Mesa-dev] [PATCH v1 2/3] nir: Add a lowering pass for UYVY textures Similar with support for YUYV but with byte order difference in sampler

2017-06-16 Thread Johnson Lin
--- src/compiler/nir/nir.h | 1 + src/compiler/nir/nir_lower_tex.c | 16 2 files changed, 17 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index ab7ba14303b7..1b4e47058d4d 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@

[Mesa-dev] [PATCH v1 3/3] i965/i915: Add UYVY as the supported format Trigger the correct sampler options for it. Similar with YUYV

2017-06-16 Thread Johnson Lin
--- src/intel/compiler/brw_compiler.h| 1 + src/intel/compiler/brw_nir.c | 1 + src/mesa/drivers/dri/i915/intel_screen.c | 7 +-- src/mesa/drivers/dri/i965/brw_wm.c | 7 +++ src/mesa/drivers/dri/i965/intel_screen.c | 7 +-- 5 files changed, 19 insertions(+),

<    1   2   3