Re: [Mesa-dev] [PATCH v2] i965: do not round line width when multisampling or antialiaing are enabled

2015-06-10 Thread Iago Toral
On Wed, 2015-06-10 at 17:03 -0700, Kenneth Graunke wrote: > On Wednesday, June 10, 2015 09:07:32 AM Iago Toral Quiroga wrote: > > In commit fe74fee8fa721a we rounded the line width to the nearest integer to > > match the GLES3 spec requirements stated in section 13.4.2.1, but th

Re: [Mesa-dev] [PATCH] i965/gen8: Fix antialiased line rendering with width < 1.5

2015-06-11 Thread Iago Toral
On Thu, 2015-06-11 at 00:18 -0700, Kenneth Graunke wrote: > On Thursday, June 11, 2015 09:03:37 AM Iago Toral Quiroga wrote: > > The same fix Marius implemented for gen6 (commit a9b04d8a) and > > gen7 (commit 24ecf37a). > > --- > > src/mesa/drivers/dr

Re: [Mesa-dev] [PATCH] nir: Recognize max(min(a, 1.0), 0.0) as fsat(a).

2015-06-11 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-11 at 01:59 -0700, Kenneth Graunke wrote: > We already recognize min(max(a, 0.0), 1.0) as a saturate, but neglected > this variant (which is also handled by the GLSL IR pass). > > shader-db results on Broadwell: > total instruc

Re: [Mesa-dev] [PATCH] i965: Re-index SSA definitions before printing NIR code.

2015-06-11 Thread Iago Toral
Thanks Ken, this does make debugging NIR code a bit easier :) Reviewed-by: Iago Toral Quiroga On Wed, 2015-06-10 at 02:39 -0700, Kenneth Graunke wrote: > This makes the SSA definitions use sequential numbers (0, 1, 2, ...) > instead of seemingly random ones. There's not much poi

Re: [Mesa-dev] [PATCH 0.5/3] mesa: Handle integer formats in need_rgb_to_luminance_conversion()

2015-06-15 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-11 at 09:58 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mesa/main/readpix.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix

Re: [Mesa-dev] [PATCH 1/3] mesa: Use helper function need_rgb_to_luminance_conversion()

2015-06-15 Thread Iago Toral
Oh, I missed that we had that helper function available for this... With the patch that adds the integer formats to the helper function this is: Reviewed-by: Iago Toral Quiroga On Wed, 2015-06-10 at 16:54 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mesa/main/

Re: [Mesa-dev] [PATCH 2/9] i965: Fix textureGrad with cube samplers

2015-06-17 Thread Iago Toral
On Tue, 2015-06-16 at 23:52 -0700, Ben Widawsky wrote: > On Tue, Feb 24, 2015 at 07:02:50PM +0100, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > We can't use sampler messages with gradient information (like > > sample_g or sample_d) to deal with

Re: [Mesa-dev] [PATCH 2/9] i965: Fix textureGrad with cube samplers

2015-06-17 Thread Iago Toral
On Tue, 2015-06-16 at 23:52 -0700, Ben Widawsky wrote: > On Tue, Feb 24, 2015 at 07:02:50PM +0100, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > We can't use sampler messages with gradient information (like > > sample_g or sample_d) to deal with

Re: [Mesa-dev] [PATCH] nir: add helper to get # of src/dest components

2015-06-17 Thread Iago Toral
ead, so if nobody else has objections this is: Reviewed-by: Iago Toral Quiroga > Signed-off-by: Rob Clark > --- > v2: Added similar helper for nir_src, and cleaned up a few places that > open coded this. There are a couple left (such as validate_alu_src()) > but that handle is_pa

Re: [Mesa-dev] [PATCH v2 23/82] glsl: Do not do CSE for expressions involving SSBO loads

2015-06-17 Thread Iago Toral
even if we have multiple invocations, keeping the relative order of reads and writes within each one is necessary. Iago > -Jordan > > On 2015-06-03 00:01:13, Iago Toral Quiroga wrote: > > SSBOs are read/write and this CSE pass only handles read-only variables. > > ---

Re: [Mesa-dev] [PATCH 02/14] meta: Fix transfer operations check in meta pbo path for readpixels

