Re: [Mesa-dev] V4 ARB_enhanced_layouts packing support for i965 Gen6+

2016-06-23 Thread Edward O'Callaghan
This series is ACK'ed by, Edward O'Callaghan On 06/24/2016 01:52 PM, Timothy Arceri wrote: > V4: > - add vec4 backend support and enable for Gen6+ > > V3: > - Rewrite patch 9 (add support for packing arrays) to not add > hacks to the type_size() functions. > - Add packing support for the load_o

Re: [Mesa-dev] Mesa (master): glsl: Make lower_const_arrays_to_uniforms work directly on constants.

2016-06-23 Thread Michel Dänzer
On 24.06.2016 03:59, Kenneth Graunke wrote: > Module: Mesa > Branch: master > Commit: ef78df8d3b0cf540e5f08c8c2f6caa338b64a6c7 > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef78df8d3b0cf540e5f08c8c2f6caa338b64a6c7 > > Author: Kenneth Graunke > Date: Fri Apr 29 18:05:26 2016 -070

[Mesa-dev] [PATCH v3] glsl: reuse main extension table to appropriately restrict extensions

2016-06-23 Thread Ilia Mirkin
Previously we were only restricting based on ES/non-ES-ness and whether the overall enable bit had been flipped on. However we have been adding more fine-grained restrictions, such as based on compat profiles, as well as specific ES versions. Most of the time this doesn't matter, but it can create

Re: [Mesa-dev] [PATCH 05/11] nouveau: use common screen ref counting

2016-06-23 Thread Ilia Mirkin
On Fri, Jun 24, 2016 at 12:20 AM, Rob Herring wrote: > On Thu, Jun 23, 2016 at 7:01 PM, Ilia Mirkin wrote: >> As before, you need to keep the dupfd. There's even a long comment there to >> explain why. > > And I responded why I don't think it is: > > "Those 2 commits predate commit 13bccee87d63 w

Re: [Mesa-dev] [PATCH 05/11] nouveau: use common screen ref counting

2016-06-23 Thread Ilia Mirkin
On Fri, Jun 24, 2016 at 12:20 AM, Rob Herring wrote: > On Thu, Jun 23, 2016 at 7:01 PM, Ilia Mirkin wrote: >> As before, you need to keep the dupfd. There's even a long comment there to >> explain why. > > And I responded why I don't think it is: > > "Those 2 commits predate commit 13bccee87d63 w

Re: [Mesa-dev] [PATCH 2/2] i965: Drop unused return value from intel_finalize_mipmap_tree().

2016-06-23 Thread Matt Turner
Both are Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 05/11] nouveau: use common screen ref counting

2016-06-23 Thread Rob Herring
On Thu, Jun 23, 2016 at 7:01 PM, Ilia Mirkin wrote: > As before, you need to keep the dupfd. There's even a long comment there to > explain why. And I responded why I don't think it is: "Those 2 commits predate commit 13bccee87d63 which dup's the fd for the DRI2 ST before calling pipe loader fun

[Mesa-dev] [PATCH 27/27] docs: mark ARB_enhanced_layouts as DONE for i965

