[Mesa-dev] [PATCH] i965/nir/fs: removed unneeded support for global variables

2015-06-26 Thread Alejandro Piñeiro
As functions are inlined, and nir_lower_global_vars_to_local gets run, all global variables are lowered to local variables. --- Jason Enkstrand already confirmed that global support is not needed on the bug open for the nir/vec4 support: https://bugs.freedesktop.org/show_bug.cgi?id=89580#c9 So th

Re: [Mesa-dev] [PATCH 07/78] i965/vec4: Overload make_reg_for_system_value() to allow reuse in NIR->vec4 pass

2015-06-29 Thread Alejandro Piñeiro
On 30/06/15 01:27, Jason Ekstrand wrote: > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev wrote: >> From: Alejandro Piñeiro >> >> The new virtual method is more flexible, it has a signature: >> >> dst_reg *make_reg_for_system_value(int location, con

Re: [Mesa-dev] [PATCH 08/78] i965/nir/vec4: Add setup for system values

2015-06-30 Thread Alejandro Piñeiro
On 30/06/15 01:34, Jason Ekstrand wrote: > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev wrote: >> From: Alejandro Piñeiro >> >> Similar to other variable setups, system values will initialize the >> corresponding register inside a 'nir_system_values

Re: [Mesa-dev] [PATCH 61/78] i965/nir/vec4: Add skeleton implementation of nir_emit_texture()

2015-07-01 Thread Alejandro Piñeiro
and ir paths. BR > --Jason > > On Fri, Jun 26, 2015 at 1:07 AM, Eduardo Lima Mitev wrote: >> From: Alejandro Piñeiro >> >> This sets up the basic structure and placeholders for the implementation of >> texture operations, which will be added incrementally in

Re: [Mesa-dev] [PATCH 61/78] i965/nir/vec4: Add skeleton implementation of nir_emit_texture()

2015-07-13 Thread Alejandro Piñeiro
ther headers (like glsl/glsl_types.h) have. BR [1] https://github.com/Igalia/mesa/commit/e81ce150ef931e50b6cb1aae0b42a79f448863f5 [2] https://bugs.freedesktop.org/show_bug.cgi?id=89580#c7 > --Jason > > On Fri, Jun 26, 2015 at 1:07 AM, Eduardo Lima Mitev wrote: >> From: Alejandro

Re: [Mesa-dev] [PATCH 61/78] i965/nir/vec4: Add skeleton implementation of nir_emit_texture()

2015-07-13 Thread Alejandro Piñeiro
On 13/07/15 14:05, Jason Ekstrand wrote: > On Mon, Jul 13, 2015 at 3:00 AM, Alejandro Piñeiro > wrote: >> On 01/07/15 01:37, Jason Ekstrand wrote: >>> If we can avoid duplication in the texturing code, that would be >>> really nice. Could we do this as a ref

Re: [Mesa-dev] [PATCH 61/78] i965/nir/vec4: Add skeleton implementation of nir_emit_texture()

2015-07-13 Thread Alejandro Piñeiro
ackend instruction opcode: http://lists.freedesktop.org/archives/mesa-dev/2015-July/088696.html So probably it would be better to wait for his change, and avoid the need of that mapping on the vec4 path too. That would remove the need of the helper function and the cpp renaming. That sounds

Re: [Mesa-dev] [PATCH] i965/nir/fs: removed unneeded support for global variables

2015-07-16 Thread Alejandro Piñeiro
Ping. Any possibility of a patch review? FWIW, the patch itself is pretty small. On 26/06/15 13:47, Alejandro Piñeiro wrote: > As functions are inlined, and nir_lower_global_vars_to_local gets > run, all global variables are lowered to local variables. > --- > > Jason Enkstrand al

Re: [Mesa-dev] [PATCH 2/5] i965/vec4: adding vec4_cmod_propagation optimization

2015-10-10 Thread Alejandro Piñeiro
On 10/10/15 16:54, Jason Ekstrand wrote: > On Sat, Oct 10, 2015 at 4:24 AM, Alejandro Piñeiro > wrote: >> vec4 port of fs_cmod_propagation. >> >> Shader-db results: >> total instructions in shared programs: 6241226 -> 6224469 (-0.27%) >> instructions in

Re: [Mesa-dev] [PATCH 2/5] i965/vec4: adding vec4_cmod_propagation optimization

2015-10-13 Thread Alejandro Piñeiro
On 13/10/15 03:10, Matt Turner wrote: > On Mon, Oct 12, 2015 at 4:25 PM, Matt Turner wrote: >> On Sat, Oct 10, 2015 at 4:24 AM, Alejandro Piñeiro >> wrote: >>> vec4 port of fs_cmod_propagation. >>> >>> Shader-db results: >>> total instruc

Re: [Mesa-dev] [PATCH 2/5] i965/vec4: adding vec4_cmod_propagation optimization

2015-10-14 Thread Alejandro Piñeiro
On 13/10/15 23:36, Matt Turner wrote: > On Tue, Oct 13, 2015 at 1:49 AM, Alejandro Piñeiro > wrote: >> On 13/10/15 03:10, Matt Turner wrote: >>> Looks like this is causing an intermittent failure on HSW in our >>> Jenkins system (but I'm not able to repr

Re: [Mesa-dev] [PATCH 2/5] i965/vec4: adding vec4_cmod_propagation optimization

2015-10-14 Thread Alejandro Piñeiro
On 14/10/15 10:15, Francisco Jerez wrote: > Alejandro Piñeiro writes: > >> On 13/10/15 23:36, Matt Turner wrote: >>> On Tue, Oct 13, 2015 at 1:49 AM, Alejandro Piñeiro >>> wrote: >>>> On 13/10/15 03:10, Matt Turner wrote: >>>>> Looks l

[Mesa-dev] [PATCH] i965/vec4: dead_code_eliminate: update writemask on null_regs based on flag_live

2015-10-14 Thread Alejandro Piñeiro
--- This patch implements the idea proposed by Francisco Jerez. With this change, even adding the new condition pointed by Matt Turner on the "2/5 i965/vec4: adding vec4_cmod_propagation optimization", the shader-db numbers remain the same. So this patch would go before the optimization (so in thi

[Mesa-dev] [PATCH v2] i965/vec4: Add unit tests for cmod propagation pass

2015-10-14 Thread Alejandro Piñeiro
This include the same tests coming from test_fs_cmod_propagation, (non vector glsl types included) plus some new with vec4 types, inspired on the regressions found while the optimization was a work in progress. Additionally, the check of number of instructions after the optimization was changed fr

Re: [Mesa-dev] [PATCH] i965/vec4: dead_code_eliminate: update writemask on null_regs based on flag_live

2015-10-15 Thread Alejandro Piñeiro
On 15/10/15 14:38, Francisco Jerez wrote: > Alejandro Piñeiro writes: > >> --- >> >> This patch implements the idea proposed by Francisco Jerez. With this >> change, even adding the new condition pointed by Matt Turner on the >> "2/5 i965/vec4: adding

Re: [Mesa-dev] [PATCH 0/5] Implementation of vec4 equivalent to fs_cmod_propagation optimization

2015-10-15 Thread Alejandro Piñeiro
On 15/10/15 18:19, Matt Turner wrote: > On Sat, Oct 10, 2015 at 4:24 AM, Alejandro Piñeiro > wrote: >> This series implements a vec4 equivalent to fs_cmod_propagation optimization. >> >> The last two commits are not really needed for the optimization, are just >&

[Mesa-dev] [PATCH v2] i965/vec4: track and use independently each flag channel

2015-10-19 Thread Alejandro Piñeiro
vec4_live_variables tracks now each flag channel independently, so vec4_dead_code_eliminate can update the writemask of null registers, based on which component are alive at the moment. This would allow vec4_cmod_propagation to optimize out several movs involving null registers. v2: added support

Re: [Mesa-dev] [PATCH v2] i965/vec4: track and use independently each flag channel

2015-10-21 Thread Alejandro Piñeiro
Just realized that I sent this email with extra comments off-list. Sending to the list now. Additionally, just a gentle reminder that this is the only patch pending to be reviewed in this series, that have already 5 patches reviewed. Thanks in advance. On 19/10/15 19:38, Alejandro Piñeiro wrote

[Mesa-dev] [PATCH] i965: check inst->predicate when clearing flag_live at dead code eliminate

2015-10-22 Thread Alejandro Piñeiro
Detected by Matt Turner while reviewing commit a59359ecd22154cc2b3f88bb8c599f21af8a3934 --- src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp | 2 +- src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/

[Mesa-dev] [PATCH] i965/vec4: check opcode on vec4_instruction::reads_flag(channel)

2015-10-23 Thread Alejandro Piñeiro
Commit f17b78 added an alternative reads_flag(channel) that returned if the instruction was reading a specific channel flag. By mistake it only took into account the predicate, but when the opcode is VS_OPCODE_UNPACK_FLAGS_SIMD4X2 there isn't any predicate, but the flag are used. That mistake caus

[Mesa-dev] [PATCH] i965/vec4: select predicate based on writemask for sel emissions

2015-10-23 Thread Alejandro Piñeiro
Equivalent to commit 4eebeb but with sel operations. In this case we select the PredCtrl based on the writemask. This change allows cmod propagation to optimize out several instructions. Shader-db numbers: total instructions in shared programs: 6235835 -> 6228008 (-0.13%) instructions in affected

Re: [Mesa-dev] [PATCH] i965/vec4: check opcode on vec4_instruction::reads_flag(channel)

2015-10-23 Thread Alejandro Piñeiro
On 23/10/15 17:46, Kenneth Graunke wrote: > On Friday, October 23, 2015 04:04:35 PM Alejandro Piñeiro wrote: >> Commit f17b78 added an alternative reads_flag(channel) that returned >> if the instruction was reading a specific channel flag. By mistake it >> only took into accou

Re: [Mesa-dev] [PATCH] i965: check inst->predicate when clearing flag_live at dead code eliminate

2015-11-04 Thread Alejandro Piñeiro
Gentle ping. FWIW, this patch is a really small one. PS: I already pinged Matt about this, but probably Friday evening is not the best time for reminders ;) On 22/10/15 22:25, Alejandro Piñeiro wrote: > Detected by Matt Turner while reviewing commit > a59359ecd22154cc2b3f88bb8c599f21af

Re: [Mesa-dev] [PATCH] i965/vec4: select predicate based on writemask for sel emissions

2015-11-04 Thread Alejandro Piñeiro
Gentle ping. PS: I also pinged Matt about this, but (again) probably Friday evening is not the best time for reminders ;) On 23/10/15 16:17, Alejandro Piñeiro wrote: > Equivalent to commit 4eebeb but with sel operations. In this case > we select the PredCtrl based on the writemask. &g

Re: [Mesa-dev] [PATCH] i965/vec4: select predicate based on writemask for sel emissions

2015-11-04 Thread Alejandro Piñeiro
On 04/11/15 20:13, Matt Turner wrote: > On Fri, Oct 23, 2015 at 7:17 AM, Alejandro Piñeiro > wrote: >> Equivalent to commit 4eebeb but with sel operations. In this case > That commit sha doesn't exist. I suspect you meant commit 8ac3b525c. Yes, probably that sha was the on

Re: [Mesa-dev] [PATCH] i965/vec4: select predicate based on writemask for sel emissions

2015-11-05 Thread Alejandro Piñeiro
On 04/11/15 23:49, Matt Turner wrote: > On Wed, Nov 4, 2015 at 1:01 PM, Alejandro Piñeiro > wrote: >> On 04/11/15 20:13, Matt Turner wrote: >>> On Fri, Oct 23, 2015 at 7:17 AM, Alejandro Piñeiro >>> wrote: >>>> Equivalent to commit 4eebeb but with se

[Mesa-dev] [PATCH 3/3] main/fboject: default_framebuffer allowed for GetFramebufferParameter

2017-02-02 Thread Alejandro Piñeiro
Before 4.5, the default framebuffer was not allowed for GetFramebufferParameter, so it should return INVALID_OPERATION for any call using the default framebuffer. 4.5 included new pnames, and some of them are allowed for the default framebuffer. For the rest, INVALID_OPERATION. From OpenGL 4.5 spe

[Mesa-dev] [PATCH 1/3] main/framebuffer: refactor _mesa_get_color_read_format/type

2017-02-02 Thread Alejandro Piñeiro
Current implementation returns the value for the currently bound read framebuffer. GetNamedFramebufferParameteriv allows to get it for any given framebuffer. GetFramebufferParameteriv would be also interested on that method It was refactored by allowing to pass a given framebuffer. If NULL is pass

[Mesa-dev] [PATCH 2/3] main/fbobject: implement new 4.5 pnames for GetFramebufferParameter

2017-02-02 Thread Alejandro Piñeiro
4.5 added new pnames allowed for GetFramebufferParameter, and GetNamedFramebufferParameter. From OpenGL 4.5 spec, section 9.2.3 "Framebuffer Object Queries" (quoting the paragraph with only the new pnames, not all the supported): "pname may also be one of DOUBLEBUFFER, IMPLEMENTATION_COLOR

Re: [Mesa-dev] [PATCH 1/5] mesa: Do (TCS && !TES) draw time validation in ES as well.

2017-02-11 Thread Alejandro Piñeiro
On 11/02/17 08:52, Kenneth Graunke wrote: > Now that we have OES_tessellation_shader, the same situation can occur > in ES too, not just GL core profile. > > Having a TCS but no TES may confuse drivers - i965 crashes, for example. > > This prevents regressions in > ES31-CTS.core.tessellation_shader

Re: [Mesa-dev] [PATCH 1/5] mesa: Do (TCS && !TES) draw time validation in ES as well.

2017-02-11 Thread Alejandro Piñeiro
I sent a nitpick for the first one, but in any case, series: Reviewed-by: Alejandro Piñeiro On 11/02/17 08:52, Kenneth Graunke wrote: > Now that we have OES_tessellation_shader, the same situation can occur > in ES too, not just GL core profile. > > Having a TCS but no TES may con

[Mesa-dev] [PATCH] mesa/formatquery: use consistent local function names

2017-02-11 Thread Alejandro Piñeiro
--- src/mesa/main/formatquery.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c index 29df958..598d34d 100644 --- a/src/mesa/main/formatquery.c +++ b/src/mesa/main/formatquery.c @@ -718,8 +718,8 @@ _me

Re: [Mesa-dev] [PATCH] mesa/formatquery: use consistent local function names

2017-02-17 Thread Alejandro Piñeiro
Gentle ping for a really trivial patch. On 11/02/17 17:21, Alejandro Piñeiro wrote: > --- > src/mesa/main/formatquery.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c > inde

[Mesa-dev] Atomic counters doesn't work for a binding point different to zero (was Re: [PATCH] glsl: set the binding value regardless explicit_binding)

2015-07-24 Thread Alejandro Piñeiro
]->var->data.atomic.buffer_index is wrong, and that it should use the shader program instead. Probably is just enough to add more info on the comment "/* XXX Get rid of buffer_index */" here [2], but I preferred to ask first. Thanks in advance BR [1] https://github.com/Igalia/m