2015-06-18 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Without this patch, arb_color_buffer_float-readpixels test fails, when > forced to use meta pbo path. > > Signed-off-by: Anuj Phogat > Cc: > --- > src/mesa/drivers/common/meta_tex_subimage.c | 10 ++ > 1 file changed, 6 insertions(

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-06-18 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > Cc: > --- > src/mesa/main/readpix.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c > index caa2648..a9416ef 100644 > --- a/src/mesa/main/readpix.c >

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-06-18 Thread Iago Toral
On Thu, 2015-06-18 at 09:19 -0700, Anuj Phogat wrote: > On Thu, Jun 18, 2015 at 7:09 AM, Iago Toral wrote: > > On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > >> Signed-off-by: Anuj Phogat > >> Cc: > >> --- > >> src/mesa/main/readpi

Re: [Mesa-dev] [PATCH 01/17] i965/fs: Use a switch statement in fs_inst::regs_read()

2015-06-19 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-18 at 17:50 -0700, Jason Ekstrand wrote: > This makes things a little simpler, more efficient, and quite a bit more > readable. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 45 > ++-- >

Re: [Mesa-dev] [PATCH 02/17] i965/fs: Fix fs_inst::regs_read() for uniform pull constant loads

2015-06-19 Thread Iago Toral
; explicitly be always one register. Right, in fact we were incorrectly computing a size of 2 registers in SIMD16 executions because of this. Reviewed-by: Iago Toral Quiroga > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 6 ++ > 1 file changed, 6 insertions(+) > > d

Re: [Mesa-dev] [PATCH 03/17] i965/fs: Report the right value in fs_inst::regs_read() for PIXEL_X/Y

2015-06-19 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-18 at 17:50 -0700, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/mesa/drivers/dri/i965/brw_fs.c

Re: [Mesa-dev] [PATCH 04/17] i965/fs: Explicitly set the exec_size on the add(32) in interpolation setup

2015-06-19 Thread Iago Toral
On Thu, 2015-06-18 at 17:50 -0700, Jason Ekstrand wrote: > Soon we will start using the builder to explicitly set all the execution > sizes. We could make a 32-wide builder, but the builder asserts that we > never grow it which is usually a reasonable assumption. Sinc this one > instruction is a

Re: [Mesa-dev] [PATCH 04/17] i965/fs: Explicitly set the exec_size on the add(32) in interpolation setup

2015-06-21 Thread Iago Toral
On Fri, 2015-06-19 at 07:01 -0700, Jason Ekstrand wrote: > > On Jun 19, 2015 5:09 AM, "Iago Toral" wrote: > > > > On Thu, 2015-06-18 at 17:50 -0700, Jason Ekstrand wrote: > > > Soon we will start using the builder to explicitly set all the > executi

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-06-21 Thread Iago Toral
On Fri, 2015-06-19 at 13:32 -0700, Anuj Phogat wrote: > On Thu, Jun 18, 2015 at 11:41 PM, Iago Toral wrote: > > On Thu, 2015-06-18 at 09:19 -0700, Anuj Phogat wrote: > >> On Thu, Jun 18, 2015 at 7:09 AM, Iago Toral wrote: > >> > On Tue, 2015-06-16 at

Re: [Mesa-dev] [PATCH v2 26/82] glsl: Don't do copy propagation on buffer variables

2015-06-22 Thread Iago Toral
be we can check if we are using any memorybarriers in the shader code and decide if we want to enable these optimizations for ssbos based on that. I think we can try to do that in a later patch. Iago > -Jordan > > On 2015-06-03 00:01:16, Iago Toral Quiroga wrote: > > Since the back

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-06-22 Thread Iago Toral
On Mon, 2015-06-22 at 12:35 -0700, Anuj Phogat wrote: > On Sun, Jun 21, 2015 at 11:25 PM, Iago Toral wrote: > > On Fri, 2015-06-19 at 13:32 -0700, Anuj Phogat wrote: > >> On Thu, Jun 18, 2015 at 11:41 PM, Iago Toral wrote: > >> > On Thu, 2015-06-18 at 09:19 -0700,

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-06-23 Thread Iago Toral
On Tue, 2015-06-23 at 08:54 +0200, Iago Toral wrote: > On Mon, 2015-06-22 at 12:35 -0700, Anuj Phogat wrote: > > On Sun, Jun 21, 2015 at 11:25 PM, Iago Toral wrote: > > > On Fri, 2015-06-19 at 13:32 -0700, Anuj Phogat wrote: > > >> On Thu, Jun 18, 2015 at 11:41 PM,

Re: [Mesa-dev] [PATCH 06/17] i965/blorp: Explicitly set execution sizes for new'd instructions

2015-06-23 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-18 at 17:51 -0700, Jason Ekstrand wrote: > This doesn't affect instructions allocated using the builder. > --- > src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) >

Re: [Mesa-dev] [PATCH 05/17] i965/fs: Set the builder group for emitting FB-write stencil/AA alpha

2015-06-23 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-18 at 17:50 -0700, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp > b/src/mes

Re: [Mesa-dev] [PATCH 07/17] i965/fs: Move offset() and half() to the fs_builder

2015-06-23 Thread Iago Toral
On Thu, 2015-06-18 at 17:51 -0700, Jason Ekstrand wrote: > We want to move these into the builder so that they know the current > builder's dispatch width. This will be needed by a later commit. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 52 ++ > src/mesa/drivers/dri/i965/brw

Re: [Mesa-dev] [PATCH v2 26/82] glsl: Don't do copy propagation on buffer variables

2015-06-24 Thread Iago Toral
On Tue, 2015-06-23 at 15:45 -0700, Jordan Justen wrote: > On 2015-06-22 23:38:14, Iago Toral wrote: > > On Mon, 2015-06-22 at 14:28 -0700, Jordan Justen wrote: > > > 24-26 once again makes me wonder if these optimization *can* be used > > > with SSBOs based on

Re: [Mesa-dev] [PATCH v2 23/82] glsl: Do not do CSE for expressions involving SSBO loads

2015-06-24 Thread Iago Toral
On Wed, 2015-06-24 at 15:43 +0300, Francisco Jerez wrote: > Iago Toral writes: > > > On Wed, 2015-06-17 at 17:20 -0700, Jordan Justen wrote: > >> I wanted to question whether this was required, based on this text > >> from the extension spec: > >> >

Re: [Mesa-dev] [PATCH v2 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-06-24 Thread Iago Toral
to use the meta pbo path. > > v2: Make need_rgb_to_luminance_conversion() a static function. (Iago) I think you meant "need_signed_unsigned_int_conversion()" here Other than that: Reviewed-by: Iago Toral Quiroga > Bump up the comment and the commit message.

Re: [Mesa-dev] [PATCH v2 03/19] i965/fs: Fix fs_inst::regs_read() for uniform pull constant loads

2015-06-25 Thread Iago Toral
; explicitly be always one register. > > Reviewed-by: Iago Toral Quiroga > > v2: Use mlen for determining the number of registers written I think you meant read instead of written. With that change my review stays, I had also missed that skylake required a header. Iago

Re: [Mesa-dev] [PATCH v2 05/19] i965/fs: Explicitly set the exec_size on the add(32) in interpolation setup

2015-06-25 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-25 at 13:24 -0700, Jason Ekstrand wrote: > Soon we will start using the builder to explicitly set all the execution > sizes. We could make a 32-wide builder, but the builder asserts that we > never grow it which is usually a reasonable a

Re: [Mesa-dev] [PATCH v2 08/19] i965/fs: Move offset(fs_reg, unsigned) to brw_fs.h

2015-06-25 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-06-25 at 13:24 -0700, Jason Ekstrand wrote: > Shortly, offset() will depend on the builder so we need it moved to some > place where it has access to that. > --- > src/mesa/drivers/dri/i965/brw_fs.h| 21 + > s

Re: [Mesa-dev] [PATCH] mesa: remove unnecessary checks in _mesa_readpixels_needs_slow_path

2015-06-28 Thread Iago Toral
On Mon, 2015-06-29 at 15:21 +0900, Michel Dänzer wrote: > On 25.06.2015 21:42, Marek Olšák wrote: > > Gallium should be alright. We'll let you know if we find a regression, > > but I don't think there will be any. > > Famous last words. :) This change broke the piglit test > spec@ext_texture_integ

Re: [Mesa-dev] [PATCH v2 02/14] meta: Fix transfer operations check in meta pbo path for readpixels

2015-06-28 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Fri, 2015-06-26 at 13:15 -0700, Anuj Phogat wrote: > Currently used ctx->_ImageTransferState check is not sufficient > because it doesn't include the read color clamping enabled with > GL_CLAMP_READ_COLOR. So, use th

Re: [Mesa-dev] [PATCH v2 23/82] glsl: Do not do CSE for expressions involving SSBO loads

2015-06-29 Thread Iago Toral
On Mon, 2015-06-29 at 00:11 -0700, Jordan Justen wrote: > On 2015-06-24 07:36:24, Iago Toral wrote: > > On Wed, 2015-06-24 at 15:43 +0300, Francisco Jerez wrote: > > > AFAICT the reason why this (and many of the other changes in GLSL > > > optimization passes) is needed

Re: [Mesa-dev] [PATCH 06/78] i965/nir/vec4: Add setup of uniform variables

2015-06-30 Thread Iago Toral
Hi Jason, On Mon, 2015-06-29 at 16:22 -0700, Jason Ekstrand wrote: > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > This is based on similar code existing in vec4_visitor. It builds the > > uniform register file ite

Re: [Mesa-dev] [PATCH] mesa: reset the source packing when creating temp transfer image

2015-07-01 Thread Iago Toral
efault which should be appropriate for the floats used. > > Fixes: 4b249d2ee (mesa: Handle transferOps in texstore_rgba) > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91173 > Signed-off-by: Ilia Mirkin > Cc: "10.5 10.6" Looks correct to me, thanks for fixin

Re: [Mesa-dev] [PATCH 13/78] i965/nir/vec4: Implement conditional statements (nir_cf_node_if)

2015-07-01 Thread Iago Toral
On Tue, 2015-06-30 at 09:30 -0700, Jason Ekstrand wrote: > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > The same we do in the FS NIR backend, only that here we need to consider > > the number of components in the condi

Re: [Mesa-dev] [PATCH 19/78] nir/nir_lower_io: Add vec4 support

2015-07-02 Thread Iago Toral
) function we need to call then I'll look into having separate paths for scalar and vec4. Iago > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > The current implementation operates in scalar mode only, so add a vec4 > &g