2016-06-23 Thread Timothy Arceri
--- docs/GL3.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index ce34869..0e89a12 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -193,11 +193,11 @@ GL 4.4, GLSL 4.40: GL_MAX_VERTEX_ATTRIB_STRIDE DONE (all drive

[Mesa-dev] [PATCH 26/27] i965: enable ARB_enhanced_layouts for gen6+

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 27dfb0c..9989611 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/

[Mesa-dev] [PATCH 15/27] i965: add double support packing support to gs inputs

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 4082a2c..b261b39 100644 --- a/src/mesa/drivers/dri/i965/brw

[Mesa-dev] [PATCH 10/27] i965: add indirect packing support for tcs and tes

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 33 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index c18e51c..aaa4980 100644 --- a/

[Mesa-dev] [PATCH 20/27] i965: add helper for creating packing writemask

2016-06-23 Thread Timothy Arceri
For example where n=3 first_component=1 this will give us 0xE (WRITEMASK_YZW). --- src/mesa/drivers/dri/i965/brw_reg.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h index 8e6fcd5..792015b 100644 --- a/src/mesa/d

[Mesa-dev] [PATCH 05/27] i965: add component packing support for gs

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 22 ++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index f

[Mesa-dev] [PATCH 21/27] i965/vec4: add component packing for gs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp index 9ebfb27..4b15302 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp +++ b/src/mesa/dr

[Mesa-dev] [PATCH 19/27] i965/vec4: add support for packing vs/gs/tes outputs

2016-06-23 Thread Timothy Arceri
Here we create a new output_generic_reg array with the ability to store the dst_reg for each component of user defined varyings. This is needed as the previous code only stored the dst_reg based on the varying location which meant packed varyings would overwrite each other. --- src/mesa/drivers/dr

[Mesa-dev] [PATCH 24/27] i965/vec4: add support for packing tes inputs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_tes.cpp | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_tes.cpp b/src/mesa/drivers/dri/i965/brw_vec4_tes.cpp index 6639c86..22293da 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_tes.cpp

[Mesa-dev] [PATCH 25/27] i965/vec4: add packing support for tes load outputs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp | 17 + src/mesa/drivers/dri/i965/brw_vec4_tcs.h | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp b/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp index 0a33a39..27b8988

[Mesa-dev] [PATCH 09/27] i965: add support for packing arrays

2016-06-23 Thread Timothy Arceri
Here we add a new helper function calc_type_size_offset() to help calculate the size of a varying once packing is taken into account. --- src/compiler/nir/nir_lower_io.c | 55 +++-- 1 file changed, 48 insertions(+), 7 deletions(-) diff --git a/src/compiler/nir/

[Mesa-dev] [PATCH 18/27] i965/vec4: add support for packing inputs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index f3b4528..cbe7468 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i9

[Mesa-dev] [PATCH 22/27] i965/vec4: support packing tcs inputs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp | 8 ++-- src/mesa/drivers/dri/i965/brw_vec4_tcs.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp b/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp index f61c612..8c76e81 100644 --- a

[Mesa-dev] [PATCH 14/27] nir/glsl: add double packing support to vs and fs

2016-06-23 Thread Timothy Arceri
--- src/compiler/glsl/link_varyings.cpp | 16 +--- src/compiler/nir/nir_lower_io.c | 16 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 89cfd1c..754305b 100644 --- a/s

[Mesa-dev] [PATCH 23/27] i965/vec4: add support for packing tcs outputs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp b/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp index 8c76e81..0a33a39 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp +++ b/src/mesa/drivers/d

[Mesa-dev] [PATCH 16/27] i965: add double packing support to tess stages

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index b261b39..2186336 100644 --- a/src/m

[Mesa-dev] [PATCH 11/27] i965: add indirect packing support to gs load inputs

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index aaa4980..6d589ed 100644 --- a/src/mesa/drive

[Mesa-dev] [PATCH 12/27] i965: add component packing support for load_output intrinsics

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 38 +++- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 6d589ed..4082a2c 100644 --- a/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH 17/27] i965: add helpers for creating component layout swizzle

2016-06-23 Thread Timothy Arceri
This will be used to swizzle components to the beginning or end of the vector based on the component layout qualifier and whether we are doing a load or store. --- src/mesa/drivers/dri/i965/brw_reg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/

[Mesa-dev] [PATCH 13/27] nir: add glsl_double_type() helper

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/compiler/nir_types.cpp | 6 ++ src/compiler/nir_types.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 835d53b..f694a84 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_ty

[Mesa-dev] [PATCH 08/27] nir: add glsl_dvec_type() helper

2016-06-23 Thread Timothy Arceri
--- src/compiler/nir_types.cpp | 6 ++ src/compiler/nir_types.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 4ea7a2f..835d53b 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -257,6 +257,12 @@ g

[Mesa-dev] [PATCH 07/27] i965: add component packing support for tcs

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index adb9230..c18e51c 100644 --- a/src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 02/27] nir: use the same driver location for packed varyings

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/compiler/nir/nir.h| 4 ++-- src/compiler/nir/nir_lower_io.c | 28 ++-- src/mesa/drivers/dri/i965/brw_nir.c | 8 +--- src/mesa/drivers/dri/i965/brw_program.c | 4 ++-- src/mesa/state_tracker/s

[Mesa-dev] [PATCH 03/27] glsl/nir: add new num_packed_components field

2016-06-23 Thread Timothy Arceri
This will be used to store the total number of components used at this location when packing via ARB_enhanced_layouts. --- src/compiler/glsl/glsl_to_nir.cpp | 1 + src/compiler/glsl/ir.h | 5 +++ src/compiler/glsl/link_varyings.cpp | 74 - src/c

[Mesa-dev] [PATCH 01/27] nir: add new intrinsic field for storing component offset

