Re: [Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-27 Thread Ian Romanick
On 08/26/2015 10:11 PM, Jason Ekstrand wrote: > On Wed, Aug 26, 2015 at 10:20 AM, Ian Romanick wrote: >> From: Ian Romanick >> >> Signed-off-by: Ian Romanick >> --- >> src/glsl/nir/nir_constant_expressions.py | 13 + >> 1 file changed, 5 i

Re: [Mesa-dev] [PATCH 09/17] nir: Fix wonkey indentation in generated code

2015-08-27 Thread Ian Romanick
on > > On Wed, Aug 26, 2015 at 10:19 AM, Ian Romanick wrote: >> From: Ian Romanick >> >> Signed-off-by: Ian Romanick >> --- >> src/glsl/nir/nir_constant_expressions.py | 40 >> >> 1 file changed, 20 insertions(+),

Re: [Mesa-dev] [PATCH 11/17] nir: Trivial clean ups in the generated nir_constant_expressions.c

2015-08-31 Thread Ian Romanick
On 08/27/2015 06:41 AM, Jason Ekstrand wrote: > > On Aug 27, 2015 4:08 AM, "Ian Romanick" <mailto:i...@freedesktop.org>> wrote: >> >> On 08/26/2015 10:11 PM, Jason Ekstrand wrote: >> > On Wed, Aug 26, 2015 at 10:20 AM, Ian Romanick <mailto:i...@

Re: [Mesa-dev] [PATCH] i965: Don't check for draw-time errors that cannot occur in core profile

2015-08-31 Thread Ian Romanick
ping. :) On 08/10/2015 11:48 AM, Matt Turner wrote: > On Mon, Aug 10, 2015 at 10:12 AM, Ian Romanick wrote: >> From: Ian Romanick >> >> On many CPU-limited applications, this is *the* hot path. The idea is >> to generate per-API versions of brw_draw_prims that elide

Re: [Mesa-dev] [PATCH] i965: Don't check for draw-time errors that cannot occur in core profile

2015-08-31 Thread Ian Romanick
On 08/31/2015 04:21 PM, Ilia Mirkin wrote: > On Mon, Aug 31, 2015 at 7:06 PM, Ian Romanick wrote: >> ping. :) >> >> On 08/10/2015 11:48 AM, Matt Turner wrote: >>> On Mon, Aug 10, 2015 at 10:12 AM, Ian Romanick wrote: >>>> From: Ian Romanick >>&

[Mesa-dev] [PATCH 2/2] mesa: Don't allow wrong type setters for matrix uniforms

2015-08-31 Thread Ian Romanick
From: Ian Romanick Previously we would allow glUniformMatrix4fv on a dmat4 and glUniformMatrix4dv on a mat4. Both are illegal. That later also overwrites the storage for the mat4 and causes bad things to happen. Should fix the (new) arb_gpu_shader_fp64-wrong-type-setter piglit test. Signed

[Mesa-dev] [PATCH 1/2] mesa: Pass the type to _mesa_uniform_matrix as a glsl_base_type

2015-08-31 Thread Ian Romanick
From: Ian Romanick This matches _mesa_uniform, and it enables the bug fix in the next patch. Signed-off-by: Ian Romanick Cc: Dave Airlie Cc: "10.6 11.0 " --- src/mesa/main/uniform_query.cpp | 10 +++--- src/mesa/main/uniforms.c| 72 -

[Mesa-dev] [PATCH 08/15] glsl/standalone: Enable GLSL 4.00 through 4.50

2016-09-15 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/compiler/glsl/standalone.cpp | 12 1 file changed, 12 insertions(+) diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp index a7e6254..6b1c2ce 100644 --- a/src/compiler/glsl/standalone.cpp +++ b

[Mesa-dev] [PATCH 01/15] glsl: Fix cut-and-paste bug in hierarchical visitor ir_expression::accept

2016-09-15 Thread Ian Romanick
From: Ian Romanick At this point in the code, s must be visit_continue. If the child returned visit_stop, visit_stop is the only correct thing to return. Found by inspection. Signed-off-by: Ian Romanick Cc: mesa-sta...@lists.freedesktop.org --- src/compiler/glsl/ir_hv_accept.cpp | 2 +- 1

[Mesa-dev] [PATCH 10/15] glsl/standalone: Optimize dead variable declarations

2016-09-15 Thread Ian Romanick
From: Ian Romanick We didn't bother with this in the regular compiler because it doesn't change the generated code. In the stand-alone compiler, this can clutter the output with useless variables. It's especially bad after functions are inlined but the foo_retval declarations

[Mesa-dev] [PATCH 12/15] glsl: Generate strings that are the enum names without the ir_*op_ prefix

2016-09-15 Thread Ian Romanick
From: Ian Romanick For many expressions, this is different from the printable name. The printable name for ir_binop_add is "+", but we want "add". This is needed for ir_builder_print_visitor. Signed-off-by: Ian Romanick --- src/compiler/glsl/ir.h

[Mesa-dev] [PATCH 15/15] glsl/standalone: Add the ability to generate ir_builder code

2016-09-15 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/compiler/glsl/main.cpp | 1 + src/compiler/glsl/standalone.cpp | 12 src/compiler/glsl/standalone.h | 1 + 3 files changed, 14 insertions(+) diff --git a/src/compiler/glsl/main.cpp b/src/compiler/glsl/main.cpp index