Re: [Mesa-dev] [PATCH 20/78] i965/nir/vec4: Implement load_uniform intrinsic

2015-07-02 Thread Iago Toral
On Tue, 2015-06-30 at 11:53 -0700, Jason Ekstrand wrote: > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > For the indirect case we need to take the index delivered by > > NIR and compute the parent uniform that we are

Re: [Mesa-dev] [PATCH 20/78] i965/nir/vec4: Implement load_uniform intrinsic

2015-07-02 Thread Iago Toral
On Thu, 2015-07-02 at 09:33 +0200, Iago Toral wrote: > On Tue, 2015-06-30 at 11:53 -0700, Jason Ekstrand wrote: > > On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev > > wrote: > > > From: Iago Toral Quiroga > > > > > > For the indirect case we nee

Re: [Mesa-dev] [PATCH 13/78] i965/nir/vec4: Implement conditional statements (nir_cf_node_if)

2015-07-03 Thread Iago Toral
On Thu, 2015-07-02 at 10:11 -0700, Jason Ekstrand wrote: > On Wed, Jul 1, 2015 at 11:44 PM, Iago Toral wrote: > > On Tue, 2015-06-30 at 09:30 -0700, Jason Ekstrand wrote: > >> On Fri, Jun 26, 2015 at 1:06 AM, Eduardo Lima Mitev > >> wrote: > >> > From: Iag