Re: [Mesa-dev] [PATCH V2] glsl: fix atomic buffer index for bindings other than 0

2015-07-25 Thread Alejandro Piñeiro
atomic buffer index in the unused var->data.index > to avoid the extra memory of putting back the atmoic buffer index field. > > V2: store buffer index in var->data.index and uniform slot in > var->data.location to avoid issues when linking more than 2 shaders. > Also some

[Mesa-dev] [PATCH v3 65/78] i965/ir/vec4: Refactor visit(ir_texture *ir)

2015-07-27 Thread Alejandro Piñeiro
Splitted in two. The emission is moved to a new vec4_visitor method, vec4_visitor::emit_texture, ir order to be reused on the nir path. --- v3: removed shadow_compare and has_nonconstant_offset booleans, as pointed on the v2 review. src/mesa/drivers/dri/i965/brw_vec4.h | 14 + src/mes

[Mesa-dev] [PATCH v3 66/78] i965/nir/vec4: Add implementation of nir_emit_texture()

2015-07-27 Thread Alejandro Piñeiro
Uses the nir structure to get all the info needed (sources, dest reg, etc), and then it uses the common vec4_visitor::emit_texture to emit the final code. --- v3: added glsl_type_for_nir_alu_type helper as suggested (it could be reused on fs too in the future). Setting with more detail the number