2016-06-23 Thread Timothy Arceri
This offset is used for packing. Reviewed-by: Kenneth Graunke --- src/compiler/nir/nir.h| 6 ++ src/compiler/nir/nir_intrinsics.h | 12 ++-- src/compiler/nir/nir_lower_io.c | 8 src/compiler/nir/nir_print.c | 3 +++ 4 files changed, 23 insertions(+), 6

[Mesa-dev] [PATCH 04/27] i965: enable component packing for vs and fs

2016-06-23 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 20 src/mesa/drivers/dri/i965/brw_fs.h | 5 +++-- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 29 - 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_f

[Mesa-dev] [PATCH 06/27] i965: add component packing support for tes

2016-06-23 Thread Timothy Arceri
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 38 +++- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 77355ff..adb9230 100644 --- a/

[Mesa-dev] V4 ARB_enhanced_layouts packing support for i965 Gen6+

2016-06-23 Thread Timothy Arceri
V4: - add vec4 backend support and enable for Gen6+ V3: - Rewrite patch 9 (add support for packing arrays) to not add hacks to the type_size() functions. - Add packing support for the load_output intrinsics (patch 12) - Add glsl_dvec_type() helper (patch 8) V2: - validation fixes patches 1-2 - ad

Re: [Mesa-dev] [PATCH 03/11] mesa: Implement _mesa_all_varyings_in_vbos.

2016-06-23 Thread Mathias Fröhlich
On Thursday, June 23, 2016 16:53:59 you wrote: > On Friday 17 June 2016, mathias.froehl...@gmx.net wrote: > > From: Mathias Fröhlich > > > > Implement the equivalent of vbo_all_varyings_in_vbos for > > vertex array objects. > > > > Signed-off-by: Mathias Fröhlich > > --- > > src/mesa/main/arra

Re: [Mesa-dev] [PATCH 2/4] anv: use cache uuid based on the build timestamp.

