Re: [Mesa-dev] [PATCH 11/32] i965/fs: Fix lower_load_payload() to take into account non-zero reg_offset.

2015-02-20 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Fri, Feb 6, 2015 at 9:42 AM, Francisco Jerez wrote: > Fixes metadata guess when instructions in the program specify a > destination register with non-zero reg_offset and when the payload of > a LOAD_PAYLOAD spans several registers. > --- > src/m

Re: [Mesa-dev] [PATCH 10/32] i965/fs: Remove logic to keep track of MRF metadata in lower_load_payload().

2015-02-20 Thread Jason Ekstrand
al type of MOV-to-MRF that can move from (gN, gN+1) to (mK, mK+4) and we handle that in lower_load_payload right now. However, it doesn't follow the standard rules. --Jason On Fri, Feb 20, 2015 at 2:10 PM, Jason Ekstrand wrote: > > > On Fri, Feb 20, 2015 at 1:09 PM, Francisco Jerez

Re: [Mesa-dev] [PATCH 10/32] i965/fs: Remove logic to keep track of MRF metadata in lower_load_payload().

2015-02-20 Thread Jason Ekstrand
On Fri, Feb 20, 2015 at 2:43 PM, Francisco Jerez wrote: > Jason Ekstrand writes: > > > One more comment here... This particularly regards your plan of > separating > > it into "things that match the destination" and "other things" and not > copy >

Re: [Mesa-dev] [PATCH 2/4] common: Correct PBO 2D_ARRAY handling.