Re: [Mesa-dev] [PATCH v3 66/78] i965/nir/vec4: Add implementation of nir_emit_texture()

2015-07-28 Thread Alejandro Piñeiro
On 28/07/15 23:49, Jason Ekstrand wrote: > On Mon, Jul 27, 2015 at 3:37 PM, Alejandro Piñeiro > wrote: >> Uses the nir structure to get all the info needed (sources, >> dest reg, etc), and then it uses the common >> vec4_visitor::emit_texture to emit the final code

Re: [Mesa-dev] [PATCH] glsl: move xfb BufferStride into gl_transform_feedback_info

2016-09-23 Thread Alejandro Piñeiro
Looks good to me. Reviewed-by: Alejandro Piñeiro On 23/09/16 05:05, Timothy Arceri wrote: > It makes more sense to have this here where we store the other values > from xfb qualifiers. The struct it was previously part of is now only > used to store values to come from the api. >

Re: [Mesa-dev] Question about tesselation shader out varyings and transform feedback

2016-08-11 Thread Alejandro Piñeiro
On 05/08/16 12:20, Alejandro Piñeiro wrote: > On 05/08/16 01:53, Timothy Arceri wrote: >> On Thu, 2016-08-04 at 18:36 +0200, Alejandro Piñeiro wrote: >>> Hi, >>> >>> these days I have been trying to fix a test that uses transform >>> feedback >>