2016-06-23 Thread Dave Airlie
On 23 June 2016 at 23:25, Emil Velikov wrote: > On 23 June 2016 at 03:49, Michel Dänzer wrote: >> On 22.06.2016 21:04, Emil Velikov wrote: >>> From: Emil Velikov >>> >>> Do not rely on the git sha1: >>> - its current truncated form makes it less unique >>> - it does not attribute for local (Vu

[Mesa-dev] [PATCH 1/2] i965: Move contents of brw_tex.c into intel_tex_validate.c.

2016-06-23 Thread Kenneth Graunke
brw_tex.c is a tiny file containing a single function. It's closely tied to the validation logic in intel_tex_validate.c, so it makes sense to put both in the same file. While we're at it, update the function to our modern style. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/Mak

[Mesa-dev] [PATCH 2/2] i965: Drop unused return value from intel_finalize_mipmap_tree().

2016-06-23 Thread Kenneth Graunke
The old return type of GLuint was wonky - it should have been bool. But nothing actually uses the return value anyway, so we can just drop that and make it a void function. In theory, it might make sense to ask whether the texture validated successfully, but just checking intel_obj->mt != NULL wor

[Mesa-dev] [PATCH v2] egl/wayland: Avoid race conditions when on non-main thread

2016-06-23 Thread Jonas Ådahl
When EGL is used on some other thread than the thread that drives the main wl_display queue, the Wayland EGL dri2 implementation is vulnerable to a race condition related to display round trips and global object advertisements. The race that may happen is that after after a proxy is created, but b

[Mesa-dev] [PATCH] nvc0: when mapping directly, provide accurate xfer info + start

2016-06-23 Thread Ilia Mirkin
We were ignoring the incoming box parameters, and were providing totally bogus stride/layer stride, and other bits, for when a non-full-surface map was requested. Signed-off-by: Ilia Mirkin Cc: --- src/gallium/drivers/nouveau/nvc0/nvc0_transfer.c | 17 - 1 file changed, 12 inser

Re: [Mesa-dev] [PATCH 2/4] anv: use cache uuid based on the build timestamp.

2016-06-23 Thread Michel Dänzer
On 23.06.2016 22:25, Emil Velikov wrote: > On 23 June 2016 at 03:49, Michel Dänzer wrote: >> On 22.06.2016 21:04, Emil Velikov wrote: >>> From: Emil Velikov >>> >>> Do not rely on the git sha1: >>> - its current truncated form makes it less unique >>> - it does not attribute for local (Vulkand

[Mesa-dev] [PATCH] st/mesa: don't assume that the whole surface gets mapped

2016-06-23 Thread Ilia Mirkin
Under some circumstances, the driver may choose to return a temporary surface instead of a pointer to the original. Make sure to pass the actual view volume to be mapped to the transfer function rather than adjusting the map pointer after-the-fact. Signed-off-by: Ilia Mirkin --- Perhaps this sho

Re: [Mesa-dev] [PATCH 2/4] st/mesa: set the new pipe_surface::alpha_one field for RGB surfaces

2016-06-23 Thread Ilia Mirkin
Isn't this true for any-non-alpha-having format? I.e. _BaseFormat != GL_RGBA && _BaseFormat != GL_ALPHA && _BaseFormat != GL_LUMINANCE_ALPHA && _BaseFormat != GL_INTENSITY? (Not sure about that last one tbh.) On Thu, Jun 23, 2016 at 10:07 PM, Brian Paul wrote: > This indicates the alpha channel o

[Mesa-dev] [PATCH 4/4] svga: adjust blending terms according to pipe_surface::alpha_one

2016-06-23 Thread Brian Paul
This is needed when we're using an RGBA surface but it should act as if it were RGB (A=1). --- src/gallium/drivers/svga/svga_context.h| 3 +- src/gallium/drivers/svga/svga_pipe_blend.c | 90 ++ src/gallium/drivers/svga/svga_state_rss.c | 9 ++- 3 files changed, 7

[Mesa-dev] [PATCH 3/4] svga: create vgpu10 blend state objects on demand

2016-06-23 Thread Brian Paul
Instead of creating the blend object right away, wait until state validation time. We'll build on this in the next commit. --- src/gallium/drivers/svga/svga_context.h| 6 +++ src/gallium/drivers/svga/svga_pipe_blend.c | 70 -- src/gallium/drivers/svga/svga_state_r

[Mesa-dev] [PATCH 1/4] gallium: add pipe_surface::alpha_one field

2016-06-23 Thread Brian Paul
If the user requests an RGB drawing surface but we actually create an RGBA surface, we need it to act as if A=1. For blending, this means adjusting the blending terms to use 1/0 instead of DST_ALPHA/INV_DST_ALPHA. Drivers can use this flag to determine when that's needed. A previous patch I poste

[Mesa-dev] [PATCH 2/4] st/mesa: set the new pipe_surface::alpha_one field for RGB surfaces

2016-06-23 Thread Brian Paul
This indicates the alpha channel of the surface should always be one. Drivers can use this to adjust blending terms when needed. --- src/mesa/state_tracker/st_cb_fbo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c in

Re: [Mesa-dev] [Mesa-stable] [PATCH v2 03/11] mesa: Strip arrayness from interface block names in some IO validation

2016-06-23 Thread Ian Romanick
On 06/23/2016 03:30 PM, Ilia Mirkin wrote: > On Thu, Jun 23, 2016 at 6:07 PM, Ian Romanick wrote: >> On 06/16/2016 12:12 PM, Ilia Mirkin wrote: >>> On Thu, Jun 16, 2016 at 3:06 PM, Ian Romanick wrote: From: Ian Romanick Outputs from the vertex shader need to be able to match

[Mesa-dev] [Bug 96656] [regression, bisected] all textureGather piglits fail

2016-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=96656 Ilia Mirkin changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |nouveau@lists.freedesktop.o

Re: [Mesa-dev] [PATCH 2/2] clover: fix getting struct args api size

2016-06-23 Thread Francisco Jerez
Jan Vesely writes: > On Wed, 2016-06-22 at 20:22 -0700, Francisco Jerez wrote: >> Jan Vesely writes: >> >> > On Wed, 2016-06-22 at 17:07 -0700, Francisco Jerez wrote: >> > > Jan Vesely writes: >> > > >> > > > On Mon, 2016-06-13 at 17:24 -0700, Francisco Jerez wrote: >> > > > > Serge Martin w

Re: [Mesa-dev] [PATCH 0/2] radeonsi: last minute Polaris touch-ups

2016-06-23 Thread Alex Deucher
On Thu, Jun 23, 2016 at 7:42 PM, Nicolai Hähnle wrote: > Hi, > > I'm sending out two changes for Polaris support that should still go into > 12.0 (fingers crossed that that's it :-)). > > Note that the DRAW_PREAMBLE change should really be applicable to all CIK+ > parts, but let's not do anything

Re: [Mesa-dev] [PATCH] i965: Validate a few SEND-from-GRF requirements.