[Mesa-dev] [PATCH 02/15] glsl: Update function parameter documentation for do_common_optimization

2016-09-15 Thread Ian Romanick
From: Ian Romanick max_unroll_iterations was moved into options a long, long time ago. Signed-off-by: Ian Romanick --- src/compiler/glsl/glsl_parser_extras.cpp | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler

[Mesa-dev] [PATCH 05/15] glsl: Do some "post link" optimizations on just built-in functions

2016-09-15 Thread Ian Romanick
From: Ian Romanick This enables the support added by the previous two patches in do_common_optimization. This will be used by the stand-alone compiler. Signed-off-by: Ian Romanick --- src/compiler/glsl/glsl_parser_extras.cpp | 12 src/compiler/glsl/ir_optimization.h

[Mesa-dev] [PATCH 09/15] glsl/standalone: Optimize add-of-neg to subtract

2016-09-15 Thread Ian Romanick
From: Ian Romanick This just makes the output of the standalone compiler a little more compact. Signed-off-by: Ian Romanick --- src/compiler/glsl/standalone.cpp | 34 ++ 1 file changed, 34 insertions(+) diff --git a/src/compiler/glsl/standalone.cpp b/src

[Mesa-dev] [PATCH 00/15] Compile GLSL to ir_builder

2016-09-15 Thread Ian Romanick
This series makes the stand-alone GLSL compiler useful for something. It adds an option to generate C++ code that uses ir_builder to recreate the compiled GLSL shader. I intend to use this for various lowering code for GL_ARB_gpu_shader_int64 and GL_ARB_gpu_shader_fp64 (on platforms that don't act

[Mesa-dev] [PATCH 11/15] glsl/standalone: Enable par-linking

2016-09-15 Thread Ian Romanick
From: Ian Romanick If the user did not request full linking, link the shader with the built-in functions, inline them, and eliminate them. Previous to this you'd see all these calls to "dot" and "max" in the output. This prevented a lot of expected optimizations and c

[Mesa-dev] [PATCH 07/15] glsl/standalone: Use API_OPENGL_CORE if the GLSL version is >= 1.40

2016-09-15 Thread Ian Romanick
From: Ian Romanick Otherwise extensions to 1.40 that are only for core profile won't work. Signed-off-by: Ian Romanick --- src/compiler/glsl/standalone.cpp | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler

[Mesa-dev] [PATCH 04/15] glsl: Modify dead function removal to only operate on built-in functions

2016-09-15 Thread Ian Romanick
From: Ian Romanick This will be used in the stand-alone compiler. Signed-off-by: Ian Romanick --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/ir_optimization.h | 2 +- src/compiler/glsl/opt_dead_functions.cpp | 11 +++ src/compiler/glsl/test_optpass.cpp

[Mesa-dev] [PATCH 13/15] glsl: Add bit_xor builder

2016-09-15 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/compiler/glsl/ir_builder.cpp | 6 ++ src/compiler/glsl/ir_builder.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/compiler/glsl/ir_builder.cpp b/src/compiler/glsl/ir_builder.cpp index d68647f..f430100 100644 --- a/src

[Mesa-dev] [PATCH 14/15] glsl: Add a C++ code generator that uses ir_builder to rebuild a program

2016-09-15 Thread Ian Romanick
From: Ian Romanick This is only in libstandalone currently because it will only be used in the stand-alone compiler. Signed-off-by: Ian Romanick --- src/compiler/Makefile.sources | 2 + src/compiler/glsl/ir_builder_print_visitor.cpp | 753 + src

[Mesa-dev] [PATCH 03/15] glsl: Modify function inlining to only operate on built-in functions

2016-09-15 Thread Ian Romanick
From: Ian Romanick This will be used in the stand-alone compiler. Signed-off-by: Ian Romanick --- src/compiler/glsl/glsl_parser_extras.cpp| 2 +- src/compiler/glsl/ir_optimization.h | 2 +- src/compiler/glsl/opt_function_inlining.cpp | 12 +++- src/compiler/glsl

[Mesa-dev] [PATCH 06/15] glsl/linker: Allow link_intrastage_shaders when there is no main()

2016-09-15 Thread Ian Romanick
From: Ian Romanick This enables a sort of par-linking. The primary use for this feature is resolving built-in functions in the stand-alone compiler. Signed-off-by: Ian Romanick --- src/compiler/glsl/linker.cpp | 28 +--- src/compiler/glsl/linker.h | 9 + 2

Re: [Mesa-dev] [PATCH 00/15] Compile GLSL to ir_builder

2016-09-15 Thread Ian Romanick
On 09/15/2016 03:12 PM, Ian Romanick wrote: > This series makes the stand-alone GLSL compiler useful for something. > It adds an option to generate C++ code that uses ir_builder to recreate > the compiled GLSL shader. I intend to use this for various lowering > code for GL_ARB_gpu_

Re: [Mesa-dev] [PATCH 0/9] radeonsi: ARB_query_buffer_object implementation

2016-09-16 Thread Ian Romanick
On 09/16/2016 06:57 AM, Nicolai Hähnle wrote: > Hi all, > > as the title says. The implementation uses a compute shader to summarize > data from the query buffers. As long as only one query buffer is in flight > (the normal case), that compute shader is launched exactly once, on a > single thread.

Re: [Mesa-dev] [PATCH 0/9] gallium/tgsi: 64-bit integer foundations

2016-09-16 Thread Ian Romanick
On 09/16/2016 06:48 AM, Nicolai Hähnle wrote: > Hi all, > > this is really Dave's work, with a few touch-ups from me that I think make > sense. I've kept those separate with the intention to squash. I'd like to > land these in master even before the main ARB_gpu_shader_int64 stuff lands > (that is

Re: [Mesa-dev] [PATCH] nir: Allow opt_peephole_sel to be more aggressive in flattening IFs.

2016-09-21 Thread Ian Romanick
Reviewed-by: Ian Romanick On 09/10/2016 12:43 AM, Eric Anholt wrote: > VC4 was running into a major performance regression from enabling control > flow in the glmark2 conditionals test, because of short if statements > containing an ffract. > > This pass seems like it was was t

Re: [Mesa-dev] [PATCH 0/4] glsl: Builtins, now!

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > Hello, > > This series reworks the GLSL compiler to inline built-in functions > immediately, at compile time, rather than importing prototypes and > linking against an extra shader later on. > > Without this, compile time optimizations are nearly u

Re: [Mesa-dev] [PATCH 4/4] glsl: Delete linker stuff relating to built-in functions.

2016-09-22 Thread Ian Romanick
t. Pending patch 2, this patch is Reviewed-by: Ian Romanick > Signed-off-by: Kenneth Graunke > --- > src/compiler/glsl/link_functions.cpp | 32 +++ > src/compiler/glsl/linker.cpp | 42 > +++- > 2 files chan

Re: [Mesa-dev] [PATCH 3/4] glsl: Delete ftransform support from builtin_functions.cpp.

2016-09-22 Thread Ian Romanick
Pending patch 2, this patch is Reviewed-by: Ian Romanick On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > This is now handled directly by ast_function.cpp. > > Signed-off-by: Kenneth Graunke > --- > src/compiler/glsl/builtin_functions.cpp | 30 -- &g

Re: [Mesa-dev] [PATCH 00/15] Compile GLSL to ir_builder

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:29 PM, Kenneth Graunke wrote: > Hi Ian, > > I just sent out a four patch series that I think will accomplish a lot > of what you were trying to do with the "do post-link optimizations, but > only for built-ins" patches. But it deletes code. > > https://lists.freedesktop.org/arch

Re: [Mesa-dev] [PATCH 2/4] glsl: Immediately inline built-ins rather than generating calls.

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > In the past, we imported the prototypes of built-in functions, generated > calls to those, and waited until link time to resolve the calls and > import the actual code for the built-in functions. I thought part of the reason we did this was to accou

Re: [Mesa-dev] [PATCH 1/4] glsl: Check TCS barrier restrictions at ast_to_hir time, not link time.

2016-09-22 Thread Ian Romanick
This is much simpler. This patch is Reviewed-by: Ian Romanick On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > We want to check prior to optimization - otherwise we might fail to > detect cases where barrier() is in control flow which is always taken > (and therefore gets optim

Re: [Mesa-dev] [PATCH 2/4] glsl: Immediately inline built-ins rather than generating calls.

2016-09-23 Thread Ian Romanick
On 09/22/2016 06:54 PM, Kenneth Graunke wrote: > On Thursday, September 22, 2016 1:54:44 PM PDT Ian Romanick wrote: >> On 09/21/2016 10:20 PM, Kenneth Graunke wrote: >>> In the past, we imported the prototypes of built-in functions, generated >>> calls to those, an

Re: [Mesa-dev] [RFC] egl: stop claiming support for pbuffer + msaa (RFC)

2016-09-27 Thread Ian Romanick
On 09/26/2016 12:41 AM, Tapani Pälli wrote: > This fixes a crash in egl-create-msaa-pbuffer-surface Piglit test > and same crash in many dEQP EGL tests. > > I also found that some Qt example did a workaround because of this > crash: https://bugreports.qt.io/browse/QTBUG-47509 Eh... I would have t

Re: [Mesa-dev] [PATCH] glsl: optimize copy_propagation_elements pass

2016-09-28 Thread Ian Romanick
On 09/16/2016 06:21 PM, Tapani Pälli wrote: > Changes make copy_propagation_elements pass faster, reducing link > time spent in test case of bug 94477. Does not fix the actual issue > but brings down the total time. No regressions seen in CI. How does this affect the time of a full shader-db run?

Re: [Mesa-dev] [PATCH] glsl: optimize copy_propagation_elements pass

2016-09-29 Thread Ian Romanick
On 09/29/2016 12:17 AM, Tapani Pälli wrote: > > On 09/28/2016 06:14 PM, Ian Romanick wrote: >> On 09/16/2016 06:21 PM, Tapani Pälli wrote: >>> Changes make copy_propagation_elements pass faster, reducing link >>> time spent in test case of bug 94477. Does not fix t

Re: [Mesa-dev] Mesa 13.0.0 release plan (Was Re: Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?))

2016-09-30 Thread Ian Romanick
On 09/30/2016 06:23 AM, Brian Paul wrote: > On 09/30/2016 04:59 AM, Emil Velikov wrote: >> On 30 September 2016 at 03:31, Timothy Arceri >> wrote: >>> On Thu, 2016-09-29 at 19:17 -0700, Jason Ekstrand wrote: >>> >>> On Sep 29, 2016 5:14 PM, "Timothy Arceri" >>> wrote: On Thu, 2016-09-29

[Mesa-dev] [PATCH] glsl: optimize copy_propagation_elements pass

2016-09-30 Thread Ian Romanick
. Signed-off-by: Tapani Pälli Signed-off-by: Ian Romanick --- This is tested with shader-db. There's a bit more cleaning and testing to do. I was going to send this out last night but, long story short, my desk collapsed, and I had to deal with that instead. :( ...

Re: [Mesa-dev] [PATCH] i915/i965: remove commented out warning

2016-09-30 Thread Ian Romanick
Reviewed-by: Ian Romanick On 09/29/2016 11:37 PM, Timothy Arceri wrote: > The warning was also the wrong location, it should have been > in the else. > --- > src/mesa/drivers/dri/i915/intel_fbo.h | 4 +--- > src/mesa/drivers/dri/i965/intel_fbo.h | 4 +--- > 2 files changed,

[Mesa-dev] [PATCH v3] glsl: optimize copy_propagation_elements pass

2016-09-30 Thread Ian Romanick
(idr): Delete unused copy constructor. Use while(pop_head) instead of foreach() { remove }. Signed-off-by: Tapani Pälli Signed-off-by: Ian Romanick --- Ugh... I had these uncommitted changes sitting in my tree when I sent the other patch out. Sorry for the chaos. .../glsl

Re: [Mesa-dev] [PATCH 3/3] glx: rename choose_visual(), drop const argument

2016-09-30 Thread Ian Romanick
oseFBConfig style. That is weird. I did a lot of archaeology on this... and I can't see that this parameter was *ever* passed anything other than GL_TRUE. The other places that call init_fbconfig_for_chooser and __GlXInitializeVisualConfigFromTags also pass literal values for the last parame

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] egl: stop claiming support for pbuffer + msaa