Re: [Mesa-dev] [PATCH 19/78] nir/nir_lower_io: Add vec4 support

2015-07-03 Thread Iago Toral
On Thu, 2015-07-02 at 09:31 +0200, Iago Toral wrote: > On Tue, 2015-06-30 at 11:32 -0700, Jason Ekstrand wrote: > > I'm not sure what I think about adding an is_scalar flag vs. having > > _scalar and _vec4 versions of each function. My feeling is that once > > we tweak

Re: [Mesa-dev] [PATCH v2 23/82] glsl: Do not do CSE for expressions involving SSBO loads

2015-07-03 Thread Iago Toral
On Fri, 2015-07-03 at 13:23 +0300, Francisco Jerez wrote: > Samuel Iglesias Gonsálvez writes: > > > On 29/06/15 09:11, Jordan Justen wrote: > >> On 2015-06-24 07:36:24, Iago Toral wrote: > >>> On Wed, 2015-06-24 at 15:43 +0300, Francisco Jerez wrote: > >&

Re: [Mesa-dev] [PATCH 13/78] i965/nir/vec4: Implement conditional statements (nir_cf_node_if)

2015-07-05 Thread Iago Toral
On Sun, 2015-07-05 at 19:14 -0700, Jason Ekstrand wrote: > On Fri, Jul 3, 2015 at 12:32 AM, Iago Toral wrote: > > On Thu, 2015-07-02 at 10:11 -0700, Jason Ekstrand wrote: > >> On Wed, Jul 1, 2015 at 11:44 PM, Iago Toral wrote: > >> > On Tue, 2015-06-30 at 09:

Re: [Mesa-dev] [PATCH 1/2] i965: Set brw->batch.emit only #ifdef DEBUG.

2015-07-09 Thread Iago Toral
Even if your next patch needs more work this one alone still makes sense: Reviewed-by: Iago Toral Quiroga Iago On Wed, 2015-07-08 at 14:00 -0700, Matt Turner wrote: > It's only used inside #ifdef DEBUG. Cuts ~1.7k of .text, and more > importantly prevents a larger code size regres

Re: [Mesa-dev] [PATCH] mesa: Fix generation of git_sha1.h.tmp for gitlinks

2015-07-09 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Thu, 2015-07-09 at 18:59 -0700, Chad Versace wrote: > Don't assume that $(top_srcdir)/.git is a directory. It may be a > gitlink file [1] if $(top_srcdir) is a submodule checkout or a linked > worktree [2]. > > [1] A "gitlink" is

Re: [Mesa-dev] [PATCH] glsl: use set rather than old hash table for ir_validate

2015-07-10 Thread Iago Toral
it makes sense to claim the same for it. Timothy: maybe it is a good idea to add some text like that to the commit log for future reference. With that: Reviewed-by: Iago Toral Quiroga Iago > On Fri, Jul 10, 2015 at 6:41 PM, Timothy Arceri wrote: > > This implementation should be fast

Re: [Mesa-dev] [PATCH v3 (part1) 00/26] ARB_shader_storage_buffer_object (mesa)

2015-07-10 Thread Iago Toral
On Fri, 2015-07-10 at 12:13 +0200, Iago Toral Quiroga wrote: > As discussed with Jordan, this v3-part1 series contains a good part of the > frontend stuff (most of which has already been reviewed). The idea is to get > this landed ahead, since some of the remaining patches (specifically

Re: [Mesa-dev] [PATCH 1/5] i965: Move BEGIN_BATCH() into same control flow as ADVANCE_BATCH().

2015-07-13 Thread Iago Toral
I think Chris did not review this one: Reviewed-by: Iago Toral Quiroga Iago On Fri, 2015-07-10 at 11:44 -0700, Matt Turner wrote: > BEGIN_BATCH() and ADVANCE_BATCH() will contain "do {" and "} while (0)" > respectively to allow declaring local variables used by inte

Re: [Mesa-dev] [PATCH] glsl: free interface_types and replace old hash_table uses

2015-07-13 Thread Iago Toral
NULL; > + } I think it is probably best to put the destruction of interface_types in a separate patch, it is a different issue after all. You can add my Reviewed-by on that patch. With that and a couple of other minor nitpicks I mention below fixed, this is: Reviewed-by: Iago Toral Quiro