2016-06-23 Thread Matt Turner
Thanks for the additions! Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] i965: Validate a few SEND-from-GRF requirements.

2016-06-23 Thread Kenneth Graunke
We recently had a mistake where we emitted SEND instructions with EOT set, but from g107 rather than g112-g127. Adding validation code should prevent these sorts of problems from slipping back in. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_validate.c | 18 ++

Re: [Mesa-dev] [PATCH 05/11] nouveau: use common screen ref counting

2016-06-23 Thread Ilia Mirkin
As before, you need to keep the dupfd. There's even a long comment there to explain why. On Jun 23, 2016 7:58 PM, "Rob Herring" wrote: > Use the common pipe_screen ref counting and fd hashing functions. The > mutex can be dropped as the pipe loader protects the create_screen() > calls. > > Signed

[Mesa-dev] [PATCH 08/11] radeon: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Signed-off-by: Rob Herring Cc: "Marek Olšák" Cc: Ilia Mirkin --- src/gallium/drivers/r300/r300_screen.c| 3 - src/gallium/drivers/r600/

[Mesa-dev] [PATCH 10/11] vc4: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Cc: Eric Anholt Signed-off-by: Rob Herring --- src/gallium/winsys/vc4/drm/vc4_drm_winsys.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[Mesa-dev] [PATCH 05/11] nouveau: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Signed-off-by: Rob Herring Cc: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_screen.c | 6 -- src/gallium/drivers/nouveau/nouveau_

[Mesa-dev] [PATCH 06/11] freedreno: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Signed-off-by: Rob Herring Cc: Rob Clark --- src/gallium/drivers/freedreno/freedreno_screen.c | 1 - src/gallium/drivers/freedreno/freedreno_scree

[Mesa-dev] [PATCH 09/11] vmwgfx: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. Signed-off-by: Rob Herring --- src/gallium/winsys/svga/drm/vmw_screen.c | 51 src/gallium/winsys/svga/drm/vmw_screen.

[Mesa-dev] [PATCH 07/11] amdgpu: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref count. amdgpu is unique in its hashing the dev pointer rather than the fd, so the common fd hashing cannot be used. However, the same reference count can be used instead of the private one. The mutex can be dropped as the pipe loader protects the create_screen() calls

[Mesa-dev] [PATCH 04/11] pipe-loader-drm: use pipe_screen_unreference to destroy screen

2016-06-23 Thread Rob Herring
Use pipe_screen_unreference as it will call pipe_screen->destroy() when the pipe_screen is no longer referenced. The pipe_screen referencing is done within create_screen() functions as drivers (like amdgpu) may have special needs for ref counting. Signed-off-by: Rob Herring Cc: Emil Velikov ---

[Mesa-dev] [PATCH 11/11] virgl: use common screen ref counting

2016-06-23 Thread Rob Herring
Use the common pipe_screen ref counting and fd hashing functions. The mutex can be dropped as the pipe loader protects the create_screen() calls. The fd does not need to be dup'ed as the caller has already done that. Signed-off-by: Rob Herring Cc: Dave Airlie --- src/gallium/winsys/virgl/drm/vi

[Mesa-dev] [PATCH 03/11] pipe-loader-drm: protect create_screen() and destroy() calls with mutex

2016-06-23 Thread Rob Herring
Creating a screen needs to be an atomic operation in order to support reusing existing screen. With this, driver private mutexes in create screen functions can be removed. Signed-off-by: Rob Herring Cc: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 8 1 file ch

[Mesa-dev] [PATCH 02/11] gallium: add common pipe_screen reference counting functions

2016-06-23 Thread Rob Herring
In order to prevent multiple pipe_screens being created in the same process, lookup of the DRM FD and reference counting of the pipe_screen are needed. Several implementations of this exist in various gallium drivers/winsys already. This creates a common version which is opt-in for winsys implement

[Mesa-dev] [PATCH 00/11] Common pipe screen ref counting

2016-06-23 Thread Rob Herring
I needed to add screen ref counting to vc4 driver, so rather than yet another copy of the same fd hashing and ref counting code, I implemented it in the pipe-loader. AFAICT, the pipe-loader is the only place the winsys create screen functions are called and seemed to be the best location to put thi

[Mesa-dev] [PATCH 01/11] gallium: move pipe_screen destroy into pipe-loader

