Re: [Mesa-dev] [PATCH 1/2] i965: Fix Haswell discard regressions since Gen4-5 line AA fix.

2014-06-11 Thread Iago Toral
Urgh, sorry about that :-( I'll be more careful when manipulating the state flags next time. Iago On Tue, 2014-06-10 at 20:12 -0700, Kenneth Graunke wrote: In commit dc2d3a7f5c217a7cee92380fbf503924a9591bea, Iago accidentally moved fire_fb_write() above the brw_pop_insn_state(), which caused

Re: [Mesa-dev] [PATCH] glsl: Store gl_uniform_driver_storage::format as the actual type

2014-06-11 Thread Tapani
Reviewed-by: Tapani Pälli tapani.pa...@intel.com On 06/11/2014 05:14 AM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com And delete the incorrect comment. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/ir_uniform.h| 7 ++- src/mesa/main/uniforms.c

Re: [Mesa-dev] [PATCH 1/2] i965: Fix Haswell discard regressions since Gen4-5 line AA fix.

2014-06-11 Thread Kenneth Graunke
On Wednesday, June 11, 2014 08:00:13 AM Iago Toral wrote: Urgh, sorry about that :-( I'll be more careful when manipulating the state flags next time. Iago No worries! This kind of stuff happens, and I didn't catch it either. It's just part of development. This is one reason I've been

Re: [Mesa-dev] [PATCH 7/7] i965/build: Add configure option to build i965_dri.so for a single Gen.

2014-06-11 Thread Kenneth Graunke
On Tuesday, June 10, 2014 09:57:23 PM Matt Turner wrote: Allows the compiler to cut dead code and simplify when we know the driver will run on a single platform. Perhaps useful for distributions wanting to ship new hardware support without the risk involved in updating Mesa for existing

Re: [Mesa-dev] [PATCH 7/9] glsl: Make foreach macros usable from C by adding struct keyword.

2014-06-11 Thread Petri Latvala
On 06/10/2014 10:20 PM, Ian Romanick wrote: I did a little more research. Looking at the commit history, it must just be an MSVC thing: commit 78d3cfb5b4fe1dbe052f87458e62cc2be2ecf171 Author: Brian Paul bri...@vmware.com Date: Sun Nov 4 16:43:44 2012 -0700 glsl: remove incorrect

[Mesa-dev] [PATCH 06/18] glsl: Add methods to retrive a varying's name and streamId.

2014-06-11 Thread Iago Toral Quiroga
--- src/glsl/link_varyings.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h index 4e485c3..167363e 100644 --- a/src/glsl/link_varyings.h +++ b/src/glsl/link_varyings.h @@ -112,6 +112,16 @@ public: return

[Mesa-dev] [PATCH 05/18] glsl: Fail to link if inter-stage input/outputs are not assigned to stream 0

2014-06-11 Thread Iago Toral Quiroga
Outputs that are linked to inputs in the next stage must be output to stream 0, otherwise we should fail to link. --- src/glsl/link_varyings.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 9883c0b..0066b4e 100644 ---

[Mesa-dev] [PATCH 07/18] glsl: Two varyings can't write to the same buffer from different streams.

2014-06-11 Thread Iago Toral Quiroga
If this is detected, fail to link. --- src/glsl/link_varyings.cpp | 17 + 1 file changed, 17 insertions(+) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 0066b4e..1a69897 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@

[Mesa-dev] [PATCH 09/18] glsl: Store info about geometry shaders that emit vertices to non-zero streams.

2014-06-11 Thread Iago Toral Quiroga
On Intel hardware when a geometry shader outputs GL_POINTS primitives we only need to emit vertex control bits if it emits vertices to non-zero streams, so use a flag to track this. This flag will be set to TRUE when a geometry shader calls EmitStreamVertex() or EndStreamPrimitive() with a

[Mesa-dev] [PATCH 04/18] glsl: Assign GLSL StreamIds to transform feedback outputs.

2014-06-11 Thread Iago Toral Quiroga
Inter-shader outputs must be on stream 0, which is the default. --- src/glsl/link_varyings.cpp | 12 +--- src/glsl/link_varyings.h | 7 +++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index f765d37..9883c0b

[Mesa-dev] [PATCH 12/18] glsl: Can't emit vertices to non-zero streams with output != GL_POINTS.

2014-06-11 Thread Iago Toral Quiroga
From the ARB_gpu_shader5 spec: Multiple vertex streams are supported only if the output primitive type is declared to be points. A program will fail to link if it contains a geometry shader calling EmitStreamVertex() or EndStreamPrimitive() if its output primitive type is not points.

[Mesa-dev] [PATCH 02/18] mesa: add StreamId information to transform feedback outputs.

2014-06-11 Thread Iago Toral Quiroga
For now initialized to the default stream 0. --- src/glsl/link_varyings.cpp | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 6863298..f765d37 100644 --- a/src/glsl/link_varyings.cpp +++

[Mesa-dev] [PATCH 03/18] i965: Enable transform feedback for streams 0

2014-06-11 Thread Iago Toral Quiroga
Configure hardware to read vertex data for all streams and have all streams write their varyings to the corresponsing output buffers. --- src/mesa/drivers/dri/i965/gen7_sol_state.c | 65 +++--- 1 file changed, 41 insertions(+), 24 deletions(-) diff --git

[Mesa-dev] [PATCH 15/18] glsl: include streamId when reading/printing ir_variable IR.

2014-06-11 Thread Iago Toral Quiroga
From: Samuel Iglesias Gonsalvez sigles...@igalia.com Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com --- src/glsl/ir_print_visitor.cpp | 7 +-- src/glsl/ir_reader.cpp| 6 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 08/18] glsl: Only geometry shader outputs can be associated with non-zero streams.

2014-06-11 Thread Iago Toral Quiroga
This should be ensured by the parser, so assert on that. --- src/glsl/link_varyings.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 1a69897..aed069a 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp

[Mesa-dev] [PATCH 11/18] glsl: Add support for EmitStreamVertex() and EndStreamPrimitive().

2014-06-11 Thread Iago Toral Quiroga
--- src/glsl/ast_function.cpp | 37 +- src/glsl/builtin_functions.cpp | 60 ++ src/glsl/ir.h | 18 - 3 files changed, 103 insertions(+), 12 deletions(-) diff --git a/src/glsl/ast_function.cpp

[Mesa-dev] [PATCH 18/18] mesa: Enable simultaneous transform feedback queries on different streams.

2014-06-11 Thread Iago Toral Quiroga
It should be possible to query the number of primitives written to each individual stream by a geometry shader in a single draw call. For that we need to have up to MAX_VERTEX_STREAM separate query objects. --- src/mesa/main/mtypes.h | 2 +- src/mesa/main/queryobj.c | 17 + 2

[Mesa-dev] [PATCH 16/18] mesa: Include stream information in indexed queries.

2014-06-11 Thread Iago Toral Quiroga
--- src/mesa/main/context.c | 2 +- src/mesa/main/mtypes.h | 1 + src/mesa/main/queryobj.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 8eb426d..82b00eb 100644 --- a/src/mesa/main/context.c +++

[Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-11 Thread Iago Toral Quiroga
This series brings multi-stream support to geometry shaders as defined by ARB_gpu_shader5. It also covers some missing multi-stream functionality from ARB_transform_feedback3. This is combined work from Samuel Iglesias and myself. The series includes both required infrastructure in Mesa and

[Mesa-dev] [PATCH 10/18] i965/gs: Set number of control data bits for stream mode.

2014-06-11 Thread Iago Toral Quiroga
If the geometry shader is indeed using streams then we need 2 control data bits per vertex for the StreamID. If the shader is not using streams then we don't need control data bits. --- src/mesa/drivers/dri/i965/brw_vec4_gs.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff

[Mesa-dev] [PATCH 14/18] glsl: include streamId when reading/printing emit-vertex and end-primitive IR.

2014-06-11 Thread Iago Toral Quiroga
--- src/glsl/ir_print_visitor.cpp | 8 src/glsl/ir_reader.cpp| 18 ++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp index c4a6f9c..23960e0 100644 --- a/src/glsl/ir_print_visitor.cpp

[Mesa-dev] [PATCH 01/18] glsl: Add parsing support for multi-stream output in geometry shaders.

2014-06-11 Thread Iago Toral Quiroga
From: Samuel Iglesias Gonsalvez sigles...@igalia.com This implements parsing requirements for multi-stream support in geometry shaders as defined in ARB_gpu_shader5. Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com --- src/glsl/ast.h | 5 + src/glsl/ast_to_hir.cpp |

[Mesa-dev] [PATCH 17/18] i965: Implement GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN with non-zero streams.

2014-06-11 Thread Iago Toral Quiroga
--- src/mesa/drivers/dri/i965/gen6_queryobj.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen6_queryobj.c b/src/mesa/drivers/dri/i965/gen6_queryobj.c index 06ac645..0cb64ca 100644 --- a/src/mesa/drivers/dri/i965/gen6_queryobj.c +++

[Mesa-dev] [PATCH 13/18] i965/gs: Set control data bits for vertices emitted in stream mode.

2014-06-11 Thread Iago Toral Quiroga
In stream mode we have to set control data bits with the StreamID information for every vertex. --- src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp | 51 ++- src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h | 1 + 2 files changed, 51 insertions(+), 1 deletion(-) diff

[Mesa-dev] [Bug 79907] New: Mesa 10.2.1 --enable-vdpau default=auto broken

2014-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79907 Priority: medium Bug ID: 79907 Assignee: mesa-dev@lists.freedesktop.org Summary: Mesa 10.2.1 --enable-vdpau default=auto broken Severity: normal Classification: Unclassified

Re: [Mesa-dev] [PATCH 01/18] glsl: Add parsing support for multi-stream output in geometry shaders.

2014-06-11 Thread Chris Forbes
On Wed, Jun 11, 2014 at 7:49 PM, Iago Toral Quiroga ito...@igalia.com wrote: @@ -509,6 +509,8 @@ struct ast_type_qualifier { /** \name Layout qualifiers for GL_ARB_gpu_shader5 */ /** \{ */ unsigned invocations:1; + unsigned streamId:1; /* Has streamId

Re: [Mesa-dev] [PATCH 05/18] glsl: Fail to link if inter-stage input/outputs are not assigned to stream 0

2014-06-11 Thread Chris Forbes
This would appear to prohibit the use of multiple streams in separable programs entirely. I don't think that's the right thing. On Wed, Jun 11, 2014 at 7:49 PM, Iago Toral Quiroga ito...@igalia.com wrote: Outputs that are linked to inputs in the next stage must be output to stream 0,

Re: [Mesa-dev] [PATCH 09/18] glsl: Store info about geometry shaders that emit vertices to non-zero streams.

2014-06-11 Thread Chris Forbes
I think you need to set this if *any* geometry shader in the program tries to use a nonzero stream. Currently it looks like the last shader wins. On Wed, Jun 11, 2014 at 7:49 PM, Iago Toral Quiroga ito...@igalia.com wrote: On Intel hardware when a geometry shader outputs GL_POINTS primitives we

Re: [Mesa-dev] [PATCH 11/18] glsl: Add support for EmitStreamVertex() and EndStreamPrimitive().

2014-06-11 Thread Chris Forbes
This is pretty weird. We should be able to generate a normal builtin function body here which consists of just the ir_emit_vertex, passing the stream parameter to it. This would then get inlined like any other function leaving a bare ir_emit_vertex / ir_end_primitive with a constant operand. If

Re: [Mesa-dev] [PATCH 16/18] mesa: Include stream information in indexed queries.

2014-06-11 Thread Chris Forbes
On Wed, Jun 11, 2014 at 7:49 PM, Iago Toral Quiroga ito...@igalia.com wrote: --- src/mesa/main/context.c | 2 +- src/mesa/main/mtypes.h | 1 + src/mesa/main/queryobj.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c

Re: [Mesa-dev] [PATCH 18/18] mesa: Enable simultaneous transform feedback queries on different streams.

2014-06-11 Thread Chris Forbes
On Wed, Jun 11, 2014 at 7:49 PM, Iago Toral Quiroga ito...@igalia.com wrote: It should be possible to query the number of primitives written to each individual stream by a geometry shader in a single draw call. For that we need to have up to MAX_VERTEX_STREAM separate query objects. ---

Re: [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-11 Thread Chris Forbes
I sent comments on patches 1, 3, 5, 9, 11, 16, 18 Patches 2, 4, 6-8, 10, 12-15, 17 are: Reviewed-by: Chris Forbes chr...@ijw.co.nz You should also include a patch to docs/GL3.txt marking off this subfeature for i965 :) Do you have a bunch of piglits which exercise all the tricky corners of

Re: [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-11 Thread Iago Toral
Hi Chris, thanks for the quick review! On Wed, 2014-06-11 at 21:45 +1200, Chris Forbes wrote: I sent comments on patches 1, 3, 5, 9, 11, 16, 18 We will look into these. Patches 2, 4, 6-8, 10, 12-15, 17 are: Reviewed-by: Chris Forbes chr...@ijw.co.nz You should also include a patch to

Re: [Mesa-dev] [PATCH 05/18] glsl: Fail to link if inter-stage input/outputs are not assigned to stream 0

2014-06-11 Thread Iago Toral
I am a bit confused here: Reading the code it looks like input_var should be NULL if there is no consumer stage. In that case, if this is a separable program and there is no consumer, then input_var must be NULL too, in which case the linker_error would never take place. If input_var is not NULL

[Mesa-dev] [Bug 79885] commit b52a530 (gallium/egl: st_profiles are build time decision, treat them as such) broke egl

2014-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79885 Marc Dietrich marvi...@gmx.de changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH] glsl: fix link error with const initializers for global variable

2014-06-11 Thread Samuel Iglesias Gonsalvez
Piglit report an error in glsl-link-initializer-03 test when a shader without an initializer is linked in two different programs with shaders that have differing initializers. Linking with the first will modify the shader, and linking with the second will fail. To make it work, the patch detects

Re: [Mesa-dev] Request for information on Radeon

2014-06-11 Thread Aditya Avinash
Hi, Thank you very much. On Tue, Jun 10, 2014 at 5:28 PM, Marek Olšák mar...@gmail.com wrote: On Tue, Jun 10, 2014 at 10:45 PM, Aditya Avinash adityaavina...@gmail.com wrote: Hi, Thank you very much!! On Mon, Jun 9, 2014 at 10:19 AM, Marek Olšák mar...@gmail.com wrote: This is

[Mesa-dev] [PATCH] r600g/compute: solve a bug introduced by 2e01b8b440c1402c88a2755d89f40292e1f36ce5

2014-06-11 Thread Bruno Jiménez
That commit made possible that the items could be one just after the other when their size was a multiple of ITEM_ALIGNMENT. But compute_memory_prealloc_chunk still looked to leave a gap between items. Resulting in that we got an infinite loop when trying to add an item which would left no space

[Mesa-dev] [pull 10.2] backport more freedreno fixes plus one xa fix

2014-06-11 Thread Rob Clark
Backport last round of piglit fixes to 10.2. These have been soaking on master for a couple weeks, and I've not found any regression yet. And they get us from 80% pass up to nearly 83% pass, so a bit more progress in the right direction. (For reference, at end of Feb we were at 50% pass ;-))

Re: [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-11 Thread Jordan Justen
On Wed, Jun 11, 2014 at 2:49 AM, Iago Toral ito...@igalia.com wrote: Hi Chris, thanks for the quick review! On Wed, 2014-06-11 at 21:45 +1200, Chris Forbes wrote: I sent comments on patches 1, 3, 5, 9, 11, 16, 18 We will look into these. Patches 2, 4, 6-8, 10, 12-15, 17 are:

Re: [Mesa-dev] Debugging into Mesa Driver

2014-06-11 Thread Roshan Chaudhari
Thanks a lot for your help.! CFLAGS='-O0 -ggdb3' CXXFLAGS='-O0 -ggdb3' ./autogen.sh --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --with-gallium-drivers=svga --with-dri-drivers= --enable-xa --disable-dri3; make; did the trick. On Thu, Jun 5, 2014 at 9:01 AM, Ian Romanick i...@freedesktop.org

Re: [Mesa-dev] [Mesa-stable] [PATCH 13/15] mesa: Add gles3 error condition for GL_RGBA10_A2 buffer format in glCopyTexImage*()

2014-06-11 Thread Anuj Phogat
Adding mesa-dev in CC. On Wed, Jun 11, 2014 at 10:39 AM, Courtney Goeltzenleuchter court...@lunarg.com wrote: On Fri, Jun 6, 2014 at 5:57 PM, Anuj Phogat anuj.pho...@gmail.com wrote: Fixes many failures in gles3 Khronos CTS test: packed_pixels Khronos bug# 9807 Cc:

Re: [Mesa-dev] [PATCH 12/15] mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*()

2014-06-11 Thread Anuj Phogat
Adding mesa-dev to the conversation. On Wed, Jun 11, 2014 at 10:52 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Wed, Jun 11, 2014 at 10:28 AM, Courtney Goeltzenleuchter court...@lunarg.com wrote: On Fri, Jun 6, 2014 at 5:57 PM, Anuj Phogat anuj.pho...@gmail.com wrote: Fixes many

Re: [Mesa-dev] [PATCH 12/15] mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*()

2014-06-11 Thread Courtney Goeltzenleuchter
Very good. I thought there might be something limiting the inputs but wasn't immediately obvious. On Wed, Jun 11, 2014 at 12:09 PM, Anuj Phogat anuj.pho...@gmail.com wrote: Adding mesa-dev to the conversation. On Wed, Jun 11, 2014 at 10:52 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On

Re: [Mesa-dev] [PATCH 00/19] i965/fs: load_payload on Gen7+.

2014-06-11 Thread Connor Abbott
On Tue, Jun 10, 2014 at 3:34 PM, Matt Turner matts...@gmail.com wrote: On Wed, May 28, 2014 at 4:44 PM, Connor Abbott cwabbo...@gmail.com wrote: On Tue, May 27, 2014 at 9:47 PM, Matt Turner matts...@gmail.com wrote: Here's a respin of my load_payload series from mid-April with some feedback

[Mesa-dev] [PATCH 6.5/15] mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats

2014-06-11 Thread Anuj Phogat
GL_TEXTURE_CUBE_MAP is an allowed texture target in glTexStorage2D() and is allowed to be used (like GL_TEXTURE_2D) with compressed internal formats. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Anuj Phogat anuj.pho...@gmail.com --- src/mesa/main/teximage.c | 1 + 1 file changed, 1

[Mesa-dev] [PATCH] i965: Fix disassembly of BLORP clear programs.

2014-06-11 Thread Kenneth Graunke
Too many levels of indirection. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp

Re: [Mesa-dev] [PATCH] i965: Fix disassembly of BLORP clear programs.

2014-06-11 Thread Matt Turner
Reviewed-by: Matt Turner matts...@gmail.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 05/18] glsl: Fail to link if inter-stage input/outputs are not assigned to stream 0

2014-06-11 Thread Chris Forbes
I had misread it -- yes, this looks correct. On Thu, Jun 12, 2014 at 12:02 AM, Iago Toral ito...@igalia.com wrote: I am a bit confused here: Reading the code it looks like input_var should be NULL if there is no consumer stage. In that case, if this is a separable program and there is no

Re: [Mesa-dev] [PATCH 6.5/15] mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats

2014-06-11 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Wed, Jun 11, 2014 at 9:02 PM, Anuj Phogat anuj.pho...@gmail.com wrote: GL_TEXTURE_CUBE_MAP is an allowed texture target in glTexStorage2D() and is allowed to be used (like GL_TEXTURE_2D) with compressed internal formats. Cc:

Re: [Mesa-dev] [PATCH] egl/gallium: Set defines for supported APIs when using automake

2014-06-11 Thread Emil Velikov
On 10/06/14 16:56, Niels Ole Salscheider wrote: On Tuesday 10 June 2014, 16:18:56, Emil Velikov wrote: On 10/06/14 15:17, Niels Ole Salscheider wrote: This fixes automake builds which are broken since b52a530ce2aada1967bc8fefa83ab53e6a737dae. Not sure what I was smoking with the above

[Mesa-dev] [Bug 79688] [dri3] Latest git breaks PRIME Offloading to Nouveau GPU

2014-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79688 Eugene Shalygin eugene.shalygin+bugzilla@gmail.com changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH] meta: save and restore swizzle for _GenerateMipmap

2014-06-11 Thread Robert Bragg
On Tue, Jun 10, 2014 at 6:00 PM, Ian Romanick i...@freedesktop.org wrote: On 06/09/2014 07:48 AM, Robert Bragg wrote: This makes sure to use a no-op swizzle while iteratively rendering each level of a mipmap otherwise we may loose components and effectively apply the swizzle twice by the time

Re: [Mesa-dev] [PATCH 4/7] i965: Compile out gen[467]_atoms lists based on STATIC_GEN.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 09:57:20PM -0700, Matt Turner wrote: From: Kenneth Graunke kenn...@whitecape.org This allows GCC (at least with LTO) to eliminate more unused code, such as brw_clip* on Gen6+. If we compile with STATIC_GEN, then the if-else ladder in brw_init_state() turns into just

[Mesa-dev] [PATCH v2] egl/gallium: Set defines for supported APIs when using automake

2014-06-11 Thread Niels Ole Salscheider
This fixes automake builds which are broken since b52a530ce2aada1967bc8fefa83ab53e6a737dae. v2: This patch also adds the FEATURE_* defines back to targets/egl-static for Android and Scons that have been removed in the mentioned commit. Signed-off-by: Niels Ole Salscheider

Re: [Mesa-dev] [PATCH 1/7] mesa: Make STRINGIFY evaluate macros before stringifying.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 09:57:17PM -0700, Matt Turner wrote: Except patch 4, series Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/main/macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index

Re: [Mesa-dev] [PATCH 1/3] configure.ac: Remove single quotes to fix syntax highlighting.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 07:37:42PM -0700, Matt Turner wrote: Please stop adding them. Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index eaca378..c6664b9 100644 ---

Re: [Mesa-dev] [PATCH 2/3] configure.ac: Alphabetize AC_CONFIG_FILES.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 07:37:43PM -0700, Matt Turner wrote: This isn't supposed to be difficult. Snarky-snark. Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- configure.ac | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac

Re: [Mesa-dev] [PATCH 3/3] configure.ac: Simplify DUSE_EXTERNAL_DXTN_LIB logic.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 07:37:44PM -0700, Matt Turner wrote: Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- configure.ac | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 17e9e9c..4b27455 100644 --- a/configure.ac

Re: [Mesa-dev] [PATCH] gbm: Remove 64x64 restriction from GBM_BO_USE_CURSOR

2014-06-11 Thread Kristian Høgsberg
On Wed, Jun 11, 2014 at 12:59:21PM +0900, Michel Dänzer wrote: From: Michel Dänzer michel.daen...@amd.com GBM_BO_USE_CURSOR_64X64 is kept so that existing users of GBM continue to build, but it no longer rejects widths or heights other than 64. Bugzilla:

Re: [Mesa-dev] [PATCH] mesa: glx: Reduce error log level

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 11:21:26AM -0600, Courtney Goeltzenleuchter wrote: The code that parses LIBGL_DRIVERS_PATH was printing an error for every attempted dlopen. It's not an error to have to check multiple items in the path, only an error if no suitable library is found. Reduced the load

[Mesa-dev] [PATCH] configure: correctly autodetect xvmc/vdpau/omx

2014-06-11 Thread Emil Velikov
Commit e62b7d38a1d (configure: autodetect video state-trackers when non swrast driver is present) added a check that caused the autodetection to be omitted when we have the swrast gallium driver. Whereas it should have skipped the VL targets when only swrast was selected. Bugzilla:

[Mesa-dev] [Bug 79907] Mesa 10.2.1 --enable-vdpau default=auto broken

2014-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79907 --- Comment #1 from Emil Velikov emil.l.veli...@gmail.com --- Thanks for reporting, a silly thinko on my behalf is causing this behaviour. Can you confirm that the patch [1] fixes the issue on your system ? [1]

Re: [Mesa-dev] [PATCH 1/3] configure.ac: Remove single quotes to fix syntax highlighting.

2014-06-11 Thread Emil Velikov
On 11/06/14 03:37, Matt Turner wrote: Please stop adding them. Believe I contributed the latter one :) The series looks good imho Reviewed-by: Emil Velikov emil.l.veli...@gmail.com --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac

Re: [Mesa-dev] [PATCH 4/7] i965: Compile out gen[467]_atoms lists based on STATIC_GEN.

2014-06-11 Thread Matt Turner
On Wed, Jun 11, 2014 at 2:12 PM, Kristian Høgsberg hoegsb...@gmail.com wrote: On Tue, Jun 10, 2014 at 09:57:20PM -0700, Matt Turner wrote: From: Kenneth Graunke kenn...@whitecape.org This allows GCC (at least with LTO) to eliminate more unused code, such as brw_clip* on Gen6+. If we compile

Re: [Mesa-dev] [PATCH 0/9] glsl: Add C API to exec_node/exec_list.

2014-06-11 Thread Kristian Høgsberg
On Tue, Jun 10, 2014 at 11:00:43AM -0700, Matt Turner wrote: Our most frequently used list implementation was only usable from C by manipulating the members of the structs. This series adds a C API, wraps the C API with the C++ member functions (so no change for C++ code), makes the

Re: [Mesa-dev] [PATCH 01/18] glsl: Add parsing support for multi-stream output in geometry shaders.

2014-06-11 Thread Ian Romanick
On 06/11/2014 01:40 AM, Chris Forbes wrote: On Wed, Jun 11, 2014 at 7:49 PM, Iago Toral Quiroga ito...@igalia.com wrote: @@ -509,6 +509,8 @@ struct ast_type_qualifier { /** \name Layout qualifiers for GL_ARB_gpu_shader5 */ /** \{ */ unsigned invocations:1; +

Re: [Mesa-dev] [PATCH 01/18] glsl: Add parsing support for multi-stream output in geometry shaders.

2014-06-11 Thread Ian Romanick
On 06/11/2014 12:49 AM, Iago Toral Quiroga wrote: From: Samuel Iglesias Gonsalvez sigles...@igalia.com This implements parsing requirements for multi-stream support in geometry shaders as defined in ARB_gpu_shader5. Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com ---

[Mesa-dev] [PATCH 1/2] R600/SI: add Gather4 intrinsics (v2)

2014-06-11 Thread Marek Olšák
From: Marek Olšák marek.ol...@amd.com This adds a new type of intrinsic and SDNode: SampleRaw. All fields of the MIMG opcodes are exposed and can be set by Mesa, even DMASK. All GATHER4 variants are added and there are a lot of them. v2: document DMASK behavior ---

[Mesa-dev] [PATCH 2/2] R600/SI: add tests for gather4

2014-06-11 Thread Marek Olšák
From: Marek Olšák marek.ol...@amd.com --- test/CodeGen/R600/llvm.SI.gather4.ll | 508 +++ 1 file changed, 508 insertions(+) create mode 100644 test/CodeGen/R600/llvm.SI.gather4.ll diff --git a/test/CodeGen/R600/llvm.SI.gather4.ll

Re: [Mesa-dev] [PATCH 02/15] glsl: Do not allow undefining the built-in macros

2014-06-11 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: Fixes piglit tests in spec/glsl-es-3.00/compile: undef-__FILE__.vert undef-GL_ES.vert undef-__LINE__.vert undef-__VERSION__.vert I see the code that will fix __FILE__, __LINE__, and __VERSION__, but not GL_ES. Should that line be dropped from the

[Mesa-dev] [PATCH] Add test to ensure compiler won't allow #undef for some builtins

2014-06-11 Thread Carl Worth
Currently verifying that an #undef of __FILE__, __LINE__, or __VERSION__ will generate an error. --- src/glsl/glcpp/tests/120-undef-builtin.c | 3 +++ src/glsl/glcpp/tests/120-undef-builtin.c.expected | 7 +++ 2 files changed, 10 insertions(+) create mode 100644

Re: [Mesa-dev] [RFC 00/20] shader compiler cache

2014-06-11 Thread Ian Romanick
I've been looking at this is a bit since last week, and I have some concerns about the overall way things are structured. There are also almost no checks that the values being de-serialized are valid. What happens if an ir_expression::operation is 0xDEADBEEF? I think I know where we want to be

Re: [Mesa-dev] [PATCH 02/15] glsl: Do not allow undefining the built-in macros

2014-06-11 Thread Anuj Phogat
On Wed, Jun 11, 2014 at 5:32 PM, Carl Worth cwo...@cworth.org wrote: Anuj Phogat anuj.pho...@gmail.com writes: Fixes piglit tests in spec/glsl-es-3.00/compile: undef-__FILE__.vert undef-GL_ES.vert undef-__LINE__.vert undef-__VERSION__.vert I see the code that will fix __FILE__, __LINE__,

Re: [Mesa-dev] [Mesa-stable] [PATCH 03/15] glsl: Fix preprocessor error condition for macro redefinition

2014-06-11 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: This patch specifically fixes redefinition condition for white space changes. #define and #undef functionality in GLSL follows the standard for C++ preprocessors for macro definitions. Thanks! That fix took some close reading of the specification, and

[Mesa-dev] [Bug 54372] GLX_INTEL_swap_event crashes driver when swapping window buffers

2014-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54372 --- Comment #22 from danm...@gmail.com --- Ok, so this patch fixes glxUseXFont for glxwindows. Any idea when these patches will go in? diff --git a/src/glx/xfont.c b/src/glx/xfont.c index 316c585..3c34b1d 100644 --- a/src/glx/xfont.c +++

[Mesa-dev] [PATCH] glsl: Fixup glcpp tests for redefining a macro with whitespace changes.

2014-06-11 Thread Carl Worth
Previously, the test suite was expecting the compiler to allow a redefintion of a macro with whitespace added, but gcc is more strict and allows only for changes in the amounts of whitespace, (but insists that whitespace exist or not in exactly the same places). See:

Re: [Mesa-dev] [Mesa-stable] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-11 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: #if 0 #else garbage #endif The Khronos test contains two tokens after #else. I'm not sure if that is the difference or not. Khronos is testing many different cases. Failing case tests: #if 1 #else garbage #endif It is the #if 1 that causes the

Re: [Mesa-dev] [Mesa-stable] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-11 Thread Anuj Phogat
On Wed, Jun 11, 2014 at 6:51 PM, Carl Worth cwo...@cworth.org wrote: Anuj Phogat anuj.pho...@gmail.com writes: #if 0 #else garbage #endif The Khronos test contains two tokens after #else. I'm not sure if that is the difference or not. Khronos is testing many different cases.

Re: [Mesa-dev] [PATCH 02/15] glsl: Do not allow undefining the built-in macros

2014-06-11 Thread Carl Worth
Anuj Phogat anuj.pho...@gmail.com writes: Following changes in above code will also fix the GL_ES macro case: - || strcmp(__VERSION__, $3) == 0) + || strcmp(__VERSION__, $3) == 0 + || (parser-is_gles strcmp(GL_ES, $3) == 0)) Great. Do

Re: [Mesa-dev] [Mesa-stable] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-11 Thread Carl Worth
Carl Worth cwo...@cworth.org writes: I'll poke around at the existing code to see why the garbage after #else is caught with #if 0, but not with #if 1. The difference is fairly straightforward, but it's going to be tricky to fix. Currently, the parser has a production for HASH_ELSE and NEWLINE

[Mesa-dev] [PATCH] glsl: Properly lex extra tokens when handling # directives.

2014-06-11 Thread Kenneth Graunke
Without this, in the PP state, we would hit Flex's default rule, which prints tokens to stdout, rather than returning them as tokens. This manifested as a weird bug where shaders with semicolons after extension directives, such as: #extension GL_foo_bar : enable; would print semicolons to

Re: [Mesa-dev] [PATCH] i965: Actually use the Mesa IR optimizer.

2014-06-11 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: On 06/09/2014 12:36 AM, Kenneth Graunke wrote: We have this wonderful thing called an optimizer---maybe we should consider calling it? That's really weird. The *only* place this is called is in ir_to_mesa. It seems like the assember should just

Re: [Mesa-dev] [RFC 00/20] shader compiler cache

2014-06-11 Thread Tapani Pälli
Hi; On 06/02/2014 03:05 PM, Tapani Pälli wrote: Hello; This series provides a disk cache for the shader compiler and is used to 'skip glLinkProgram' like GL_ARB_get_program_binary does but under the hood without api for the client. With the series I get 50% improvement for L4D2 startup