2016-09-30 Thread Ian Romanick
//bugreports.qt.io/browse/QTBUG-47509 >> +*/ >> + if (base.Samples) { >> + surface_type &= ~EGL_PBUFFER_BIT; >> + } >> + > I'm slightly cautious if this won't cause unexpected side effects (due > to _eglFilterArray() and/or other interaction),

Re: [Mesa-dev] [PATCH] i965: Only emit 1 viewport when possible.

2016-10-03 Thread Ian Romanick
Reviewed-by: Ian Romanick On 09/26/2016 11:23 AM, Kenneth Graunke wrote: > In core profile, we support up to 16 viewports. However, in the > majority of cases, only 1 of them is actually used - we only need > the others if the last shader stage prior to the rasterizer writes > gl_V

[Mesa-dev] [PATCH] glsl: Don't emit ir_binop_carry during ir_binop_imul_high lowering

2016-10-04 Thread Ian Romanick
From: Ian Romanick st_glsl_to_tgsi only calls lower_instructions once (instead of in a loop), so the ir_binop_carry generated would not get lowered. Fixes assertion failure state_tracker/st_glsl_to_tgsi.cpp:2265: void glsl_to_tgsi_visitor::visit_expression(ir_expression*, st_src_reg

[Mesa-dev] [PATCH] glsl: Let cache_test build when the shader cache is not enabled

2016-10-05 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick Cc: Timothy Arceri --- src/compiler/glsl/tests/cache_test.c | 4 1 file changed, 4 insertions(+) diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index 1b0403c..724dfcd 100644 --- a/src/compiler/glsl

Re: [Mesa-dev] [PATCH] reviewers: Throw myself on the GLX grenade

2016-10-06 Thread Ian Romanick
Heh... I'm not there... well done. Reviewed-by: Ian Romanick On 10/06/2016 12:37 PM, Adam Jackson wrote: > Signed-off-by: Adam Jackson > --- > REVIEWERS | 4 > 1 file changed, 4 insertions(+) > > diff --git a/REVIEWERS b/REVIEWERS > index f7574b3..f82242

Re: [Mesa-dev] [PATCH] vbo: disable primitive restart when GL >= 4.5

2016-10-06 Thread Ian Romanick
On 10/06/2016 06:22 AM, Martina Kollarova wrote: > The OpenGL 4.5 spec updated the section on primitive restart, and now it > doesn't have to be performed on drawing commands not taking a parameter, > regardless of whether PRIMITIVE_RESTART_FIXED_INDEX is enabled or not. > > Bugzilla: https://bugs

Re: [Mesa-dev] [PATCH 4/6] mesa: call ctx->Driver.TexParameter() in texture_buffer_range()

2016-10-07 Thread Ian Romanick
On 10/05/2016 05:42 PM, Brian Paul wrote: > To inform drivers of texture buffer offset/size changes, as we do for > other texture object parameters. > --- > src/mesa/main/teximage.c | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/src/mesa/main/teximage.c b/src/mesa/main/te

[Mesa-dev] [PATCH 1/2] i965: Sort some extension names

2016-10-07 Thread Ian Romanick
From: Ian Romanick Trivial. Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/intel_extensions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index eef81e2

[Mesa-dev] [PATCH 2/2] i965: Fix typo in nir_op_pack_double_2x32_split handling

2016-10-07 Thread Ian Romanick
From: Ian Romanick This was found partially by inspection and partially by hitting a problem while working on nir_op_pack_int64_2x32_split. The code previously would 'continue' if (instr->src[i].src.is_ssa), but the code immediately following in the loop treats instr->src[i]

Re: [Mesa-dev] [PATCH 2/2] i965: Fix typo in nir_op_pack_double_2x32_split handling

2016-10-14 Thread Ian Romanick
On 10/08/2016 09:33 AM, Eduardo Lima Mitev wrote: > On 10/08/2016 02:12 AM, Ian Romanick wrote: >> From: Ian Romanick >> >> This was found partially by inspection and partially by hitting a >> problem while working on nir_op_pack_int64_2x32_split. The code >&g

[Mesa-dev] [PATCH 2/4] glsl: Remove prototypes for nonexistent functions

2016-10-14 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/compiler/glsl/ir.h | 9 - 1 file changed, 9 deletions(-) diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 83b810b..7e06d42 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -2357,9 +2357,6

[Mesa-dev] [PATCH 4/4] i965: Silence unused parameter warnings

2016-10-14 Thread Ian Romanick
From: Ian Romanick brw_link.cpp:76:44: warning: unused parameter ‘shader_type’ [-Wunused-parameter] gl_shader_stage shader_type, ^ brw_nir.c: In function ‘brw_nir_lower_vs_inputs’: brw_nir.c:194:55: warning: unused parameter

[Mesa-dev] [PATCH 3/4] glsl: Remove unused function import_prototypes

2016-10-14 Thread Ian Romanick
From: Ian Romanick Once upon a time, this was used to extract prototypes from the shader containing GLSL built-in functions. This was removed by f5692f45 in November 2010 for Mesa 7.10. Signed-off-by: Ian Romanick Cc: Kenneth Graunke --- src/compiler/Makefile.sources | 1

[Mesa-dev] [PATCH 1/4] glsl: Replace assert with unreachable

2016-10-14 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/compiler/glsl/ir_print_visitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index c238c16..1299bfb 100644 --- a/src/compiler/glsl

Re: [Mesa-dev] [PATCH 4/4] i965: Silence unused parameter warnings

2016-10-14 Thread Ian Romanick
, I've seen so many "silence warning" commits at $DAYJOB that > this has become a pet peeve of mine) > > One suggestion below, but the series looks good: > Reviewed-by: Eric Engestrom > > > On Fri, Oct 14, 2016 at 11:59:47AM -0700, Ian Romanick wrote: >> From:

Re: [Mesa-dev] [PATCH] src: replace RTLD_NOW with RTLD_LAZY

2016-08-08 Thread Ian Romanick
On 08/05/2016 07:05 PM, ⚛ wrote: > On Sat, Aug 6, 2016 at 3:37 AM, Jan Vesely wrote: >> On Sat, 2016-08-06 at 02:42 +0200, Jan Ziak wrote: >>> Mesa source code prior to this patch uses both RTLD_NOW and >>> RTLD_LAZY. >>> This patch removes all RTLD_NOW in favor of RTLD_LAZY. >>> >>> In comparison

Re: [Mesa-dev] [PATCH 02/18] mesa: Add {OES, EXT}_tessellation_shader to the extensions table.

2016-08-08 Thread Ian Romanick
On 08/01/2016 07:52 PM, Kenneth Graunke wrote: > On Monday, August 1, 2016 7:06:14 PM PDT Ilia Mirkin wrote: >> I'm looking at these on my phone, so perhaps I missed it - do you ever end >> up turning them on, or is that left to later series? > > No...not yet. This series gets almost all of dEQP

Re: [Mesa-dev] [PATCH 07/18] glsl: Implicitly enable OES_shader_io_blocks if geom/tess are enabled.

2016-08-08 Thread Ian Romanick
On 08/01/2016 10:29 AM, Kenneth Graunke wrote: > Signed-off-by: Kenneth Graunke > --- > src/compiler/glsl/glsl_parser_extras.h | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/src/compiler/glsl/glsl_parser_extras.h > b/src/compiler/glsl/glsl_parser_extras.h > index 991cfc6.

Re: [Mesa-dev] [PATCH 09/18] glsl: Handle patch qualifier on interface blocks.

2016-08-08 Thread Ian Romanick
This is also a problem for desktop, yeah? Cc stable? On 08/01/2016 10:29 AM, Kenneth Graunke wrote: > Signed-off-by: Kenneth Graunke > --- > src/compiler/glsl/ast_to_hir.cpp | 4 > src/compiler/glsl/glsl_parser.yy | 11 +++ > src/compiler/glsl/glsl_parser_extras.cp

Re: [Mesa-dev] [PATCH 01/18] mapi: Add PatchParameteriOES and PatchParameteriEXT.

2016-08-08 Thread Ian Romanick
It looks like only part of this series has landed? Patches 1 through 7 and 9 through 12 are Reviewed-by: Ian Romanick On 08/01/2016 10:29 AM, Kenneth Graunke wrote: > The OES_tessellation_shader and EXT_tessellation_shader specifications > have suffixed names. These are identical to th

Re: [Mesa-dev] [PATCH] dri: use 'bool' instead 'int' for boolean variables

2016-08-08 Thread Ian Romanick
I'm pretty sure this breaks ABI. Did you try using an unpatched libGL with a patched *_dri.so (and vice-versa)? On 08/01/2016 06:21 AM, Jan Ziak wrote: > Signed-off-by: Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0...@gmail.com> > --- > src/egl/drivers/dri2/egl_dri2.h | 19 ++-

Re: [Mesa-dev] [PATCH 12/18] mesa: Skip ES 3.0/3.1 transform feedback primitive counting error.

2016-08-08 Thread Ian Romanick
On 08/01/2016 10:29 AM, Kenneth Graunke wrote: > This error condition is not implementable when using tessellation or > geometry shaders. The text was also removed from the ES 3.2 spec. > I believe the intended behavior is to remove the error condition > when either OES_geometry_shader or OES_tess

Re: [Mesa-dev] [PATCH] dri: use 'bool' instead 'int' for boolean variables

2016-08-08 Thread Ian Romanick
On 08/08/2016 09:38 AM, ⚛ wrote: > On Mon, Aug 8, 2016 at 6:22 PM, Ian Romanick wrote: >> I'm pretty sure this breaks ABI. Did you try using an unpatched libGL >> with a patched *_dri.so (and vice-versa)? > > Can you be more specific? Eh... build Mesa. Save the

Re: [Mesa-dev] [PATCH] dri: use 'bool' instead 'int' for boolean variables

2016-08-08 Thread Ian Romanick
. No... we go to great lengths to make *_dri.so query libGL to know where a new function goes in the dispatch table. If libGL doesn't know a location for the new function, it dynamically assigns one. That's what all the remap table stuff is. > BR, > -R > > On Mon, Aug 8

Re: [Mesa-dev] [PATCH] src: replace RTLD_NOW with RTLD_LAZY

2016-08-08 Thread Ian Romanick
On 08/08/2016 09:52 AM, Jan Vesely wrote: > On Mon, 2016-08-08 at 08:54 -0700, Ian Romanick wrote: >> On 08/05/2016 07:05 PM, ⚛ wrote: >>> >>> On Sat, Aug 6, 2016 at 3:37 AM, Jan Vesely >>> wrote: >>>> >>>> On Sat, 2016-08-06 at 02:42

Re: [Mesa-dev] [PATCH - Mesa 09/10] meta: Make Meta's BlitFramebuffer() follow the GL 4.4 sRGB rules.

2016-08-08 Thread Ian Romanick
On 08/04/2016 04:14 PM, Kenneth Graunke wrote: > Just avoid whacking GL_FRAMEBUFFER_SRGB altogether, so we respect > the application's setting. This appears to work. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/common/meta_blit.c | 80 > + > 1

Re: [Mesa-dev] Switching to the GL 4.4 sRGB rules for glBlitFramebuffer().

2016-08-08 Thread Ian Romanick
Patches 1 through 5 and 7 through 9 are Reviewed-by: Ian Romanick I sent one trivial comment on patch 9. On 08/04/2016 04:14 PM, Kenneth Graunke wrote: > Hello, > > This combined patch series updates both Piglit and Mesa to implement > the modern GL 4.4+ rules for sRGB encoding

[Mesa-dev] [PATCH 1/2] glcpp: Track the actual version instead of just the version_resolved flag

2016-08-09 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick Cc: mesa-sta...@lists.freedesktop.org --- src/compiler/glsl/glcpp/glcpp-parse.y | 10 +- src/compiler/glsl/glcpp/glcpp.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b

[Mesa-dev] [PATCH 2/2] glcpp: Only disallow #undef of pre-defined macros on GLSL ES >= 3.00 shaders

2016-08-09 Thread Ian Romanick
From: Ian Romanick Section 3.4 (Preprocessor) of the GLSL ES 3.00 spec says: It is an error to undefine or to redefine a built-in (pre-defined) macro name. The GLSL ES 1.00 spec does not contain this text. Section 3.3 (Preprocessor) of the GLSL 1.30 spec says: #define and #undef

Re: [Mesa-dev] [PATCH 3/4] prog_hash_table: Convert to using util/hash_table.h.

2016-08-09 Thread Ian Romanick
On 08/09/2016 10:17 AM, Eric Anholt wrote: > Improves glretrace -b servo.trace (a trace of Mozilla's servo rendering > engine booting, rendering a page, and exiting) from 1.8s to 1.1s. It uses > a large uniform array of structs, making a huge number of separate program > resources, and the fixed-s

Re: [Mesa-dev] [PATCH 1/4] nir: Drop an unused program/hash_table.h include.

2016-08-09 Thread Ian Romanick
With the one comment on patch 3 resolved, this series is Reviewed-by: Ian Romanick On 08/09/2016 10:17 AM, Eric Anholt wrote: > --- > src/compiler/nir/nir_lower_samplers.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/src/compiler/nir/nir_lower_samplers.c >

Re: [Mesa-dev] [PATCH 1/6] nir: Convert ineg(b2i(a)) to a if it's a boolean.

2016-08-10 Thread Ian Romanick
a, b))), > (('fsat', ('fadd', ('b2f', a), ('b2f', b))), ('b2f', ('ior', a, b))), > (('iand', 'a@bool', 1.0), ('b2f', a)), > + (('ineg', ('b2i', 'a@bool')), a),