2016-06-23 Thread Rob Herring
In preparation to add reference counting of pipe_screen in the pipe-loader, pipe_loader_release needs to destroy the pipe_screen instead of state trackers. Signed-off-by: Rob Herring Cc: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader.h | 1 + src/gallium/auxiliary/pipe-loade

[Mesa-dev] [PATCH 1/2] radeonsi: use DRAW_(INDEX_)INDIRECT_MULTI on Polaris

2016-06-23 Thread Nicolai Hähnle
From: Nicolai Hähnle The non-MULTI variants will be removed in Polaris firmware. Cc: 12.0 --- src/gallium/drivers/radeonsi/si_state_draw.c | 46 ++-- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gall

[Mesa-dev] [PATCH 0/2] radeonsi: last minute Polaris touch-ups

2016-06-23 Thread Nicolai Hähnle
Hi, I'm sending out two changes for Polaris support that should still go into 12.0 (fingers crossed that that's it :-)). Note that the DRAW_PREAMBLE change should really be applicable to all CIK+ parts, but let's not do anything risky last-minute to the hardware that's already out there. Please

[Mesa-dev] [PATCH 2/2] radeonsi: drop the DRAW_PREAMBLE packet on Polaris

2016-06-23 Thread Nicolai Hähnle
From: Nicolai Hähnle It will be removed from the firmware for the Polaris. Cc: 12.0 --- src/gallium/drivers/radeon/r600_cs.h | 22 ++ src/gallium/drivers/radeonsi/si_state_draw.c | 7 ++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/galliu

Re: [Mesa-dev] Fwd: [PATCH] st/vdpau: use bicubic filter for scaling

2016-06-23 Thread Andy Furniss
Nayan Deshmukh wrote: Hi Andy, Could you test the new patch series that I have sent? It should probably work this time. Only had time for some quick tests so far. The scaling is now 99% OK, maybe 100% as I don't really know what artifacts to expect from artificial tests. The aspect is now co

Re: [Mesa-dev] [Mesa-stable] [PATCH v2 03/11] mesa: Strip arrayness from interface block names in some IO validation

2016-06-23 Thread Ilia Mirkin
On Thu, Jun 23, 2016 at 6:07 PM, Ian Romanick wrote: > On 06/16/2016 12:12 PM, Ilia Mirkin wrote: >> On Thu, Jun 16, 2016 at 3:06 PM, Ian Romanick wrote: >>> From: Ian Romanick >>> >>> Outputs from the vertex shader need to be able to match >>> per-vertex-arrayed inputs of later stages. Acompli

Re: [Mesa-dev] [Mesa-stable] [PATCH v2 03/11] mesa: Strip arrayness from interface block names in some IO validation

2016-06-23 Thread Ian Romanick
On 06/16/2016 12:12 PM, Ilia Mirkin wrote: > On Thu, Jun 16, 2016 at 3:06 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> Outputs from the vertex shader need to be able to match >> per-vertex-arrayed inputs of later stages. Acomplish this by stripping >> one level of arrayness from the names

[Mesa-dev] [PATCH 1/2] drm/i915: Add more Kabylake PCI IDs.

2016-06-23 Thread Rodrigo Vivi
The spec has been updated adding new PCI IDs. Signed-off-by: Rodrigo Vivi --- include/drm/i915_pciids.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm/i915_pciids.h b/include/drm/i915_pciids.h index 9094599..87dde1c 100644 --- a/include/drm/i915_pciids.h +++ b/include/drm/i91

[Mesa-dev] [PATCH 1/2] intel: Add more Kabylake PCI IDs.

2016-06-23 Thread Rodrigo Vivi
The spec has been updated adding new PCI IDs. Signed-off-by: Rodrigo Vivi --- intel/intel_chipset.h | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h index e2554c3..0c3ca82 100644 --- a/intel/intel_chipset.h +++ b/in

[Mesa-dev] [PATCH 1/2] i956: Add more Kabylake PCI IDs.

2016-06-23 Thread Rodrigo Vivi
The spec has been updated adding new PCI IDs. Signed-off-by: Rodrigo Vivi --- include/pci_ids/i965_pci_ids.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/pci_ids/i965_pci_ids.h b/include/pci_ids/i965_pci_ids.h index fce00da..7a7897f 100644 --- a/include/pci_ids/i965_pci_ids.h +

[Mesa-dev] [PATCH 2/2] i965: Removing PCI IDs that are no longer listed as Kabylake.