Re: [Mesa-dev] [PATCH 2/5] mesa: add api to write subroutine indicies to the program storage.

2016-08-11 Thread Alejandro Piñeiro
On 11/08/16 15:56, Andres Gomez wrote: > On Tue, 2016-06-07 at 15:25 +1000, Dave Airlie wrote: >> From: Dave Airlie >> >> This writes the subroutine indicies to the program storage for >> a stage. This API is intended to be used by drivers to update >> the uniform storage before uploading to the h

Re: [Mesa-dev] Question about tesselation shader out varyings and transform feedback

2016-08-12 Thread Alejandro Piñeiro
On 12/08/16 02:14, Timothy Arceri wrote: > On Thu, 2016-08-11 at 17:10 +0200, Alejandro Piñeiro wrote: >> On 05/08/16 12:20, Alejandro Piñeiro wrote: >>> On 05/08/16 01:53, Timothy Arceri wrote: >>>> On Thu, 2016-08-04 at 18:36 +0200, Alejandro Piñeiro wrote: >

Re: [Mesa-dev] [PATCH 1/4] nir/builder: Add bany_inequal and bany helpers.

2016-08-17 Thread Alejandro Piñeiro
Reviewed-by: Alejandro Piñeiro On 17/08/16 16:15, Kenneth Graunke wrote: > The first simply picks the bany_inequal[234] opcodes based on the SSA > def's number of components. The latter implicitly compares with zero > to achieve the same semantics of GLSL's any()

Re: [Mesa-dev] [PATCH 3/4] i965: Fix execution size of scalar TCS barrier setup code.