Re: [Mesa-dev] [PATCH v3 (part2) 00/56] ARB_shader_storage_buffer_object (mesa, i965)

2015-07-14 Thread Iago Toral
BTW, notice that patches 1-3, 5-7 and 51 have already been reviewed by Jordan. Iago On Tue, 2015-07-14 at 09:46 +0200, Iago Toral Quiroga wrote: > This is the second part of the v3 series including remaining frontend bits > like the optional unsized array at the bottom of SSBO defin

Re: [Mesa-dev] [PATCH 04/13] i965: Use float calculations when double is unnecessary.

2015-07-14 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > Literals without an f/F suffix are of type double, and implicit > conversion rules specify that the float in (float op double) be > converted to a double before the operation is performed. I beli

Re: [Mesa-dev] [PATCH 05/13] nir: Avoid double promition.

2015-07-14 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > --- > src/glsl/nir/nir_opcodes.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py > index 56e96

Re: [Mesa-dev] [PATCH v3 (part2) 54/56] docs: Mark ARB_shader_storage_buffer_object as done for i965.

2015-07-14 Thread Iago Toral
his at some point and did not see any issues with enabling this for GLES 3.1 at the time but then I forgot to enable it, but I need to double check this though. Iago > > Cheers > > > Mike > > On Tue, 14 Jul 2015 at 08:48 Iago Toral Quiroga > wrote: > >

Re: [Mesa-dev] [PATCH 05/13] nir: Avoid double promition.

2015-07-14 Thread Iago Toral
On Tue, 2015-07-14 at 11:30 +0200, Iago Toral wrote: > Reviewed-by: Iago Toral Quiroga BTW, ldexpf and copysignf are c99 too, so I guess you'll need to wrap these too. Iago > On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > > --- > > src/glsl/nir/nir_opcodes.

Re: [Mesa-dev] [PATCH 06/13] gallium/auxiliary: Avoid double promotion.

2015-07-14 Thread Iago Toral
This one will need wrapping for fabsf. Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > --- > src/gallium/auxiliary/util/u_format_rgb9e5.h | 2 +- > src/gallium/auxiliary/util/u_math.h | 2 +- > 2 files changed, 2 insertions(+),

Re: [Mesa-dev] [PATCH 07/13] util: Avoid double promition.

2015-07-14 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > --- > src/util/register_allocate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c > index 2ad8c

Re: [Mesa-dev] [PATCH 08/13] vbo: Avoid double promotion.

2015-07-14 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > --- > src/mesa/vbo/vbo_context.c| 6 +++--- > src/mesa/vbo/vbo_exec_array.c | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/src/mesa/vbo/vbo_contex

Re: [Mesa-dev] [PATCH 09/13] tnl: Avoid double promotion.

2015-07-14 Thread Iago Toral
On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > There are a couple of unrelated changes in t_vb_lighttmp.h that I hope > you'll excuse -- there's a block of code that's duplicated modulo a few > trivial differences that I took the liberty of fixing. > --- > src/mesa/tnl/t_draw.c

Re: [Mesa-dev] [PATCH 10/13] swrast: Avoid double promotion.

2015-07-14 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > --- > src/mesa/swrast/s_aaline.c| 28 ++-- > src/mesa/swrast/s_aalinetemp.h| 4 ++-- > src/mesa/swrast/s_atifragshader.c | 4 ++-- > src/mesa/swr

Re: [Mesa-dev] [PATCH 11/13] program: Avoid double promotion.

2015-07-14 Thread Iago Toral
Needs wrappers for sinf, cosf, powf, logf. Reviewed-by: Iago Toral Quiroga On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > --- > src/mesa/program/prog_execute.c | 30 +++--- > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff --git a/s

Re: [Mesa-dev] [PATCH 12/13] mesa/math: Avoid double promotion.

2015-07-14 Thread Iago Toral
static GLboolean invert_matrix_3d( GLmatrix *mat ) > MAT(in,0,1) * MAT(in,0,1) + > MAT(in,0,2) * MAT(in,0,2)); > > - if (scale == 0.0) > + if (scale == 0.0F) > return GL_FALSE; > >scale = 1.0F / sc

Re: [Mesa-dev] [PATCH 12/13] mesa/math: Avoid double promotion.

2015-07-14 Thread Iago Toral
On Tue, 2015-07-14 at 13:19 +0200, Iago Toral wrote: > On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote: > > --- > > src/mesa/math/m_clip_tmp.h | 20 ++--- > > src/mesa/math/m_matrix.c | 70 > > +++--- > >

Re: [Mesa-dev] [PATCH 13/13] mesa: Avoid double promotion.

2015-07-14 Thread Iago Toral
case GL_SPOT_CUTOFF: > - assert(params[0] == 180.0 || (params[0] >= 0.0 && params[0] <= 90.0)); > + assert(params[0] == 180.0F || (params[0] >= 0.0F && params[0] <= > 90.0F)); >if (light->SpotCutoff == params[0]) >

[Mesa-dev] Register spilling issues in the NIR->vec4 backend