2016-06-23 Thread Rodrigo Vivi
This is unusual. Usually IDs listed on early stages of platform definition are kept there as reserved for later use. However these IDs here are not listed anymore in any of steppings and devices IDs tables for Kabylake on configurations overview section of BSpec. So it is better removing them bef

[Mesa-dev] [PATCH 2/2] intel: Removing PCI IDs that are no longer listed as Kabylake.

2016-06-23 Thread Rodrigo Vivi
This is unusual. Usually IDs listed on early stages of platform definition are kept there as reserved for later use. However these IDs here are not listed anymore in any of steppings and devices IDs tables for Kabylake on configurations overview section of BSpec. So it is better removing them bef

[Mesa-dev] [PATCH 2/2] drm/i915: Removing PCI IDs that are no longer listed as Kabylake.

2016-06-23 Thread Rodrigo Vivi
This is unusual. Usually IDs listed on early stages of platform definition are kept there as reserved for later use. However these IDs here are not listed anymore in any of steppings and devices IDs tables for Kabylake on configurations overview section of BSpec. So it is better removing them bef

Re: [Mesa-dev] [PATCH] nir: Add a NIR_VALIDATE environment variable

2016-06-23 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 03/11] mesa: Strip arrayness from interface block names in some IO validation

2016-06-23 Thread Ian Romanick
ping I'll have a response to Ilia's feedback shortly. On 06/16/2016 12:06 PM, Ian Romanick wrote: > From: Ian Romanick > > Outputs from the vertex shader need to be able to match > per-vertex-arrayed inputs of later stages. Acomplish this by stripping > one level of arrayness from the names an

Re: [Mesa-dev] [PATCH] mapi: Export all GLES 3.1 functions in libGLESv2.so

2016-06-23 Thread Ian Romanick
ping *Before* 12.0 ships, we must either land this patch or a patch that redacts the GLES 3.1 functions (e.g., glDispatchCompute) that we already statically export. On 06/17/2016 10:20 AM, Ian Romanick wrote: > From: Ian Romanick > > Khronos recommends that the GLES 3.1 library also be called l

[Mesa-dev] [PATCH] nir: Add a NIR_VALIDATE environment variable

2016-06-23 Thread Jason Ekstrand
It defaults to true so default behavior doesn't change but it allows you to do NIR_VALIDATE=false if you don't want validation. Disabling validation can substantially speed up shader compiles so you frequently want to turn it off if compiler invariants aren't in question. --- src/compiler/nir/nir

Re: [Mesa-dev] [PATCH 3/3] i965: Delete send-from-GRF only opcodes from implied_mrf_writes().

2016-06-23 Thread Matt Turner
On Thu, Jun 23, 2016 at 2:06 PM, Kenneth Graunke wrote: > These only exist post-Sandybridge, and always use send-from-GRF. > So inst->base_mrf will be -1, and we will have already returned 0. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 18 --

[Mesa-dev] Fwd: [PATCH] st/vdpau: use bicubic filter for scaling

2016-06-23 Thread Nayan Deshmukh
Hi Andy, Could you test the new patch series that I have sent? It should probably work this time. Thanks, Nayan. On Wed, Jun 22, 2016 at 7:07 PM, Andy Furniss wrote: > Andy Furniss wrote: > > re-testing with an unpatched mesa and return false after PREFERS I see >> the same. >> >> s/w decode m

Re: [Mesa-dev] [PATCH v2 04/11] glsl: Pack integer and double varyings as flat even if interpolation mode is none

2016-06-23 Thread Ian Romanick
ping On 06/16/2016 12:07 PM, Ian Romanick wrote: > From: Ian Romanick > > v2: Also update varying_matches::compute_packing_class(). Suggested by > Timothy Arceri. > > Signed-off-by: Ian Romanick > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96358 > Cc: "12.0" > Cc: Gregory Hainaut

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3] i965: Set fs_inst::base_mrf = -1 by default.

2016-06-23 Thread Francisco Jerez
Kenneth Graunke writes: > On MRF platforms, we need to set base_mrf to the first MRF value we'd > like to use for the message. On send-from-GRF platforms, we set it to > -1 to indicate that the operation doesn't use MRFs. > > As MRF platforms are becoming increasingly a thing of the past, we've

Re: [Mesa-dev] [PATCH] anv: Add anv_render_pass_attachment::store_op

2016-06-23 Thread Jason Ekstrand
R-B On Thu, Jun 23, 2016 at 1:56 PM, Chad Versace wrote: > Will be needed for resolving auxiliary surfaces. > > I didn't add anv_render_pass_attachment::stencil_store_op, as the driver > would likely never use it, as stencil surfaces never have auxiliary > surfaces. > --- > src/intel/vulkan/anv