Re: [Mesa-dev] [PATCH 3/6] nir: Turn -(b2f(a) + b2f(b) >= 0 into !(a || b).

2016-08-10 Thread Ian Romanick
n't get any benefit. I also had tests for a couple other relational operators with 0 that didn't see benefit. Maybe one of us should try to revive my old, more generic series at some point. For now, this patch is Reviewed-by: Ian Romanick > Signed-off-by: Kenneth Graunke > --- &g

Re: [Mesa-dev] [PATCH 2/6] nir: Turn bcsel of +/- 1.0 and 0.0 into b2f sequences.

2016-08-10 Thread Ian Romanick
On 08/09/2016 07:30 PM, Kenneth Graunke wrote: > On Haswell (GL 3.3): > > total instructions in shared programs: 6208759 -> 6203860 (-0.08%) > instructions in affected programs: 856541 -> 851642 (-0.57%) > helped: 3157 > HURT: 113 > LOST: 7 > GAINED: 15 > > On Broadwell (GL 4.4): > > total ins

Re: [Mesa-dev] [PATCH 6/6] i965: Use the nir_move_comparisons pass.

2016-08-10 Thread Ian Romanick
On 08/09/2016 07:30 PM, Kenneth Graunke wrote: > On Haswell (GL 3.3): > > total instructions in shared programs: 6211427 -> 6210079 (-0.02%) > instructions in affected programs: 219356 -> 218008 (-0.61%) > helped: 567 > HURT: 132 > > No spill/fill changes. > > LOST: 0 > GAINED: 4 > > On Broad

Re: [Mesa-dev] [PATCH 4/6] nir: Introduce a nir_opt_move_comparisons() pass.

2016-08-10 Thread Ian Romanick
*/ > +} > + > +static bool > +move_comparisons(nir_block *block) > +{ > + bool progress = false; > + > + /* We use a simple approach: walk instructions backwards. > +* > +* If the instruction's source is a comparison from the same block

Re: [Mesa-dev] [PATCH 2/6] nir: Turn bcsel of +/- 1.0 and 0.0 into b2f sequences.

2016-08-10 Thread Ian Romanick
On 08/10/2016 11:24 AM, Kenneth Graunke wrote: > On Wednesday, August 10, 2016 10:02:12 AM PDT Erik Faye-Lund wrote: >> On Wed, Aug 10, 2016 at 4:30 AM, Kenneth Graunke >> wrote: >>> On Haswell (GL 3.3): >>> >>> total instructions in shared programs: 6208759 -> 6203860 (-0.08%) >>> instructions i

Re: [Mesa-dev] [PATCH 2/6] nir: Turn bcsel of +/- 1.0 and 0.0 into b2f sequences.

2016-08-10 Thread Ian Romanick
On 08/10/2016 12:50 PM, Eric Anholt wrote: > Connor Abbott writes: > >> On Wed, Aug 10, 2016 at 1:53 PM, Eric Anholt wrote: >>> Kenneth Graunke writes: >>> On Haswell (GL 3.3): total instructions in shared programs: 6208759 -> 6203860 (-0.08%) instructions in affected progra

Re: [Mesa-dev] [PATCH 2/2] nir/algebraic: Optimize common array indexing sequence

2016-08-11 Thread Ian Romanick
ping On 07/19/2016 10:37 PM, Ian Romanick wrote: > From: Ian Romanick > > Some shaders include code that looks like: > >uniform int i; >uniform vec4 bones[...]; > >foo(bones[i * 3], bones[i * 3 + 1], bones[i * 3 + 2]); > > CSE would do some w

Re: [Mesa-dev] [PATCH] glsl: look for frag data bindings with [0] tacked onto the end for arrays

2016-08-11 Thread Ian Romanick
This seems okay... let me run it through our CI first. I should have results later today. I'm going to step out for a bit. On 08/09/2016 05:43 PM, Ilia Mirkin wrote: > ping? do we want this? should i drop it? > > On Wed, Jul 13, 2016 at 3:37 PM, Ilia Mirkin wrote: >> Thanks for confirming, Cor

Re: [Mesa-dev] [PATCH 1/3] mesa: Document that _mesa_enum_to_string() returns non-null

2016-08-11 Thread Ian Romanick
On 08/11/2016 10:11 AM, Chad Versace wrote: > It always returns non-null, even if the number is an invalid enum. > > Cc: Haixia Shi > Change-Id: I26e8843c96130be972e66f48a49e362442e1bf97 > --- > src/mapi/glapi/gen/gl_enums.py | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/mapi

Re: [Mesa-dev] [PATCH 3/3] mesa: Fix glFramebufferTexture* error codes

2016-08-11 Thread Ian Romanick
On 08/11/2016 10:11 AM, Chad Versace wrote: > If check_textarget() determined that textarget was incorrect, it emitted > GL_INVALID_OPERATION. This is the correct behavior when textarget is > a valid GLenum but an invalid parameter to the current variant of > glFramebufferTexture*(). > > However,

Re: [Mesa-dev] [PATCH 1/3] mesa: Document that _mesa_enum_to_string() returns non-null

2016-08-11 Thread Ian Romanick
On 08/11/2016 10:22 AM, Ian Romanick wrote: > On 08/11/2016 10:11 AM, Chad Versace wrote: >> It always returns non-null, even if the number is an invalid enum. >> >> Cc: Haixia Shi >> Change-Id: I26e8843c96130be972e66f48a49e362442e1bf97 >> --- >> src/ma

Re: [Mesa-dev] [PATCH 2/3] mesa: Add _mesa_enum_to_string2()

2016-08-11 Thread Ian Romanick
On 08/11/2016 10:11 AM, Chad Versace wrote: > The new function is identical to _mesa_enum_to_string(), except that it > returns false if the given number is an invalid enum. Bundling > validation and lookup into a single function allows us to do both with > a single lookup into the enum table. > >

Re: [Mesa-dev] [PATCH] glsl: look for frag data bindings with [0] tacked onto the end for arrays

2016-08-11 Thread Ian Romanick
Or not. :( The patch no longer applies, and I wasn't able to trivially make it apply. I suspect one of Timothy's recent patches is to blame. On 08/11/2016 10:06 AM, Ian Romanick wrote: > This seems okay... let me run it through our CI first. I should have > results later toda

Re: [Mesa-dev] [PATCH 2/2] nir/algebraic: Optimize common array indexing sequence

2016-08-11 Thread Ian Romanick
On 08/11/2016 11:54 AM, Thomas Helland wrote: > 2016-08-11 18:19 GMT+02:00 Ian Romanick : >> ping >> >> On 07/19/2016 10:37 PM, Ian Romanick wrote: >>> From: Ian Romanick >>> >>> Some shaders include code that looks like: >>> >>>

Re: [Mesa-dev] [PATCH] vbo: increase VBO_SAVE_BUFFER_SIZE from 8k to 256k dwords

2016-08-18 Thread Ian Romanick
On 08/17/2016 05:00 PM, Tim Rowley wrote: > Increases the performance of legacy geometry-heavy apps > still using display lists. Do you have any data or at least names of some affected apps? This is valuable for the next person that has to change this code... imagine someone who needs to change t

[Mesa-dev] [PATCH 02/13] docs: Note that Curro and Ken are working on GL_KHR_blend_equation_advanced

2016-08-24 Thread Ian Romanick
From: Ian Romanick and GL_KHR_blend_equation_advanced_coherent. Signed-off-by: Ian Romanick --- docs/GL3.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index b27c550..c769f69 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -253,7 +253,7

[Mesa-dev] [PATCH 06/13] mesa: Use the same enable for EXT_texture_env_dot3 and ARB_texture_env_dot3

2016-08-24 Thread Ian Romanick
From: Ian Romanick Every driver that supports one also supports the other. This is phenomenally unlikely to change. Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i915/intel_extensions.c | 1 - src/mesa/drivers/dri/i965/intel_extensions.c | 1 - src/mesa/drivers/dri/nouveau

[Mesa-dev] [PATCH 00/13] Fighting jet lag

2016-08-24 Thread Ian Romanick
The majority of this series came while I was trying to fight jet lag during Khronos face-to-face meetings. I had to do something, and I didn't feel capable of doing anything "real." :) The series also includes previously sent up dates to the file previously known as GL3.txt.

[Mesa-dev] [PATCH 12/13] mesa: Remove redundant _mesa_has_shader_subroutine

2016-08-24 Thread Ian Romanick
From: Ian Romanick The checks in _mesa_has_shader_subroutine are slightly different than _mesa_has_ARB_shader_subroutine, but they're not different in a way that matters. The only way to have ctx->Version >= 40 is if ctx->Extensions.ARB_shader_subroutine is set. Signed-off-by

[Mesa-dev] [PATCH 10/13] mesa: Minor clean ups in set_combiner_scale

2016-08-24 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/main/texenv.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index 3f3adba..ba22301 100644 --- a/src/mesa/main/texenv.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 11/13] mesa: Minor clean ups in set_env_mode

2016-08-24 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/main/texenv.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index ba22301..d709a7d 100644 --- a/src/mesa/main/texenv.c +++ b/src/mesa/main/texenv.c

[Mesa-dev] [PATCH 01/13] docs: Update GL3.txt for OpenGL 4.x on i965-ish hardware

2016-08-24 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- docs/GL3.txt | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 084c17e..b27c550 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -136,17 +136,17 @@ GL 4.0, GLSL 4.00 --- all

[Mesa-dev] [PATCH 09/13] mesa: Minor clean ups in set_combiner_operand

2016-08-24 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/main/texenv.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index 3d6a219..3f3adba 100644 --- a/src/mesa/main/texenv.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 03/13] docs: Rename GL3.txt to features.txt

2016-08-24 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick Suggested-by: Ilia Mirkin --- docs/GL3.txt | 335 -- docs/features.txt | 335 ++ 2 files changed, 335 insertions(+), 335 deletions

[Mesa-dev] [PATCH 04/13] nouveau: Fix non-1x post-scale factor with DOT3 combiner

2016-08-24 Thread Ian Romanick
From: Ian Romanick Fixes long standing bug on NV10 and NV20 where using a non-1x RGB or A post-scale with GL_DOT3_RGB or GL_DOT3_RGBA texture environment would not work. The old combiner math uses HALF_BIAS_NORMAL and HALF_BIAS_NEGATE. The GL_NV_register_combiners defines these as

[Mesa-dev] [PATCH 07/13] mesa: Minor clean ups in set_combiner_mode

2016-08-24 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/main/texenv.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index c7403d9..1ab4708 100644 --- a/src/mesa/main/texenv.c +++ b/src

<    1   2   3   4   5   6   7   8   9   10   >