2015-07-15 Thread Iago Toral
Hi, when we sent the patches for the new nir->vec4 backend we mentioned that we had a few dEQP tests that would fail to link because of register spilling. Now that we have added GS support we see a few instances of this problem popping up in a few GS piglit tests too, for example this one: tests/

Re: [Mesa-dev] Register spilling issues in the NIR->vec4 backend

2015-07-15 Thread Iago Toral
On Wed, 2015-07-15 at 11:02 -0700, Connor Abbott wrote: > On Wed, Jul 15, 2015 at 7:49 AM, Iago Toral wrote: > > Hi, > > > > when we sent the patches for the new nir->vec4 backend we mentioned that > > we had a few dEQP tests that would fail to link because of regi

Re: [Mesa-dev] [PATCH v2 02/14] meta: Fix transfer operations check in meta pbo path for readpixels

2015-07-20 Thread Iago Toral
'll have a look at the patches. Iag > On Sun, Jun 28, 2015 at 11:29 PM, Iago Toral wrote: > > Reviewed-by: Iago Toral Quiroga > > > > On Fri, 2015-06-26 at 13:15 -0700, Anuj Phogat wrote: > >> Currently used ctx->_ImageTransferState check is not sufficient

Re: [Mesa-dev] [PATCH 01/14] mesa: Turn get_readpixels_transfer_ops() in to a global function

2015-07-20 Thread Iago Toral
re any transfer ops. */ > - return get_readpixels_transfer_ops(ctx, rb->Format, format, type, > + return _mesa_get_readpixels_transfer_ops(ctx, rb->Format, format, type, > uses_blit) != 0; With the change, indentation for the second

Re: [Mesa-dev] [PATCH 04/14] mesa: Add a mesa utility function _mesa_need_signed_unsigned_int_conversion()

2015-07-20 Thread Iago Toral
> -type == GL_BYTE))) { > + if (_mesa_need_signed_unsigned_int_conversion(rb->Format, format, > + type)) > return GL_TRUE; > - } You need to rebase your patch, this code does