2016-08-17 Thread Alejandro Piñeiro
Reviewed-by: Alejandro Piñeiro On 17/08/16 16:15, Kenneth Graunke wrote: > Previously, the scalar TCS backend was generating: > > mov(8) g17<1>UD 0xUD{ align1 WE_all 1Q compacted }; > and(8) g17.2<1>UD g0.2<0,1,0>UD 0x0001e000UD { align1 W

Re: [Mesa-dev] [PATCH 4/4] i965: Fix barrier count shift in scalar TCS backend.

2016-08-17 Thread Alejandro Piñeiro
Reviewed-by: Alejandro Piñeiro On 17/08/16 16:15, Kenneth Graunke wrote: > The "Barrier Count" field goes in 14:9 of m0.2. The vec4 backend > correctly shifts by 9, but the scalar backend only shifted by 8. > > It's not like this changed - I think I just made a typo

Re: [Mesa-dev] [PATCH 2/4] i965: Implement the WaPreventHSTessLevelsInterference workaround.

2016-08-18 Thread Alejandro Piñeiro
t; + key.tes_primitive_mode = tes->info.TessEval.PrimitiveMode; > + key.quads_workaround = brw->gen < 9 && > + tes->info.TessEval.PrimitiveMode == GL_QUADS && > + tes->info.TessEval.Spacing == GL_EQU

[Mesa-dev] [PATCH] program_resource: subroutine active uniforms should return NumSubroutineUniforms

2016-08-19 Thread Alejandro Piñeiro
Before this commit, GetProgramInterfaceiv for pname ACTIVE_RESOURCES and all the _SUBROUTINE_UNIFORM programInterface were returning the count of resources on the shader program using that interface, instead of the number of active uniform resources. This would get a wrong value (for example) if th

Re: [Mesa-dev] [PATCH] program_resource: subroutine active uniforms should return NumSubroutineUniforms

2016-08-23 Thread Alejandro Piñeiro
On 22/08/16 10:03, Tapani Pälli wrote: > > On 08/19/2016 09:31 PM, Alejandro Piñeiro wrote: >> Before this commit, GetProgramInterfaceiv for pname ACTIVE_RESOURCES >> and all the _SUBROUTINE_UNIFORM programInterface were >> returning the count of resources on the s

[Mesa-dev] [PATCH v2] program_resource: subroutine active uniforms should return NumSubroutineUniforms

2016-08-23 Thread Alejandro Piñeiro
Before this commit, GetProgramInterfaceiv for pname ACTIVE_RESOURCES and all the _SUBROUTINE_UNIFORM programInterface were returning the count of resources on the shader program using that interface, instead of the num of uniform resources. This would get a wrong value (for example) if the shader h

[Mesa-dev] [PATCH] shaderapi: don't generate not linked error on GetProgramStage in general

2016-08-23 Thread Alejandro Piñeiro
Both ARB_shader_subroutine and the GL core spec doesn't list any error when the program is not linked. We left a error generation for the uniform location, in order to be consistent with other methods from the spec that generate them. --- On 23/08/16 10:14, Tapani Pälli wrote: > IMO it looks lik

Re: [Mesa-dev] [PATCH v2] program_resource: subroutine active uniforms should return NumSubroutineUniforms

2016-08-24 Thread Alejandro Piñeiro
On 24/08/16 11:13, Tapani Pälli wrote: > Reviewed-by: Tapani Pälli Thanks for the review. > > (one small coding-style suggestion below) I will not use this suggestion. Reason below. > > On 08/23/2016 06:33 PM, Alejandro Piñeiro wrote: >> Before this commit, GetProgram

Re: [Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

2016-08-25 Thread Alejandro Piñeiro
Reviewed-by: Alejandro Piñeiro On 25/08/16 14:24, Francesco Ansanelli wrote: > Signed-off-by: Francesco Ansanelli > --- > src/mesa/main/program_resource.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/mesa/main/program_resource.c > b/src/mesa/main/progr

Re: [Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

2016-08-25 Thread Alejandro Piñeiro
t;> -Emil >> ___ >> mesa-dev mailing list >> mesa-dev@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/mesa-dev > > ___ > mesa-dev mailing list > mesa-

Re: [Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

2016-08-25 Thread Alejandro Piñeiro
On 26/08/16 08:38, Alejandro Piñeiro wrote: > On 25/08/16 22:38, Ian Romanick wrote: >> On 08/25/2016 08:19 AM, Emil Velikov wrote: >>> On 25 August 2016 at 13:24, Francesco Ansanelli wrote: >>>> Signed-off-by: Francesco Ansanelli >>>> --- >>>&

Re: [Mesa-dev] [PATCH v2] mesa/main: Fix missing return in non void function

2016-08-25 Thread Alejandro Piñeiro
om_program_interface(GLenum programInterface) > case GL_COMPUTE_SUBROUTINE_UNIFORM: >return MESA_SHADER_COMPUTE; > default: > - assert(!"unexpected programInterface value"); > + unreachable("unexpected programInterface value"); > } >

Re: [Mesa-dev] [PATCH] egl: Document why EGL_OPENGL{, _ES}_API are mostly identical

2016-09-08 Thread Alejandro Piñeiro
gt; EGLBoolean > _eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy, _EGLConfig *conf, > With that fixed: Reviewed-by: Alejandro Piñeiro -- Alejandro Piñeiro ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] glsl: Make blend_colordodge compare against 1.0 - FLT_EPSILON.

2016-09-08 Thread Alejandro Piñeiro
resumably), which failed the dst >= 1.0 comparison. >> The blue channel would then fall through to the dst < 1.0 && src >= 0 >> comparison, which was true, since src.b == 0. This produced a factor >> of 0.0 instead of 1.0. >> >> To work around this, comp

Re: [Mesa-dev] [PATCH] glsl: Make blend_colordodge compare against 1.0 - FLT_EPSILON.

2016-09-10 Thread Alejandro Piñeiro
On 09/09/16 07:33, Francisco Jerez wrote: > Alejandro Piñeiro writes: > >> On 02/09/16 23:13, Kenneth Graunke wrote: >>> On Friday, August 26, 2016 10:49:18 PM PDT Kenneth Graunke wrote: >>>> This fixes a numerical precision issue that was causing two

[Mesa-dev] [PATCH 2/2] i965: remove unused variable at intel_miptree_create_for_teximage

2016-09-10 Thread Alejandro Piñeiro
After commit "i965: Fix calculation of the image height at start level", it is not needed. This commit removes the "warning: unused variable ‘i’" warning. --- src/mesa/drivers/dri/i965/intel_tex_image.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c

[Mesa-dev] [PATCH 1/2] i965: check for GL_TEXTURE_EXTERNAL_OES at miptree_create_for_teximage

2016-09-10 Thread Alejandro Piñeiro
Forgotten on commit "i965: Fix calculation of the image height at start level". Thanks to Ilia Mirkin for point it. Fixes the following regressions on Haswell and Broadwell: ES2-CTS.gtf.GL2ExtensionTests.egl_image_external.TestSimpleUnassociated (crash back to pass) ES2-CTS.gtf.GL2ExtensionTests

Re: [Mesa-dev] [PATCH] egl: fix gcc warning braces around scalar initializer

2016-09-12 Thread Alejandro Piñeiro
Reviewed-by: Alejandro Piñeiro On 12/09/16 01:24, Timothy Arceri wrote: > --- > src/egl/main/eglcurrent.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c > index 345f4cc..2a225bc 100644 &g

Re: [Mesa-dev] [PATCH 1/2] i965: check for GL_TEXTURE_EXTERNAL_OES at miptree_create_for_teximage

2016-09-12 Thread Alejandro Piñeiro
I forgot to CC Jason, that made the review of the original commit. Sorry for the noise. On 11/09/16 00:07, Alejandro Piñeiro wrote: > Forgotten on commit "i965: Fix calculation of the image height at start > level". > > Thanks to Ilia Mirkin for point it. > > Fix

Re: [Mesa-dev] [PATCH] i965: only try print GLSL IR once when using INTEL_DEBUG to dump ir

2016-11-04 Thread Alejandro Piñeiro
Nitpick: I found the commit message hard to understand until I read the summary. On 03/11/16 11:47, Timothy Arceri wrote: > Since we started releasing GLSL IR after linking the only time we can > print GLSL IR is during linking. When regenerating variants only NIR > will be available. > --- > src

Re: [Mesa-dev] [PATCH] i965: only try print GLSL IR once when using INTEL_DEBUG to dump ir

2016-11-05 Thread Alejandro Piñeiro
On 04/11/16 22:27, Timothy Arceri wrote: > On Fri, 2016-11-04 at 18:43 +0100, Alejandro Piñeiro wrote: >> Nitpick: I found the commit message hard to understand until I read >> the >> summary. > Ok I'll duplicate some of the summary in the commit message. Ok,

Re: [Mesa-dev] [PATCH] i965: Order write of query availablity with earlier writes

2016-11-05 Thread Alejandro Piñeiro
On 05/11/16 19:57, Chris Wilson wrote: > Currently we signal the availabilty of the query result using an typo: availability (this also affects commit message) > unordered pipe-control write. As it is unordered, it may be executed > before the write of the query result itself - and so an observer m

Re: [Mesa-dev] [PATCH] i965: Order write of query availablity with earlier writes

2016-11-21 Thread Alejandro Piñeiro
On 19/11/16 08:48, Chris Wilson wrote: > On Sat, Nov 05, 2016 at 11:48:57PM +0100, Alejandro Piñeiro wrote: >> On 05/11/16 19:57, Chris Wilson wrote: >>> Currently we signal the availabilty of the query result using an >> typo: availability (this also affects commit mes

Re: [Mesa-dev] [PATCH] mesa: fix active subroutine uniforms properly

2016-11-28 Thread Alejandro Piñeiro
TS.program_interface_query.subroutines-compute). So: Reviewed-by: Alejandro Piñeiro Thanks. > > Idealy we could probably completely remove > NumSubroutineUniforms and just compute its value when needed > from the resource list but this works for now. > > Cc: Alejandro Piñeiro > Cc

Re: [Mesa-dev] [PATCH] mesa: fix active subroutine uniforms properly

2016-11-29 Thread Alejandro Piñeiro
On 29/11/16 02:38, Timothy Arceri wrote: > On Mon, 2016-11-28 at 08:38 -0200, Alejandro Piñeiro wrote: >> On 26/11/16 21:31, Timothy Arceri wrote: >>> 07fe2d565b introduced a big hack in order to return >>> NumSubroutineUniforms when querying ACTIVE_RESOURCES for >>

[Mesa-dev] [PATCH] i965/blit: Remove Yf/Ys tiled check under a FIXME at can_fast_copy_blit

2016-12-06 Thread Alejandro Piñeiro
The FIXME suggest that the check should be removed. This change helps the following test: GL45-CTS.texture_cube_map_array.color_depth_attachments to pass consistently on Skylake GT3e. Without this patch, on Skylake GT3e that test has a ~76% pass rate, with some random intel_do_flush_locked errors

Re: [Mesa-dev] [PATCH] i965/blit: Remove Yf/Ys tiled check under a FIXME at can_fast_copy_blit

2016-12-07 Thread Alejandro Piñeiro
On 06/12/16 22:26, Anuj Phogat wrote: > On Tue, Dec 6, 2016 at 10:58 AM, Alejandro Piñeiro > wrote: >> The FIXME suggest that the check should be removed. >> > Only if we see any performance or feature benefits in doing that. > Last I checked I didn't see any perform

Re: [Mesa-dev] [PATCH] i965/blit: Remove Yf/Ys tiled check under a FIXME at can_fast_copy_blit

2016-12-07 Thread Alejandro Piñeiro
On 07/12/16 09:36, Alejandro Piñeiro wrote: > On 06/12/16 22:26, Anuj Phogat wrote: >> On Tue, Dec 6, 2016 at 10:58 AM, Alejandro Piñeiro >> wrote: >>> The FIXME suggest that the check should be removed. >>> >> Only if we see any performance or feature be

Re: [Mesa-dev] [PATCH] i965/blit: Remove Yf/Ys tiled check under a FIXME at can_fast_copy_blit

2016-12-08 Thread Alejandro Piñeiro
On 06/12/16 22:26, Anuj Phogat wrote: > On Tue, Dec 6, 2016 at 10:58 AM, Alejandro Piñeiro > wrote: >> The FIXME suggest that the check should be removed. >> > Only if we see any performance or feature benefits in doing that. > Last I checked I didn't see any perform

Re: [Mesa-dev] [RFC] main/copyimage: Add check for incomplete src or dst textures

2016-12-08 Thread Alejandro Piñeiro
On 08/12/16 10:59, Eduardo Lima Mitev wrote: > From OpenGL 4.5 Core Profile spec, section 18.3.2 (Copying Between Images), > page 517 of the PDF: > >"An INVALID_OPERATION error is generated if either object is a texture > and the texture is not complete (as defined in section 8.17), if the

Re: [Mesa-dev] [PATCH] glsl: Fix program interface queries relating to interface blocks.

2016-12-17 Thread Alejandro Piñeiro
f they don't apply to block members, then how > should members be named? Makes sense, although in a really convoluted way, as it seems very interpretative. But that goes back to the lack of clearness of the spec. Perhaps (I hope?) all this work would help to clarify it. > Unfortu

Re: [Mesa-dev] [PATCH] glsl: Fix program interface queries relating to interface blocks.

2016-12-19 Thread Alejandro Piñeiro
On 17/12/16 17:57, Kenneth Graunke wrote: > On Saturday, December 17, 2016 5:41:35 PM PST Alejandro Piñeiro wrote: >> On 17/12/16 03:35, Kenneth Graunke wrote: >>> This fixes 555 dEQP tests (using the nougat-cts-dev branch), Piglit's >>> arb_program_interface_q

Re: [Mesa-dev] [PATCH] glsl: Fix program interface queries relating to interface blocks.

2016-12-19 Thread Alejandro Piñeiro
On 17/12/16 17:57, Kenneth Graunke wrote: > On Saturday, December 17, 2016 5:41:35 PM PST Alejandro Piñeiro wrote: >> On 17/12/16 03:35, Kenneth Graunke wrote: >>> This fixes 555 dEQP tests (using the nougat-cts-dev branch), Piglit's >>> arb_program_interface_q

Re: [Mesa-dev] [PATCH] glsl: Drop bogus is_vertex_input from add_shader_variable().

2016-12-19 Thread Alejandro Piñeiro
lgtm Reviewed-by: Alejandro Piñeiro On 17/12/16 03:46, Kenneth Graunke wrote: > stage_mask is a bitmask of shader stages, so the proper comparison would > be (1 << MESA_SHADER_VERTEX), not MESA_SHADER_VERTEX itself. > > But we only care for structure types, and VS inputs canno

Re: [Mesa-dev] [PATCH] glsl: Elminate the open-coded version of process_block_array_leaf

2016-12-20 Thread Alejandro Piñeiro
typo on the subject: "Eliminate" On 20/12/16 00:45, Timothy Arceri wrote: > Reviewed-by: Timothy Arceri > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev ___

[Mesa-dev] [PATCH v2] docs: update MESA_DEBUG envvar documentation.

2016-06-29 Thread Alejandro Piñeiro
silent, flush, incomplete_tex and incomplete_fbo flags were not documented (see src/mesa/main.debug.c for more info). FP is not checked anymore. v2 (Brian Paul): * MESA_DEBUG accepts a comma-separated list of parameters. * Clarify how MESA_DEBUG behaves with mesa debug and release builds. * Up

[Mesa-dev] [PATCH v3] i965: intel_texture_barrier reimplemented

2016-06-30 Thread Alejandro Piñeiro
Fixes: GL44-CTS.texture_barrier_ARB.same-texel-rw-multipass On Haswell, Broadwell and Skylake (note that in order to execute that test, it is needed to override GL and GLSL versions). On gen6 this test was already working without this change. It keeps working after it. This commit replaces the c

Re: [Mesa-dev] [PATCH v3] i965: intel_texture_barrier reimplemented

2016-06-30 Thread Alejandro Piñeiro
e only place we have this problem in > the GL driver. We should probably fix it in brw_emit_pipe_control. > > On Jun 30, 2016 12:00 AM, "Alejandro Piñeiro" <mailto:apinhe...@igalia.com>> wrote: > > Fixes: > GL44-CTS.texture_barrier_ARB.same-texel-rw-mul

Re: [Mesa-dev] [PATCH v3] i965: intel_texture_barrier reimplemented

2016-06-30 Thread Alejandro Piñeiro
On 30/06/16 23:16, Francisco Jerez wrote: > Alejandro Piñeiro writes: > >> Fixes: >> GL44-CTS.texture_barrier_ARB.same-texel-rw-multipass >> >> On Haswell, Broadwell and Skylake (note that in order to execute that >> test, it is needed to override GL and GLS

Re: [Mesa-dev] [PATCH v2] docs: update MESA_DEBUG envvar documentation.

2016-06-30 Thread Alejandro Piñeiro
On 30/06/16 15:28, Brian Paul wrote: > On 06/29/2016 09:50 AM, Alejandro Piñeiro wrote: >> silent, flush, incomplete_tex and incomplete_fbo flags were not >> documented (see src/mesa/main.debug.c for more info). >> >> FP is not checked anymore. >> >> v2 (B

Re: [Mesa-dev] [PATCH 1/4] i965: Emit SNB write cache flush W/A from brw_emit_pipe_control_flush.

2016-06-30 Thread Alejandro Piñeiro
Looks good to me: Reviewed-by: Alejandro Piñeiro On 01/07/16 07:07, Francisco Jerez wrote: > Shouldn't cause any functional changes at this point, but we have > forgotten to apply this workaround several times in the past, make > sure it doesn't happen again. > --- >

Re: [Mesa-dev] [PATCH 2/4] i965: Emit SKL VF cache invalidation W/A from brw_emit_pipe_control_flush.

2016-06-30 Thread Alejandro Piñeiro
Looks good to me: Reviewed-by: Alejandro Piñeiro Note: I think that patches 3-4 should be reviewed by a more seasoned developer (specially patch 3). On 01/07/16 07:07, Francisco Jerez wrote: > There were two places in the driver doing a pipe control VF cache > flush, one of them was m

[Mesa-dev] [PATCH] mesa/main: fix error checking logic on CopyImageSubData

2016-07-01 Thread Alejandro Piñeiro
For the case (both src or dst) where we had a texobject, but the texobject target was not the same that the method target, this spec paragraph was appplied: /* Section 18.3.2 (Copying Between Images) of the OpenGL 4.5 Core * Profile spec says: * * "An INVALID_VALUE error is generated if

Re: [Mesa-dev] [PATCH] mesa/main: fix error checking logic on CopyImageSubData

2016-07-02 Thread Alejandro Piñeiro
lai Hähnle > > On 01.07.2016 19:03, Alejandro Piñeiro wrote: >> For the case (both src or dst) where we had a texobject, but the >> texobject target was not the same that the method target, this spec >> paragraph was appplied: >> >> /* Section 18.3.2 (Copying

Re: [Mesa-dev] [PATCH v3] i965: intel_texture_barrier reimplemented

2016-07-08 Thread Alejandro Piñeiro
g. I will start to look to this problem, but any idea/feedback to get it solved would be welcome. BR [1] https://cgit.freedesktop.org/piglit/commit/?id=8cb75a1bc1cbdec0e0c8f9a9b10631a369df2f5b On 30/06/16 23:16, Francisco Jerez wrote: > Alejandro Piñeiro writes: > &

Re: [Mesa-dev] [PATCH v3] i965: intel_texture_barrier reimplemented

2016-07-08 Thread Alejandro Piñeiro
Forget the previous email. It was an error on the test. The texture barrier works fine. Sorry for the noise. BR On 08/07/16 15:58, Alejandro Piñeiro wrote: > Hi, today I was updating the piglit test, as I got a detailed review. > While testing the changes, I found that there are some para

[Mesa-dev] [PATCH] main/shaderimage: image unit invalid if texture is incomplete, independently of the level

2016-07-14 Thread Alejandro Piñeiro
Without this commit, a image is considered valid if the level of the texture bound to the image is complete, something we can check as mesa save independently if it is "base incomplete" of "mipmap incomplete". But, from the OpenGL 4.3 Core Specification, section 8.25 ("Texture Image Loads and Stor

Re: [Mesa-dev] [PATCH] main/shaderimage: image unit invalid if texture is incomplete, independently of the level

2016-07-15 Thread Alejandro Piñeiro
On 14/07/16 21:24, Francisco Jerez wrote: > Alejandro Piñeiro writes: > >> Without this commit, a image is considered valid if the level of the >> texture bound to the image is complete, something we can check as mesa >> save independently if it is "base inco

[Mesa-dev] [PATCH v2] main/shaderimage: image unit is invalid if texture is incomplete

2016-07-15 Thread Alejandro Piñeiro
From the OpenGL 4.3 Core Specification, section 8.25 ("Texture Image Loads and Stores"): "An access is considered invalid if: the texture bound to the selected image unit is incomplete;" This fixes: GL44-CTS.shader_image_load_store.incomplete_textures v2: use _mesa_is_texture_complete, mai

Re: [Mesa-dev] [PATCH v4 29/34] i965/gen4-6: Use the generic ISL-based path for texture surfaces

2016-07-16 Thread Alejandro Piñeiro
Don't know if there are still some missing patches to be submitted to master, but this patch caused regressions on skylake on the following CTS tests: * GL44-CTS.texture_cube_map_array.image_texture_size.texture_size_compute_sh * GL44-CTS.texture_cube_map_array.image_texture_size.textu

Re: [Mesa-dev] [PATCH v4 29/34] i965/gen4-6: Use the generic ISL-based path for texture surfaces

2016-07-16 Thread Alejandro Piñeiro
On 16/07/16 16:29, Jason Ekstrand wrote: > > On Jul 16, 2016 3:59 AM, "Alejandro Piñeiro" <mailto:apinhe...@igalia.com>> wrote: > > > > Don't know if there are still some missing patches to be submitted to > > master, but this patch caused regre

Re: [Mesa-dev] [PATCH] main/shaderimage: image unit invalid if texture is incomplete, independently of the level

2016-07-18 Thread Alejandro Piñeiro
Hi, On 15/07/16 22:46, Francisco Jerez wrote: > Alejandro Piñeiro writes: > >> On 14/07/16 21:24, Francisco Jerez wrote: >>> Alejandro Piñeiro writes: >>> >>>> Without this commit, a image is considered valid if the level of the >>>> te

Re: [Mesa-dev] [PATCH 02/15] i965: enable component packing for vs and fs

2016-07-19 Thread Alejandro Piñeiro
Is this the correct version of the patch? It uses nir_lower_io with 4 parameters, while nir_lower_io on master uses 3 (and afaik, it has been using 3 for a while). FWIW, this patch doesn't apply cleanly with current master mesa. BR On 19/07/16 08:33, Timothy Arceri wrote: > Rather than trying to

Re: [Mesa-dev] [PATCH 01/15] i965: bring back type_size_vec4_times_4()

2016-07-20 Thread Alejandro Piñeiro
Reviewed-by: Alejandro Piñeiro On 19/07/16 08:33, Timothy Arceri wrote: > We will use this for output varyings. To make component > packing simpler we will just treat all varyings as vec4s. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 13 + > src/mesa/d

Re: [Mesa-dev] [PATCH 02/15] i965: enable component packing for vs and fs

2016-07-20 Thread Alejandro Piñeiro
wed-by: Alejandro Piñeiro > --- > src/mesa/drivers/dri/i965/brw_fs.h | 1 - > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 22 ++ > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 10 ++ > src/mesa/drivers/dri/i965/brw_nir.c | 8 --

Re: [Mesa-dev] [PATCH 03/15] i965: add component packing support for load_output intrinsics

2016-07-20 Thread Alejandro Piñeiro
I miss a little explanation on the commit message (like on commit 8), but that is just personal preference (and in general I personally tend to be too verbose on the commit messages). Either if you add a little explanation or not: Reviewed-by: Alejandro Piñeiro On 19/07/16 08:33, Timothy

Re: [Mesa-dev] [PATCH 04/15] nir: add doubles component packing support

2016-07-20 Thread Alejandro Piñeiro
of becoming an add-more-comments-pain-in-the-neck, probably it is worth to expand a little the comment below. > + > + locations[idx + 1][var->data.index] = location + offset; > +} > + > location += type_size(var->type); >

  1   2   3   4   5   6   7   8   9   10   >