2015-02-20 Thread Jason Ekstrand
This is mostly correct and it's a good solution. The only problem is that it doesn't handle the skipRows packing property properly. This property tells the driver the stride (in rows) between image planes in the data. Most of the places where depth is used below, we should be using the stride (in

Re: [Mesa-dev] [PATCH 1/4] common: Correct texture initialization in create_texture_for_pbo.

2015-02-20 Thread Jason Ekstrand
On Fri, Feb 20, 2015 at 4:30 PM, Laura Ekstrand wrote: > Solves bugs related to the driver not setting up the texture miptree > correctly, leading to faulty PBO uploads and downloads. > --- > src/mesa/drivers/common/meta_tex_subimage.c | 13 + > src/mesa/drivers/dri/i965/intel_tex.c

[Mesa-dev] [PATCH] nir/gcm: Add some missing break statements

2015-02-21 Thread Jason Ekstrand
--- src/glsl/nir/nir_opt_gcm.c | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/nir/nir_opt_gcm.c b/src/glsl/nir/nir_opt_gcm.c index bf565b9..b4f5fd3 100644 --- a/src/glsl/nir/nir_opt_gcm.c +++ b/src/glsl/nir/nir_opt_gcm.c @@ -121,9 +121,11 @@ gcm_pin_instructions_block(nir_block *

Re: [Mesa-dev] [PATCH 1/3] glsl: Propagate negates through multiplication chains.

2015-02-22 Thread Jason Ekstrand
On Feb 12, 2015 1:28 AM, "Kenneth Graunke" wrote: > > On Wednesday, February 11, 2015 04:14:20 PM Ian Romanick wrote: > > On 02/11/2015 04:05 PM, Matt Turner wrote: > > > On Wed, Feb 11, 2015 at 3:51 PM, Ian Romanick wrote: > > >> On 02/11/2015 02:54 PM, Matt Turner wrote: > > >>> We propagate ne

Re: [Mesa-dev] [PATCH 03/16] main: fix the validation of the number of samples

2015-02-23 Thread Jason Ekstrand
On Mon, Feb 23, 2015 at 12:51 AM, Martin Peres wrote: > On 20/02/15 20:38, Laura Ekstrand wrote: > >> Please provide a page number and a section title in your spec comment. >> > > I'm not very fond of giving the page number as Khronos updates the pdf > quite often > and the page number may change

Re: [Mesa-dev] [PATCH 7/8] glsl: Optimize "if (cond) discard; " to a conditional discard.

2015-02-24 Thread Jason Ekstrand
On Tue, Feb 24, 2015 at 2:19 AM, Kenneth Graunke wrote: > st_glsl_to_tgsi and ir_to_mesa have handled conditional discards for a > long time; the previous patch added that capability to i965. > > i965 (Haswell) shader-db stats: > > Without NIR: > total instructions in shared programs: 5792133 ->

Re: [Mesa-dev] [PATCH 1/2] common: Correct texture init for meta pbo uploads and downloads.

2015-02-24 Thread Jason Ekstrand
ore I gave an R-B and scarred them off. I wanted a second set of eyes. So here's mine now. Reviewed-by: Jason Ekstrand for the series. --Jason > On 02/24/2015 03:20 PM, Laura Ekstrand wrote: > > This moves the line setting immutability for the texture to after > > _m

Re: [Mesa-dev] [PATCH 04/14] meta: Create temporary pbo in _mesa_meta_pbo_GetTexSubImage()

2015-02-24 Thread Jason Ekstrand
On Tue, Feb 24, 2015 at 7:01 PM, Anuj Phogat wrote: > On Tue, Feb 24, 2015 at 8:31 AM, Neil Roberts > wrote: > > Anuj Phogat writes: > > > >> using a flag passed in as function parameter. This will enable > >> _mesa_meta_pbo_GetTexSubImage to be used for reading in to > >> non-pbo buffers. > >>

Re: [Mesa-dev] [PATCH] meta: In pbo_{Get, }TexSubImage don't repeatedly rebind the source tex

2015-02-25 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Wed, Feb 25, 2015 at 8:02 AM, Neil Roberts wrote: > A layered PBO image is now interpreted as a single tall 2D image so > the z argument in _mesa_meta_bind_fbo_image is ignored. Therefore this > was just redundantly rebinding the same image r

Re: [Mesa-dev] [PATCH] i965: Fix I/L/LA SNORM formats.

2015-02-26 Thread Jason Ekstrand
I'll admit that I don't know that portion of the code all that well, but it looks sensible to me. Reviewed-by: Jason Ekstrand On Thu, Feb 26, 2015 at 3:55 PM, Kenneth Graunke wrote: > _mesa_choose_tex_format (texformat.c) tries I8_SNORM, L8_SNORM, and > either L8A8_SNORM or

[Mesa-dev] [PATCH] nir: Zero undefined variables when zero_undefiend_variables is set

2015-02-27 Thread Jason Ekstrand
Cc: 10.5 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89292 --- src/glsl/nir/nir_lower_vars_to_ssa.c| 34 + src/mesa/drivers/common/meta_tex_subimage.c | 2 +- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/glsl/nir/nir_lower_va

[Mesa-dev] [PATCH] meta/TexSubImage: Stash everything other than PIXEL_TRANSFER/store in meta_begin

2015-02-27 Thread Jason Ekstrand
Cc: 10.5 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89292 --- src/mesa/drivers/common/meta_tex_subimage.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/src/mesa/drivers/common/meta_tex_subimage.c index 5ae12c

Re: [Mesa-dev] [PATCH] nir: Zero undefined variables when zero_undefiend_variables is set

2015-02-27 Thread Jason Ekstrand
NEVER MIND THIS PATCH. I had a git-send-email fail On Fri, Feb 27, 2015 at 12:26 PM, Jason Ekstrand wrote: > Cc: 10.5 > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89292 > --- > src/glsl/nir/nir_lower_vars_to_ssa.c| 34 > + >

Re: [Mesa-dev] [PATCH] meta/TexSubImage: Stash everything other than PIXEL_TRANSFER/store in meta_begin

2015-02-27 Thread Jason Ekstrand
Alternatively, it's probably safe (and faster) to just save/restore the scissor in meta_begin/end. The _mesa_meta_BlitFramebuffer implementation stashes everything else anyway. --Jason On Fri, Feb 27, 2015 at 12:29 PM, Jason Ekstrand wrote: > Cc: 10.5 > Bugzilla: https://bugs.free

Re: [Mesa-dev] [PATCH 4/4] i965/fs: Don't issue FB writes for bound but unwritten color targets.

2015-02-27 Thread Jason Ekstrand
Thanks for figuring out how to do this properly. Reviewed-by: Jason Ekstrand On Fri, Feb 27, 2015 at 12:06 AM, Kenneth Graunke wrote: > We used to loop over all color attachments, and emit FB writes for each > one, even if the shader didn't write to a corresponding output variab

Re: [Mesa-dev] [PATCH] i965/fs/nir: Use emit_math for nir_op_fpow

2015-02-27 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Fri, Feb 27, 2015 at 2:19 PM, Ian Romanick wrote: > From: Ian Romanick > > It appears that all the other instructions that need it already use it. > This one just got missed. > > Signed-off-by: Ian Romanick > Cc: "10.5" > Cc:

Re: [Mesa-dev] [PATCH 1/2] nir: Use alloca instead of variable length arrays.

2015-02-27 Thread Jason Ekstrand
On Fri, Feb 27, 2015 at 6:04 AM, Jose Fonseca wrote: > On 26/02/15 18:07, Brian Paul wrote: > >> On 02/26/2015 09:51 AM, Jose Fonseca wrote: >> >>> This is to enable the code to build with -Werror=vla in the short term, >>> and enable the code to build with MSVC2013 soon after. >>> --- >>> incl

[Mesa-dev] [PATCH] main/base_tex_format: Properly handle STENCIL_INDEX1/4/16

2015-02-27 Thread Jason Ekstrand
From: Jason Ekstrand This takes "fbo-stencil blit GL_STENCIL_INDEX1/4/16" from crash to pass on BDW. --- src/mesa/main/teximage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 6e45cc9..a68574d 100644 --- a/src

[Mesa-dev] [RFC] nir: Use an instruction for the condition on if statements

2015-02-27 Thread Jason Ekstrand
Previously, the nir_if control-flow node had a source built straight into it that was the if condition. This has been the source of a lot of edge-case headaches due to, in particular, the two different use sets that we were carrying around. This patch changes it to have a special jump instruction

Re: [Mesa-dev] [PATCH] i965/skl: Ignore the vertical alignment for the qpitch of 1D textures

2015-02-27 Thread Jason Ekstrand
On Feb 27, 2015 9:17 PM, "Ben Widawsky" wrote: > > On Fri, Feb 27, 2015 at 07:24:16PM +, Neil Roberts wrote: > > The vertical alignment is ignored in the surface state for 1D array > > textures so we can tightly pack them. > > > > I've run this through Piglit and it doesn't cause any regressio

Re: [Mesa-dev] [PATCH 0/8] Hash table and hash set reworking

2015-02-28 Thread Jason Ekstrand
On Feb 28, 2015 4:55 AM, "Thomas Helland" wrote: > > So here comes my hash-table series mentioned earlier. > > So, first of all, there's some issues. > I've been strugling with hitting assertion failures. > The table returns null at times when it apparently should not. > It occurs after patch 1, a

Re: [Mesa-dev] [PATCH 2/2] nir: Optimize a + neg(a)

2015-02-28 Thread Jason Ekstrand
Both patches are Reviewed-by: Jason Ekstrand On Sat, Feb 28, 2015 at 11:32 AM, Thomas Helland wrote: > Shader-db i965 instructions: > total instructions in shared programs: 1711180 -> 1711159 (-0.00%) > instructions in affected programs: 825 -> 804 (-

Re: [Mesa-dev] [PATCH] i965: Consider scratch writes to have side effects.

2015-02-28 Thread Jason Ekstrand
Yeah, this is probably good enough for now. Reviewed-by: Jason Ekstrand On Feb 28, 2015 1:42 PM, "Matt Turner" wrote: > We could do better by tracking scratch reads and writes. > > Cc: 10.5 > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88793 > --- >

Re: [Mesa-dev] [RFC] nir: Use an instruction for the condition on if statements

2015-02-28 Thread Jason Ekstrand
On Sat, Feb 28, 2015 at 10:33 AM, Connor Abbott wrote: > On Fri, Feb 27, 2015 at 8:13 PM, Jason Ekstrand > wrote: > > Previously, the nir_if control-flow node had a source built straight into > > it that was the if condition. This has been the source of a lot of > > ed

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Silence unused parameter warning

2015-03-01 Thread Jason Ekstrand
Not sure why you Cc'd me, but whatever. Seems obvious enough. Reviewed-by: Jason Ekstrand On 02/27/2015 06:50 PM, Ian Romanick wrote: From: Ian Romanick Unused since b18fd23. brw_fs.cpp:2878:44: warning: unused parameter 'dispatch_width' [-Wunused-parameter] clear_de

Re: [Mesa-dev] [PATCH 1/5] mesa: add GL_AMD_compressed_ATC_texture support

2015-03-01 Thread Jason Ekstrand
I don't know if you got everything but I didn't notice anything missing and what's there looks correct to me. Reviewed-by: Jason Ekstrand On Mar 1, 2015 7:08 PM, "Ilia Mirkin" wrote: > Signed-off-by: Ilia Mirkin > --- > src/mapi/glapi/gen/es_EXT.xml | 6 ++

Re: [Mesa-dev] [PATCH] meta/TexSubImage: Stash everything other than PIXEL_TRANSFER/store in meta_begin

2015-03-02 Thread Jason Ekstrand
Ping. I don't want this one to get lost in the header file churn. --Jason On Feb 27, 2015 12:33 PM, "Jason Ekstrand" wrote: > Alternatively, it's probably safe (and faster) to just save/restore the > scissor in meta_begin/end. The _mesa_meta_BlitFramebuffer implement

Re: [Mesa-dev] [PATCH] main/base_tex_format: Properly handle STENCIL_INDEX1/4/16

2015-03-02 Thread Jason Ekstrand
a > > On Fri, Feb 27, 2015 at 6:55 PM, Jason Ekstrand > wrote: > > From: Jason Ekstrand > > > > This takes "fbo-stencil blit GL_STENCIL_INDEX1/4/16" from crash to pass > on > > BDW. > > --- > > src/mesa/main/teximage.c | 3 +++ > > 1 f

Re: [Mesa-dev] [PATCH] main/base_tex_format: Properly handle STENCIL_INDEX1/4/16

2015-03-02 Thread Jason Ekstrand
On Mon, Mar 2, 2015 at 11:33 AM, Ilia Mirkin wrote: > On Mon, Mar 2, 2015 at 2:32 PM, Jason Ekstrand > wrote: > > > > > > On Mon, Mar 2, 2015 at 11:18 AM, Ilia Mirkin > wrote: > >> > >> Hmmm... I was just looking at this code in connection to attepm

Re: [Mesa-dev] [PATCH 1/2] nir: Use alloca instead of variable length arrays.

2015-03-02 Thread Jason Ekstrand
On Mon, Mar 2, 2015 at 8:02 AM, Jose Fonseca wrote: > On 27/02/15 16:15, Brian Paul wrote: > >> On 02/27/2015 09:10 AM, Ian Romanick wrote: >> >>> On 02/26/2015 10:07 AM, Brian Paul wrote: >>> On 02/26/2015 09:51 AM, Jose Fonseca wrote: > This is to enable the code to build with -We

[Mesa-dev] [PATCH] nir/worklist: Don't change the start index when computing the tail index

2015-03-02 Thread Jason Ekstrand
--- src/glsl/nir/nir_worklist.c | 10 +- src/glsl/nir/nir_worklist.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/glsl/nir/nir_worklist.c b/src/glsl/nir/nir_worklist.c index a8baae9..3087a1d 100644 --- a/src/glsl/nir/nir_worklist.c +++ b/src/glsl/nir/nir_wo

Re: [Mesa-dev] [PATCH] nir: Use helper macros for dealing with VLAs.

2015-03-03 Thread Jason Ekstrand
LGTM. I would still rather do the allocation in live_variables not on the stack, but I can clean that up later. Reviewed-by: Jason Ekstrand On Tue, Mar 3, 2015 at 5:19 AM, Jose Fonseca wrote: > v2: > - Single statement, by using memset return value as suggested by Ian > Romanic

Re: [Mesa-dev] [PATCH 2/2] egl: implement EGL_MESA_transparent_alpha for x11 and wayland

2015-03-03 Thread Jason Ekstrand
On Tue, Mar 3, 2015 at 10:07 AM, Chad Versace wrote: > On 02/23/2015 06:32 AM, Jonny Lamb wrote: > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67676 > > --- > > include/EGL/eglmesaext.h| 5 + > > src/egl/drivers/dri2/platform_wayland.c | 9 +++-- > > src/eg

Re: [Mesa-dev] [PATCH] main/base_tex_format: Properly handle STENCIL_INDEX1/4/16

2015-03-03 Thread Jason Ekstrand
On Tue, Mar 3, 2015 at 1:00 PM, Ilia Mirkin wrote: > On Tue, Mar 3, 2015 at 3:58 PM, Kenneth Graunke > wrote: > > On Monday, March 02, 2015 02:33:31 PM Ilia Mirkin wrote: > >> On Mon, Mar 2, 2015 at 2:32 PM, Jason Ekstrand > wrote: > >> > > >> &

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Silence unused parameter warning

2015-03-04 Thread Jason Ekstrand
On Wed, Mar 4, 2015 at 8:45 AM, Ian Romanick wrote: > On 03/01/2015 05:19 PM, Jason Ekstrand wrote: > > Not sure why you Cc'd me, but whatever. Seems obvious enough. > > Because b18fd23 was your commit. Sometimes left over, unused parameters > are the result of a mistak

Re: [Mesa-dev] [PATCH] i965: Tell intel_get_memcpy() which direction the memcpy() is going.

2015-03-04 Thread Jason Ekstrand
} > xtiled_to_linear(x0, x1, x2, x3, y0, y1, > dst, src, dst_pitch, swizzle_bit, mem_copy); > @@ -465,16 +532,26 @@ ytiled_to_linear_faster(uint32_t x0, uint32_t x1, > uint32_t x2, uint32_t x3, >if (mem_copy == memcpy) > return ytiled_to_linea

Re: [Mesa-dev] [PATCH] i965: Tell intel_get_memcpy() which direction the memcpy() is going.

2015-03-04 Thread Jason Ekstrand
/bugs.freedesktop.org/show_bug.cgi?id=89416 > Tested-by: Uriy Zhuravlev [v1] > Reviewed-by: Jason Ekstrand > --- > Benchmarks I should run? > I'm not worried about it. Maybe changing from aligned to unaligned reads makes more or less of a difference than changing writes.

Re: [Mesa-dev] [PATCH 1/3] Revert "common: Fix PBOs for 1D_ARRAY."

2015-03-04 Thread Jason Ekstrand
Series is Reviewed-by: Jason Ekstrand On Wed, Mar 4, 2015 at 3:15 PM, Emil Velikov wrote: > On 4 March 2015 at 17:22, Neil Roberts wrote: > > This reverts commit 546aba143d13ba3f993ead4cc30b2404abfc0202. > > > > I think the changes to the calls to glBlitFramebuffer from

Re: [Mesa-dev] [PATCH] i965: Tell intel_get_memcpy() which direction the memcpy() is going.

2015-03-04 Thread Jason Ekstrand
On Wed, Mar 4, 2015 at 5:28 PM, Matt Turner wrote: > On Wed, Mar 4, 2015 at 5:07 PM, Jason Ekstrand > wrote: > > On Wed, Mar 4, 2015 at 4:56 PM, Matt Turner wrote: > >> @@ -357,16 +394,22 @@ linear_to_xtiled_faster(uint32_t x0, uint32_t x1, > >> uint32_t x

Re: [Mesa-dev] [PATCH] nir: Make the printer include nir_variable::location too.

2015-03-05 Thread Jason Ekstrand
Fine by me Reviewed-by: Jason Ekstrand On Thu, Mar 5, 2015 at 8:26 PM, Kenneth Graunke wrote: > Being able to see both location and driver_location can be useful when > debugging IO mistakes. > > Signed-off-by: Kenneth Graunke > --- > src/glsl/nir/nir_print.c | 2 +- &g

Re: [Mesa-dev] [PATCH 0/8] Hash table and hash set reworking

2015-03-05 Thread Jason Ekstrand
On Thu, Mar 5, 2015 at 5:36 PM, Thomas Helland wrote: > 2015-02-28 17:05 GMT+01:00 Jason Ekstrand : > > > > On Feb 28, 2015 4:55 AM, "Thomas Helland" > wrote: > >> > >> So here comes my hash-table series mentioned earlier. > >> >

Re: [Mesa-dev] [PATCH] i965/fs: Implement SIMD16 dual source blending.

2015-03-05 Thread Jason Ekstrand
This looks fine to me. I just kicked off a build on our test farm and, assuming that looks good (I'll send another e-mail in the morning if it does), Reviewed-by: Jason Ekstrand I ran shader-db on the change and I was kind of surprised to see that it doesn't really do anythin

Re: [Mesa-dev] [PATCH 3/6] nir: Try to make sense of the nir_shader_compiler_options code.

2015-03-06 Thread Jason Ekstrand
Acked-by: Jason Ekstrand On Mar 6, 2015 2:18 AM, "Kenneth Graunke" wrote: > The code in glsl_to_nir is entirely dead, as we translate from GLSL to > NIR at link time, when there isn't a _mesa_glsl_parse_state to pass, > so every caller passes NULL. > > glsl_to_nir

Re: [Mesa-dev] [PATCH 1/6] glsl: Mark array access when copying to a temporary for the ?: operator.

2015-03-06 Thread Jason Ekstrand
I gave you an back on 3; I'll let Eric actually review it. The rest are Reviewed-by: Jason Ekstrand On Mar 6, 2015 2:18 AM, "Kenneth Graunke" wrote: > Piglit's spec/glsl-1.20/compiler/structure-and-array-operations/ > array-selection.vert test contains the followin

Re: [Mesa-dev] [PATCH v2] mesa: fix ARB_copy_image internal format check

2015-03-07 Thread Jason Ekstrand
On Mar 7, 2015 10:57 AM, "Sean Burke" wrote: > > The memory layout of compatible internal formats may differ in bytes per > block, so TexFormat is not a reliable measure of compatibility. Additionally, > the current check allows compressed textures of the same block size to be used, > which is in

Re: [Mesa-dev] [PATCH v2] mesa: fix ARB_copy_image internal format check

2015-03-07 Thread Jason Ekstrand
On Sat, Mar 7, 2015 at 12:16 PM, Sean Burke wrote: > > > On Sat, Mar 7, 2015 at 12:06 PM, Jason Ekstrand > wrote: > >> >> On Mar 7, 2015 10:57 AM, "Sean Burke" wrote: >> > >> > The memory layout of compatible internal formats may differ

Re: [Mesa-dev] [PATCH] i965/fs: Implement SIMD16 dual source blending.

2015-03-07 Thread Jason Ekstrand
On Thu, Mar 5, 2015 at 9:39 PM, Jason Ekstrand wrote: > This looks fine to me. I just kicked off a build on our test farm and, > assuming that looks good (I'll send another e-mail in the morning if it > does), > > Reviewed-by: Jason Ekstrand > Jenkins results look go

Re: [Mesa-dev] [Mesa-stable] [PATCH 4/4] i965/fs: Don't issue FB writes for bound but unwritten color targets.

2015-03-07 Thread Jason Ekstrand
On Sat, Mar 7, 2015 at 9:58 AM, Emil Velikov wrote: > On 27 February 2015 at 08:06, Kenneth Graunke > wrote: > > We used to loop over all color attachments, and emit FB writes for each > > one, even if the shader didn't write to a corresponding output variable. > > Those color attachments would

Re: [Mesa-dev] [PATCH v3] mesa: improve ARB_copy_image internal format compat check

2015-03-07 Thread Jason Ekstrand
t_compatible(struct gl_context *ctx, > +GLenum srcFormat, GLenum dstFormat) > +{ > + /* > +* For the purposes of CopyImageSubData, two internal formats > +* are considered compatible if any of the following conditions are > +

Re: [Mesa-dev] [PATCH v4] mesa: improve ARB_copy_image internal format compat check

2015-03-07 Thread Jason Ekstrand
ed, view-compatible formats return the > correct result, and make style fixes. Original commit message amended > for clarity. > v4: Reformatted spec citations. > > Reviewed-by: Jason Ekstrand > --- > src/mesa/main/copyimage.c | 151 > +

Re: [Mesa-dev] [PATCH v4] mesa: improve ARB_copy_image internal format compat check

2015-03-08 Thread Jason Ekstrand
On Mar 7, 2015 10:33 PM, "Kenneth Graunke" wrote: > > On Saturday, March 07, 2015 10:09:15 PM Jason Ekstrand wrote: > > LGTM. > > Jason, > > Sean doesn't have commit access (it's actually his first patch) - if > this is good to go, would you mind pu

Re: [Mesa-dev] [PATCH 2/9] i965/nir: Optimize after nir_lower_var_copies().

2015-03-09 Thread Jason Ekstrand
LGTM Reviewed-by: Jason Ekstrand On Mon, Mar 9, 2015 at 1:58 AM, Kenneth Graunke wrote: > Array variable copy splitting generates a bunch of stuff we want to > clean up before proceeding. > > Signed-off-by: Kenneth Graunke > Cc: Jason Ekstrand > --- > src/

Re: [Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Jason Ekstrand
the only point of the hash table was to avoid inserting > > the same node multiple times for different dereferences. We never > > actually searched the hash table! This patch uses an intrusive > > linked list instead. Since exec_list uses head and tail sentinels, > > chec

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner wrote: > On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke > wrote: > > From: Jason Ekstrand > > > > __next and __prev are pointers to the structure containing the exec_node > > link, not the embedded exec_node. NUL

Re: [Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:28 PM, Matt Turner wrote: > On Mon, Mar 9, 2015 at 7:04 PM, Jason Ekstrand > wrote: > > Push it! > > Our policy is to wait a day for most things. > Sure. Not really arguing for early pushing. Mostly just surprised that Connor picked up on

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:48 PM, Connor Abbott wrote: > On Mon, Mar 9, 2015 at 10:35 PM, Matt Turner wrote: > > On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner wrote: > >> On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke > wrote: > >>> From: Jason Ekstrand

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:58 PM, Matt Turner wrote: > On Mon, Mar 9, 2015 at 7:32 PM, Jason Ekstrand > wrote: > > > > > > On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner wrote: > >> > >> On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke > >> wrote

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:59 PM, Connor Abbott wrote: > On Mon, Mar 9, 2015 at 10:54 PM, Jason Ekstrand > wrote: > > > > > > On Mon, Mar 9, 2015 at 7:48 PM, Connor Abbott > wrote: > >> > >> On Mon, Mar 9, 2015 at 10:35 PM, Matt Turner > wrote: &g

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-10 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 11:06 PM, Matt Turner wrote: > On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke > wrote: > > From: Jason Ekstrand > > > > __next and __prev are pointers to the structure containing the exec_node > > link, not the embedded exec_node. NUL

Re: [Mesa-dev] [PATCH 2/2] nir: Optimize a + neg(a)

2015-03-10 Thread Jason Ekstrand
On Tue, Mar 10, 2015 at 4:50 PM, Matt Turner wrote: > On Tue, Mar 10, 2015 at 4:20 PM, Ian Romanick wrote: > > On 02/28/2015 12:19 PM, Matt Turner wrote: > >> On Sat, Feb 28, 2015 at 11:47 AM, Thomas Helland > >> wrote: > >>> On Feb 28,

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-10 Thread Jason Ekstrand
On Tue, Mar 10, 2015 at 5:45 PM, Matt Turner wrote: > On Tue, Mar 10, 2015 at 1:09 PM, Jason Ekstrand > wrote: > > How about we do things slightly differently and check > "(__node)->field.next > > != NULL" just like we do on regular versions. Since the check

Re: [Mesa-dev] [PATCH] anv: Advertise API version 1.0.39

2017-01-27 Thread Jason Ekstrand
On Fri, Jan 27, 2017 at 11:22 AM, Emil Velikov wrote: > On 26 January 2017 at 17:27, Jason Ekstrand wrote: > > I'm pretty sure we've kept up with the bug fixes. > > --- > > src/intel/vulkan/anv_device.c | 2 +- > > 1 file changed, 1 insertion(+), 1 delet

Re: [Mesa-dev] [PATCH] i965: Fix check for negative pitch in can_do_fast_copy_blit().

2017-01-27 Thread Jason Ekstrand
I think this is ok, Reviewed-by: Jason Ekstrand On Thu, Jan 26, 2017 at 1:27 AM, Kenneth Graunke wrote: > At this point, the pitch is in bytes. We haven't yet divided the pitch > by 4 for tiled surfaces, so abs(pitch) may be larger than 32K. This > means the bit 15 trick won&#

[Mesa-dev] [PATCH 1/2] intel/blorp: Handle clearing of A4B4G4R4 on all platforms

2017-01-27 Thread Jason Ekstrand
Cc: "13.0 17.0" --- src/intel/blorp/blorp_clear.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index afc505d..f8ac6dc 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -349,6

[Mesa-dev] [PATCH 2/2] isl/formats: Only advertise sampling for A4B4G4R4 on Broadwell

2017-01-27 Thread Jason Ekstrand
This causes hangs on Broadwell if you try to render to it. I have no idea how we managed to not hit this earlier. Cc: "13.0 17.0" --- src/intel/isl/isl_format.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c index

Re: [Mesa-dev] [PATCH 2/2] isl/formats: Only advertise sampling for A4B4G4R4 on Broadwell

2017-01-27 Thread Jason Ekstrand
On Fri, Jan 27, 2017 at 2:31 PM, Matt Turner wrote: > On Fri, Jan 27, 2017 at 2:18 PM, Jason Ekstrand > wrote: > > This causes hangs on Broadwell if you try to render to it. I have no > > idea how we managed to not hit this earlier. > > > > Cc: "13.

Re: [Mesa-dev] [PATCH] anv/cmd_buffer: Use the proper depth input attachment surface state

2017-01-30 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Jan 30, 2017 at 2:37 PM, Nanley Chery wrote: > Commit 2852efcda40274acf3272611c6a3b7731523a72d moved the location of > the depth input attachment surface state from the render pass to the > image view, but failed to update the surface state loca

Re: [Mesa-dev] [PATCH v4] android: add vulkan build for intel

2017-01-30 Thread Jason Ekstrand
On Jan 30, 2017 10:03 PM, "Tapani Pälli" wrote: On 01/30/2017 04:00 PM, Emil Velikov wrote: > On 30 January 2017 at 11:37, Tapani Pälli wrote: > >> fixes to issues spotted by Emil Velikov: >> >>- set ANV_TIMESTAMP corretly >>- fix typo with VULKAN_GEM_FILES >> >> v2: update to use Mak

Re: [Mesa-dev] [PATCH 2/2] spirv: handle undefined components for OpVectorShuffle

2017-01-30 Thread Jason Ekstrand
On Jan 30, 2017 4:15 AM, "Lionel Landwerlin" wrote: On 27/01/17 09:57, Juan A. Suarez Romero wrote: > On Fri, 2017-01-27 at 09:46 +, Lionel Landwerlin wrote: > >> But what the test does is calling OpSpecConstantOp[2], which is the >>> operation we are patching here. >>> >>> And according to

Re: [Mesa-dev] [v2 4/9] i965: Estimate batch space per shader stage

2017-01-31 Thread Jason Ekstrand
upstream > > Signed-off-by: Topi Pohjolainen > CC: Kenneth Graunke > CC: Jason Ekstrand > --- > src/mesa/drivers/dri/i965/brw_draw.c | 49 ++ > +++--- > 1 file changed, 46 insertions(+), 3 deletions(-) > > diff --git a/src/mesa/dri

[Mesa-dev] [PATCH] anv: Improve flushing around STATE_BASE_ADDRESS

2017-01-31 Thread Jason Ekstrand
It is not clear from the docs exactly how pipelined STATE_BASE_ADDRESS actually is. Previously, we knew we needed to flush prior to re-emitting STATE_BASE_ADDRESS on gen8+ but we had never confirmed it on gen7 so we left it alone and avoided the flush. Recently, Mark found hangs on gen7 which app

Re: [Mesa-dev] [PATCH 3/4] i965: Always scissor on Gen6-7.5 instead of disabling guardband.

2017-01-31 Thread Jason Ekstrand
context *brw) > > dw1 = GEN6_SF_SWIZZLE_ENABLE | num_outputs << > GEN6_SF_NUM_OUTPUTS_SHIFT; > dw2 = GEN6_SF_STATISTICS_ENABLE; > + dw3 = GEN6_SF_SCISSOR_ENABLE; > + dw4 = 0; > We could, in theory, only scissor if one of our viewports is actually smaller

[Mesa-dev] [PATCH 1/2] intel/blorp: Delete NIR uniform support

2017-01-31 Thread Jason Ekstrand
Blorp doesn't use uniform push constants anymore so there's no need to support them in compile_nir_shader. Signed-off-by: Jason Ekstrand --- src/intel/blorp/blorp.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/src/intel/blorp/blorp.c b/src/intel/blo

[Mesa-dev] [PATCH 2/2] blorp: Embed a wm_prog_data in blorp_prog_data

2017-01-31 Thread Jason Ekstrand
While we're at it, we rename it to remove the brw_ prefix Signed-off-by: Jason Ekstrand --- src/intel/blorp/blorp.c | 26 +- src/intel/blorp/blorp_blit.c | 2 +- src/intel/blorp/blorp_clear.c | 2 +- src/intel/blorp/blorp_genX_exec.h

Re: [Mesa-dev] [PATCH 4/4] Revert "i965: Disable guardband clipping in the smaller-than-viewport case."

2017-01-31 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Sun, Jan 22, 2017 at 10:42 PM, Kenneth Graunke wrote: > This reverts commit 0bac2551e40410e2251daf4fd9faf69310ab34ce. > > Now that we position the guardband correctly (applying translations > in addition to scaling) and made it as large (or larg

Re: [Mesa-dev] [v2 4/9] i965: Estimate batch space per shader stage

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 10:38 AM, Jason Ekstrand wrote: > > On Tue, Jan 31, 2017 at 8:15 AM, Topi Pohjolainen < > topi.pohjolai...@gmail.com> wrote: > >> Current estimate doesn't consider space needed for surface states >> and it only calculates for one shade

Re: [Mesa-dev] [PATCH 06/34] gbm: Export a per plane getter for stride

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:19 PM, Ben Widawsky wrote: > v2: Preserve legacy behavior when plane is 0 (Jason Ekstrand) > EINVAL when input plane is greater than total planes (Jason Ekstrand) > Don't leak the image after fromPlanar (Daniel) > Move bo->image check below plane

Re: [Mesa-dev] [PATCH 07/34] gbm: Export a per plane getter for offset

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:19 PM, Ben Widawsky wrote: > Unlike stride, there was no previous offset getter, so it can be right > on the first try. > > v2: Return EINVAL when plane is greater than total planes to make it > match the similar APIs. > Avoid leak after fromPlanar (Daniel) > Make sure

Re: [Mesa-dev] [PATCH 10/34] gbm: Introduce modifiers into surface/bo creation

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > The idea behind modifiers like this is that the user of GBM will have > some mechanism to query what properties the hardware supports for its BO > or surface. This information is directly passed in (and stored) so that > the DRI implementati

Re: [Mesa-dev] [PATCH 12/34] i965: Handle Y-tile modifier

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > This patch begins introducing how we'll actually handle the potentially > many modifiers coming in from the API, how we'll store them, and the > structure in the code to support it. > > Prior to this patch, the Y-tiled modifier would be enti

Re: [Mesa-dev] [PATCH 14/34] gbm: Get modifiers from DRI

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Replace the naive, 'save all the modifiers' with a proper query for just > the modifier that was selected. To accomplish this, two new query tokens > are added to the extension: > __DRI_IMAGE_ATTRIB_MODIFIER_UPPER > __DRI_IMAGE_ATTRIB_MODIFI

Re: [Mesa-dev] [PATCH 18/34] i965/miptree: Add a helper functions for image creation

2017-01-31 Thread Jason Ekstrand
On Wed, Jan 25, 2017 at 10:58 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 10:21:41PM -0800, Ben Widawsky wrote: > > This provides a common function or creating miptrees when there is an > > existing DRIimage to use. That provides an easy way to add CCS > >

Re: [Mesa-dev] [PATCH 22/34] i965: Allocate tile aligned height

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > This patch shouldn't actually do anything because the libdrm function > should already do this alignment. However, it preps us for a future > patch where we add in the CCS AUX size, and in the process it serves as > a good place to find bise

Re: [Mesa-dev] [PATCH 16/34] i965: Separate image allocation with modifiers

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Since the code doesn't support modifiers yet, this patch should do > nothing other than prepare for more patches. > > Signed-off-by: Ben Widawsky > Acked-by: Daniel Stone > --- > src/mesa/drivers/dri/i965/intel_screen.c | 64 > +++

Re: [Mesa-dev] [PATCH 23/34] i965: Add logic for allocating BO with CCS

2017-01-31 Thread Jason Ekstrand
On Wed, Jan 25, 2017 at 10:36 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 10:21:46PM -0800, Ben Widawsky wrote: > > This patch provides the support (and comments) for allocating the BO > > with space for the CCS buffer just underneath it. > > > > This patch

Re: [Mesa-dev] [PATCH 24/34] i965/miptree: Add a return for updating of winsys

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > There is nothing particularly useful to do currently if the update > fails, but there is no point carrying on either. As a result, this has a > behavior change. > > v2: Make the return type a bool (Topi) > > Signed-off-by: Ben Widawsky > Ac

Re: [Mesa-dev] [PATCH 25/34] i965/miptree: Allocate mt earlier in update winsys

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Allows us to continue utilizing common miptree creation using __DRIimage > without creating a new DRIimage (for the intel_process_dri2_buffer() > case). > > This is a bit ugly, but I think it's the best one can do. > > Signed-off-by: Ben Wid

Re: [Mesa-dev] [PATCH 26/34] i965: Pretend that CCS modified images are two planes

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Signed-off-by: Ben Widawsky > Acked-by: Daniel Stone > --- > src/mesa/drivers/dri/i965/intel_screen.c | 18 ++ > 1 file changed, 14 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/intel_screen.c >

Re: [Mesa-dev] [PATCH 27/34] i965: Make CCS stride match kernel's expectations

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > v2: Put the commit message as a comment (Topi) > > Cc: Topi Pohjolainen > Cc: Ville Syrjälä > Cc: Jason Ekstrand > Signed-off-by: Ben Widawsky > Acked-by: Daniel Stone > --- > src/mesa/drivers/dri/i965/in

Re: [Mesa-dev] [PATCH 31/34] i965: Use partial resolves for CCS buffers being scanned out

2017-01-31 Thread Jason Ekstrand
On Wed, Jan 25, 2017 at 10:39 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 10:21:54PM -0800, Ben Widawsky wrote: > > On Gen9 hardware, the display engine is able to scanout a compressed > > framebuffer by providing an offset to auxiliary compression informat

Re: [Mesa-dev] [PATCH 34/34] i965: Handle compression modifier

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > FINISHME: Use the kernel's final choice for the fb modifier > > bwidawsk@norris2:~/intel-gfx/kmscube (modifiers $) > ~/scripts/measure_bandwidth.sh ./kmscube none > Read bandwidth: 603.91 MiB/s > Write bandwidth: 615.28 MiB/s > bwidawsk@norr

Re: [Mesa-dev] [PATCH 13/27] i965/gen6: Calculate hiz offset on demand

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > This is kept on purpose in i965. It can be moved to ISL if it > is needed in vulkan. > > Pointers to miptrees are given solely for verification purposes. > These will be dropped in following patches. > > Signe

Re: [Mesa-dev] [PATCH 13/27] i965/gen6: Calculate hiz offset on demand

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 4:44 PM, Jason Ekstrand wrote: > On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen < > topi.pohjolai...@gmail.com> wrote: > >> This is kept on purpose in i965. It can be moved to ISL if it >> is needed in vulkan. >> >> Po

Re: [Mesa-dev] [PATCH 26/27] i965/blorp: Use hiz surface instead of creating copy

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 16, 2017 at 1:14 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_blorp.c | 25 > - > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++ > 2 files changed, 18 inse

[Mesa-dev] [PATCH] isl: Add assertions for render target swizzle restrictions

2017-01-31 Thread Jason Ekstrand
--- src/intel/isl/isl_surface_state.c | 32 1 file changed, 32 insertions(+) diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index b735478..c7b220b 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_s

Re: [Mesa-dev] [PATCH 3/7] anv: limit vertex buffers to 31

2017-01-31 Thread Jason Ekstrand
Did we actually end up needing this? After you got your gl_DrawId issues sorted, were you ever able to get element 33 to work? The Sky Lake docs say it should... On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Signed-off-by: Lionel Landwerlin > ---

Re: [Mesa-dev] [PATCH 4/7] anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/vulkan/genX_cmd_buffer.c | 2 +- > src/intel/vulkan/genX_pipeline.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/in

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