Re: [Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-07-20 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > Cc: > --- > src/mesa/main/readpix.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c > index caa2648..a9416ef 100644 > --- a/src/mesa/main/readpix.c >

Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-20 Thread Iago Toral
On Fri, 2015-06-19 at 13:40 -0700, Anuj Phogat wrote: > On Tue, Jun 16, 2015 at 9:21 PM, Jason Ekstrand wrote: > > > > On Jun 16, 2015 11:15, "Anuj Phogat" wrote: > >> > >> Without this patch, piglit test fbo_integer_readpixels_sint_uint fails, > >> when > >> forced to use the meta pbo path. > >>

Re: [Mesa-dev] Register spilling issues in the NIR->vec4 backend

2015-07-20 Thread Iago Toral
Hi, On Thu, 2015-07-16 at 08:15 -0700, Jason Ekstrand wrote: > > On Jul 15, 2015 11:20 PM, "Iago Toral" wrote: > > > > On Wed, 2015-07-15 at 11:02 -0700, Connor Abbott wrote: > > > On Wed, Jul 15, 2015 at 7:49 AM, Iago Toral > wrote: > > > >

Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-20 Thread Iago Toral
On Mon, 2015-07-20 at 10:56 -0700, Anuj Phogat wrote: > On Mon, Jul 20, 2015 at 5:10 AM, Iago Toral wrote: > > On Fri, 2015-06-19 at 13:40 -0700, Anuj Phogat wrote: > >> On Tue, Jun 16, 2015 at 9:21 PM, Jason Ekstrand > >> wrote: > >> > > >&g

Re: [Mesa-dev] [PATCH 06/14] meta: Don't do fragment color clamping in case of ReadPixels

2015-07-21 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Without this patch, piglit test arb_color_buffer_float-readpixels > fails, when forced to use the meta pbo path. > > Signed-off-by: Anuj Phogat > Cc: > --- > src/mesa/drivers/common/meta_tex_subimage.c | 5 + > 1 file changed, 5 insert

Re: [Mesa-dev] [PATCH 07/14] mesa: Set green, blue channels to zero only for formats with these components

2015-07-21 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/common/meta.c | 13 ++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > > diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c > index 214a68a..fceb2

Re: [Mesa-dev] [PATCH 08/14] mesa: Add a helper function _mesa_unpack_format_to_base_format()

2015-07-21 Thread Iago Toral
BGRA_INTEGER: > + return GL_BGRA; > + case GL_ALPHA_INTEGER: > + return GL_ALPHA; I would probably move the GL_ALPHA_INTEGER case together with the other single component formats, at first I thought you had missed it. Either way: Reviewed-by: Iago Toral Quiroga >

Re: [Mesa-dev] [PATCH 06/14] meta: Don't do fragment color clamping in case of ReadPixels

2015-07-21 Thread Iago Toral
On Tue, 2015-07-21 at 09:24 +0200, Iago Toral wrote: > On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > > Without this patch, piglit test arb_color_buffer_float-readpixels > > fails, when forced to use the meta pbo path. > > > > Signed-off-by: Anuj Phogat >

Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-21 Thread Iago Toral
On Tue, 2015-07-21 at 08:13 +0200, Iago Toral wrote: > On Mon, 2015-07-20 at 10:56 -0700, Anuj Phogat wrote: > > On Mon, Jul 20, 2015 at 5:10 AM, Iago Toral wrote: > > > On Fri, 2015-06-19 at 13:40 -0700, Anuj Phogat wrote: > > >> On Tue, Jun 16, 2015 at 9:21 PM,

Re: [Mesa-dev] [PATCH 09/14] meta: Use _mesa_unpack_format_to_base_format() to handle integer formats

2015-07-21 Thread Iago Toral
be fine because decompress_texture_image claims to receive a destFormat that is "ala glReadPixels", so there is no need to care for all those internal formats anyway, but I think you should explain this in the commit log. With that change, Reviewed-by: Iago Toral Quiroga >

Re: [Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-07-21 Thread Iago Toral
On Tue, 2015-07-21 at 17:05 -0700, Anuj Phogat wrote: > On Tue, Jul 21, 2015 at 1:36 AM, Iago Toral wrote: > > On Tue, 2015-07-21 at 08:13 +0200, Iago Toral wrote: > >> On Mon, 2015-07-20 at 10:56 -0700, Anuj Phogat wrote: > >> > On Mon, Jul 20, 2015 at 5:10 AM, Iago

Re: [Mesa-dev] [PATCH 07/14] mesa: Set green, blue channels to zero only for formats with these components

2015-07-21 Thread Iago Toral
On Tue, 2015-07-21 at 11:13 -0700, Anuj Phogat wrote: > On Tue, Jul 21, 2015 at 12:50 AM, Iago Toral wrote: > > On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > >> Signed-off-by: Anuj Phogat > >> --- > >> src/mesa/drivers/common/meta.c | 13 ++

Re: [Mesa-dev] [PATCH V2 12/14] meta: Fix reading luminance texture as rgba in _mesa_meta_pbo_GetTexSubImage()

2015-07-22 Thread Iago Toral
The problem here is that the _mesa_meta_BlitFramebuffer is not setting G/B channels to 0.0 when doing Luminance/Intensity to RGBA conversions, so why not implement the fix in _mesa_meta_BlitFramebuffer directly? The GL spec expects frambuffer blits to handle these conversions properly, so it looks

Re: [Mesa-dev] [PATCH 11/14] meta: Use _mesa_need_luminance_to_rgb_conversion() in decompress_texture_image()

2015-07-22 Thread Iago Toral
Patches 10-11 are Reviewed-by: Iago Toral Quiroga On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/common/meta.c | 12 ++-- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/src/mesa/drive

Re: [Mesa-dev] [PATCH 13/14] mesa: Change the signature of _mesa_need_rgb_to_luminance_conversion()

2015-07-22 Thread Iago Toral
Looks good to me, if this did not introduce any regressions: Reviewed-by: Iago Toral Quiroga On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > This allows us to handle cases when texImage->_BaseFormat doesn't match > _mesa_format_get_base_format(texImage->Format). _Base

Re: [Mesa-dev] [PATCH 14/14] meta: Use _mesa_need_rgb_to_luminance_conversion() in decompress_texture_image()

2015-07-22 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/common/meta.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/src/mesa/drivers/common/meta.c b/src/m

Re: [Mesa-dev] [PATCH v2 06/14] meta: Don't do fragment color clamping in _mesa_meta_pbo_GetTexSubImage

2015-07-22 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Wed, 2015-07-22 at 11:54 -0700, Anuj Phogat wrote: > _mesa_meta_pbo_GetTexSubImage() uses _mesa_meta_BlitFrameBuffer(), > which will do fragment clamping if enabled. But fragment clamping > doesn't affect ReadPixels and GetTexImage. > >

Re: [Mesa-dev] [PATCH 3/3] nir: Add helpers for creating variables and adding them to lists

2015-10-12 Thread Iago Toral
_function_create(nir_shader *shader, const char *name); > > diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c > index d9b1854..ea47f79 100644 > --- a/src/mesa/program/prog_to_nir.c > +++ b/src/mesa/program/prog_to_nir.c > @@ -958,11 +958,10 @@ set

Re: [Mesa-dev] [PATCH 2/3] nir/prog: Use nir_foreach_variable

2015-10-12 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Fri, 2015-10-09 at 07:09 -0700, Jason Ekstrand wrote: > --- > src/mesa/program/prog_to_nir.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c > inde

Re: [Mesa-dev] [PATCH 3/3] nir: Add helpers for creating variables and adding them to lists

2015-10-12 Thread Iago Toral
On Mon, 2015-10-12 at 07:47 -0700, Jason Ekstrand wrote: > > On Oct 12, 2015 1:26 AM, "Iago Toral" wrote: > > > > On Fri, 2015-10-09 at 07:09 -0700, Jason Ekstrand wrote: > > > --- > > > src/glsl/nir/glsl_to_nir.cpp | 40 --

Re: [Mesa-dev] [PATCH 0/4] i965: skip control-flow aware liveness analysis if we only have 1 block

2015-10-13 Thread Iago Toral
On Tue, 2015-10-13 at 15:17 +0300, Francisco Jerez wrote: > Iago Toral Quiroga writes: > > > This fixes the following test: > > > > [require] > > GL >= 3.3 > > GLSL >= 3.30 > > GL_ARB_shader_storage_buffer_object > >

Re: [Mesa-dev] [PATCH 0/4] i965: skip control-flow aware liveness analysis if we only have 1 block

2015-10-13 Thread Iago Toral
On Tue, 2015-10-13 at 09:44 -0700, Jordan Justen wrote: > On 2015-10-13 05:17:37, Francisco Jerez wrote: > > Iago Toral Quiroga writes: > > > > > This fixes the following test: > > > > > > [require] > > > GL >= 3.3 > &

Re: [Mesa-dev] [PATCH 0/4] i965: skip control-flow aware liveness analysis if we only have 1 block

2015-10-14 Thread Iago Toral
On Wed, 2015-10-14 at 11:08 -0700, Jordan Justen wrote: > On 2015-10-13 22:49:08, Iago Toral wrote: > > On Tue, 2015-10-13 at 09:44 -0700, Jordan Justen wrote: > > > On 2015-10-13 05:17:37, Francisco Jerez wrote: > > > > Iago Toral Quiroga writes: > > > >

Re: [Mesa-dev] [PATCH] glsl: Enable split of lower UBOs and SSBO also for compute shaders

2015-10-14 Thread Iago Toral
On Wed, 2015-10-14 at 16:18 +0300, Francisco Jerez wrote: > "Lofstedt, Marta" writes: > > > I have found a couple of more places in linker.cpp where we loop up to > > MESA_SHADER_FRAGMENT. > > Should these now also be up to MESA_SHADER_COMPUTE instead? > > > Some might be oversights like this, b

Re: [Mesa-dev] [PATCH 1/3] nir: Get the number of SSBOs and UBOs right

2015-10-15 Thread Iago Toral
On Thu, 2015-10-15 at 08:06 -0700, Jason Ekstrand wrote: > On Thu, Oct 15, 2015 at 12:18 AM, Iago Toral Quiroga > wrote: > > Before d31f98a272e429d and 56e2bdbca36a20 we had a sigle index space for > > UBOs > > and SSBOs, so NumBufferInterfaceBlocks would contai

Re: [Mesa-dev] [PATCH] glsl: fix check SSBOs support for builtin functions

2015-10-16 Thread Iago Toral
ES 3.1 context was in use. > > Fixes 48 dEQP-GLES31 tests: > > dEQP-GLES31.functional.ssbo.atomic.* Reviewed-by: Iago Toral Quiroga That said: > Signed-off-by: Samuel Iglesias Gonsalvez > --- > src/glsl/builtin_functions.cpp | 2 +- > 1 file changed, 1 insertion(

Re: [Mesa-dev] [PATCH v2] mesa: Set api prefix to version string when overriding version

2015-10-16 Thread Iago Toral
/* We need to include API in version string for OpenGL ES, otherwise > + * application can not detect GLES via glGetString(GL_VERSION) query. > + * > + * From OpenGL ES 3.2 spec, Page 436: > + * > + * "The VERSION string is laid out as follows: > + *

Re: [Mesa-dev] [PATCH 0/4] i965: skip control-flow aware liveness analysis if we only have 1 block

2015-10-16 Thread Iago Toral
On Wed, 2015-10-14 at 21:40 +0300, Francisco Jerez wrote: > Jordan Justen writes: > > > On 2015-10-13 22:49:08, Iago Toral wrote: > >> On Tue, 2015-10-13 at 09:44 -0700, Jordan Justen wrote: > >> > On 2015-10-13 05:17:37, Francisco Jerez wrote: &g

Re: [Mesa-dev] [PATCH 2/3] i965/fs: Make emit_uniformize a no-op for immediates

2015-10-19 Thread Iago Toral
On Sun, 2015-10-18 at 21:31 -0700, Kristian Høgsberg Kristensen wrote: > An immdiate is already uniform so just return it up front. Without this, > brw_fs_surface_builder ends up passing immediate surface indices through > SHADER_OPCODE_BROADCAST. This writes to a stride 0 dst, which we can't > con

Re: [Mesa-dev] [PATCH 3/3] i965/fs: Read all components of a SSBO field with one send

2015-10-19 Thread Iago Toral
t, bld, i), offset(read_result, bld, i)); > >break; > } Thanks Kristian, this was silly, I wonder why I decided to do it like this to begin with, specially since I do full vector reads for vec4... Reviewed-by: Iago Toral Quiroga Iago ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/3] i965: Don't use message headers for typed/untyped reads

2015-10-19 Thread Iago Toral
r write). If the header is not present, only the execution mask is used." Similar text exists for SIMD8 and SIMD4x2 is not affected by Sample mask. Reviewed-by: Iago Toral Quiroga > Signed-off-by: Kristian Høgsberg Kristensen > --- > src/mesa/drivers/dri/i965/brw_eu_emit.c | 3 +-

  1   2   3   4   5   6   7   8   9   10   >