[Mesa-dev] [PATCH 2/2] st/vdpau: use bicubic filter for scaling(v5)

2016-06-23 Thread Nayan Deshmukh
use bicubic filtering as high quality scaling L1. v2: fix a typo and add a newline to code v3: -render the unscaled image on a temporary surface (Christian) -apply noise reduction and sharpness filter on unscaled surface -render the final scaled surface using bicubic interpolati

[Mesa-dev] [PATCH 1/2] vl: add a bicubic interpolation filter(v2)

2016-06-23 Thread Nayan Deshmukh
This is a shader based bicubic interpolater which uses cubic Hermite spline algorithm. v2: set dst_area and dst_clip during scaling (Christian) Signed-off-by: Nayan Deshmukh --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/vl/vl_bicubic_filter.c | 402

[Mesa-dev] [PATCH 2/3] i965: Drop unnecessary inst->base_mrf = -1 assignments.

2016-06-23 Thread Kenneth Graunke
These are now unnecessary, as base_mrf is -1 by default. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 12 2 files changed, 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/m

[Mesa-dev] [PATCH 1/3] i965: Set fs_inst::base_mrf = -1 by default.

2016-06-23 Thread Kenneth Graunke
On MRF platforms, we need to set base_mrf to the first MRF value we'd like to use for the message. On send-from-GRF platforms, we set it to -1 to indicate that the operation doesn't use MRFs. As MRF platforms are becoming increasingly a thing of the past, we've forgotten to bother with this. It

[Mesa-dev] [PATCH 3/3] i965: Delete send-from-GRF only opcodes from implied_mrf_writes().

2016-06-23 Thread Kenneth Graunke
These only exist post-Sandybridge, and always use send-from-GRF. So inst->base_mrf will be -1, and we will have already returned 0. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 18 -- 1 file changed, 18 deletions(-) diff --git a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH v2 26/34] i965/gen7: Use the generic ISL-based path for texture surfaces

2016-06-23 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 169 +- 1 file changed, 1 insertion(+), 168 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c index 2a7ae31..bdb4f66 100644 --- a/src/mesa/dri

[Mesa-dev] [PATCH v2 24/34] i965/gen8: Use the generic ISL-based path for texture surfaces

2016-06-23 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/gen8_surface_state.c | 213 + 1 file changed, 1 insertion(+), 212 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index f4375ea..ed26271 100644 --- a/src/mesa/drivers/d

[Mesa-dev] [PATCH v2 08/34] isl: Add an auxiliary surface layout enum

2016-06-23 Thread Jason Ekstrand
--- src/intel/isl/isl.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 4aedb11..5011d15 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -506,6 +506,32 @@ enum isl_dim_layout { ISL_DIM_LAYOUT_GEN9_1D,

[Mesa-dev] [PATCH v2 01/34] genxml: Add enough XML for gens 4, 4.5, and 5 to get SURFACE_STATE

2016-06-23 Thread Jason Ekstrand
--- src/intel/genxml/Android.mk | 15 +++ src/intel/genxml/Makefile.am | 3 +++ src/intel/genxml/Makefile.sources | 3 +++ src/intel/genxml/gen4.xml | 52 src/intel/genxml/gen45.xml| 56 ++

[Mesa-dev] [PATCH v2 20/34] i965/blorp: Use a generic ISL path for texture surfaces on gen8

2016-06-23 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/gen8_blorp.c | 47 +++--- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_blorp.c b/src/mesa/drivers/dri/i965/gen8_blorp.c index b5c600b..918f3d6 100644 --- a/src/mesa/drivers/dri/i965/gen8_blo

[Mesa-dev] [PATCH v2 14/34] i965/blorp: Use the generic ISL path for renderbuffer surfaces on gen8-9

2016-06-23 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/gen8_blorp.c | 99 ++ 1 file changed, 4 insertions(+), 95 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_blorp.c b/src/mesa/drivers/dri/i965/gen8_blorp.c index fcf5a53..b5c600b 100644 --- a/src/mesa/drivers/dri/i965/gen8_blo

[Mesa-dev] [PATCH v2 31/34] i965/state: Account for the element size in emit_buffer_surface_state

2016-06-23 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 11 ++- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 9 + src/mesa/drivers/dri/i965/gen8_surface_state.c| 9 + 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw

  1   2   >