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 01/16] glsl: check for leading zeros in array index validation

2015-07-21 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 18/07/15 03:25, Timothy Arceri wrote: > --- > src/glsl/linker.cpp | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp > index b7a783c..cb679bd 100644 > --- a/src/glsl/linker.cpp > +++ b/src/glsl/linker.

Re: [Mesa-dev] [PATCH 09/16] glsl: clean-up link uniform code

2015-07-21 Thread Samuel Iglesias Gonsálvez
On 18/07/15 03:25, Timothy Arceri wrote: > --- > src/glsl/link_uniforms.cpp | 16 ++-- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp > index 11ae06f..2d50b9b 100644 > --- a/src/glsl/link_uniforms.cpp > +++ b

Re: [Mesa-dev] [PATCH 05/16] glsl: set stage flag for structs and arrays in resource list

2015-07-21 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 18/07/15 03:25, Timothy Arceri wrote: > This fixes the remaining failing tests in: > ES31-CTS.program_interface_query.uniform-types > --- > src/glsl/linker.cpp | 16 +--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/sr

Re: [Mesa-dev] [PATCH 06/16] mesa: fix active sampler conflict validation

2015-07-21 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 18/07/15 03:25, Timothy Arceri wrote: > The type stored in gl_uniform_storage is the type of a single array > element not the array type so size was always 1. > > V2: Dont validate sampler units pointing to 0 > --- > src/mesa/main/uniform_query.cpp | 20

Re: [Mesa-dev] [PATCH 08/16] glsl: dont allow gl_PerVertex to be redeclared as an array of arrays

2015-07-21 Thread Samuel Iglesias Gonsálvez
On 18/07/15 03:25, Timothy Arceri wrote: > V2: move single dimensionial array detection into a helper > s/dimensionial/dimensional With that change, Reviewed-by: Samuel Iglesias Gonsálvez Sam > Signed-off-by: Timothy Arceri > --- > src/glsl/ast.h | 8 > src/glsl/ast_to_h

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

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/main/glformats.c | 44 > src/mesa/main/glformats.h | 3 +++ > 2 files changed, 47 insertions(+) > > diff --git a/src/mesa/main/glformats.c b/src/mesa/

Re: [Mesa-dev] [PATCH 02/16] mesa: fix incorrect comment

2015-07-21 Thread Samuel Iglesias Gonsálvez
I agree with Ilia but, as you said, it is not adding a lot of value. So I give my R-b to either option. Reviewed-by: Samuel Iglesias Gonsálvez On 18/07/15 04:12, Timothy Arceri wrote: > Yeah your right but its also used by _mesa_program_resource_prop > > I can move the comment but is it really

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 > > Cc: > > --- > > src/mesa/dri

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, Jason Ekstrand > > >> wrote: > >

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

2015-07-21 Thread Iago Toral
On Tue, 2015-06-16 at 11:15 -0700, Anuj Phogat wrote: > _mesa_base_tex_format() doesn't handle GL_*_INTEGER formats. > > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/common/meta.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/drivers/common/meta.

Re: [Mesa-dev] [PATCH 09/16] glsl: clean-up link uniform code

2015-07-21 Thread Timothy Arceri
On Tue, 2015-07-21 at 10:03 +0200, Samuel Iglesias Gonsálvez wrote: > On 18/07/15 03:25, Timothy Arceri wrote: > > --- > > src/glsl/link_uniforms.cpp | 16 ++-- > > 1 file changed, 6 insertions(+), 10 deletions(-) > > > > diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniform

Re: [Mesa-dev] [PATCH 13/14] android: rework the EGL build

2015-07-21 Thread Varad Gautam
On Tuesday, July 14, 2015 04:02:47 PM Emil Velikov wrote: > See previous two commits for details. > > Signed-off-by: Emil Velikov > --- > Android.mk | 3 +- > src/egl/drivers/dri2/Android.mk | 63 > - src/egl/main/Android.mk |

[Mesa-dev] [Bug 91254] (regresion) video using VA-API on Intel slow and freeze system with mesa 10.6 or 10.6.1

2015-07-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91254 --- Comment #8 from Tomasz C. --- > To confirm, the issue only happens on Ironlake for you? > > I was unable to reproduce on GM45 or Ivy Bridge using > 10.6.0 or master. > > I tried the 3, 5, 10 and 70 Mbps versions, with > this command line: >

[Mesa-dev] [PATCH] i965: Use updated kernel interface for accurate TIMESTAMP reads

2015-07-21 Thread Chris Wilson
I was mistaken, I thought we already had fixed this in the kernel a couple of years ago. We had not, and the broken read (the hardware shifts the register output on 64bit kernels, but not on 32bit kernels) is now enshrined into the ABI. I also had the buggy architecture reversed, believing it to be

Re: [Mesa-dev] [PATCH 1/5] utils: automake: remove uncommon $()

2015-07-21 Thread Emil Velikov
On 20/07/15 21:25, Chad Versace wrote: > On Fri 17 Jul 2015, Emil Velikov wrote: >> On 17 July 2015 at 19:11, Ilia Mirkin wrote: >>> On Fri, Jul 17, 2015 at 2:11 PM, Eric Anholt wrote: Matt Turner writes: > On Fri, Jul 17, 2015 at 10:17 AM, Emil Velikov > wrote: >> Cc: Er

Re: [Mesa-dev] [PATCH 5/5] vc4: add missing nir include, to fix the build

2015-07-21 Thread Emil Velikov
On 17/07/15 18:17, Emil Velikov wrote: > Cc: 10.6 > Cc: Eric Anholt > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/vc4/Makefile.am | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/gallium/drivers/vc4/Makefile.am > b/src/gallium/drivers/vc4/Makefile.am > index a4a7f86..3

[Mesa-dev] Mesa 10.6.3 cut-off

2015-07-21 Thread Emil Velikov
Hi all, Humble reminder: Any patches sent to mesa-stable and/or landed in master after 12 PM (noon) GMT, on the 22nd of July won't feature in 10.6.3. Cheers, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/ma

Re: [Mesa-dev] [PATCH 13/14] android: rework the EGL build

2015-07-21 Thread Emil Velikov
On 21 July 2015 at 10:53, Varad Gautam wrote: > On Tuesday, July 14, 2015 04:02:47 PM Emil Velikov wrote: >> See previous two commits for details. >> >> Signed-off-by: Emil Velikov >> --- >> Android.mk | 3 +- >> src/egl/drivers/dri2/Android.mk | 63 >> -

Re: [Mesa-dev] [PATCH] st/mesa: Silence GCC unused-variable warning.

2015-07-21 Thread Brian Paul
On 07/20/2015 10:55 PM, Vinson Lee wrote: Silence a release build warning. st_glsl_to_tgsi.cpp: In function 'pipe_error st_translate_program(gl_context*, uint, ureg_program*, glsl_to_tgsi_visitor*, const gl_program*, GLuint, const GLuint*, const GLuint*, const ubyte*, const ubyte*, const GLuin

Re: [Mesa-dev] [PATCH 04/12] gallium/util: improve dump functions

2015-07-21 Thread Brian Paul
Just a couple minor nits... On 07/16/2015 10:54 AM, Marek Olšák wrote: From: Marek Olšák --- src/gallium/auxiliary/util/u_dump.h | 20 ++- src/gallium/auxiliary/util/u_dump_defines.c | 41 + src/gallium/auxiliary/util/u_dump_state.c | 233 ++-- 3 fi

[Mesa-dev] [Bug 91254] (regresion) video using VA-API on Intel slow and freeze system with mesa 10.6 or 10.6.1

2015-07-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91254 --- Comment #9 from me...@frugalware.org --- (In reply to Tomasz C. from comment #8) > > Yes, the issue only happens on Intel Core i5 M 450. This is probably > Ironlake Graphics. > On other processors listed by me everything is working properly.

Re: [Mesa-dev] [PATCH 04/12] gallium/util: improve dump functions

2015-07-21 Thread Marek Olšák
On Tue, Jul 21, 2015 at 3:56 PM, Brian Paul wrote: > Just a couple minor nits... > > On 07/16/2015 10:54 AM, Marek Olšák wrote: >> >> From: Marek Olšák >> >> --- >> src/gallium/auxiliary/util/u_dump.h | 20 ++- >> src/gallium/auxiliary/util/u_dump_defines.c | 41 + >> src/galliu

[Mesa-dev] [Bug 91387] Mesa 10.6.1 implementation error: invalid target in _swrast_choose_texture_sample_func

2015-07-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91387 --- Comment #2 from Michael Godfrey --- I believe that the seg fault actually occurs in Octave. I could run a backtrace but, in any case, other Octave developers can do this quicker. If it is found that there is a problem in the Mesa code, they w

[Mesa-dev] [PATCH v2] android: rework the EGL build

2015-07-21 Thread Emil Velikov
See previous two commits for details. v2: Don't forget git mv, bring back DRM_GRALLOC_TOP. Spotted by Varad. Cc: Varad Gautam Cc: Chih-Wei Huang Cc: Eric Anholt Signed-off-by: Emil Velikov --- Patch generated with -M to ease diff/review process. -Emil Android.mk | 3

Re: [Mesa-dev] [PATCH 04/12] gallium/util: improve dump functions

2015-07-21 Thread Brian Paul
On 07/21/2015 08:17 AM, Marek Olšák wrote: On Tue, Jul 21, 2015 at 3:56 PM, Brian Paul wrote: Just a couple minor nits... On 07/16/2015 10:54 AM, Marek Olšák wrote: From: Marek Olšák --- src/gallium/auxiliary/util/u_dump.h | 20 ++- src/gallium/auxiliary/util/u_dump_defines.c

[Mesa-dev] [PATCH mesa 2/2] egl: android: remove DRM_GRALLOC_TOP hack

2015-07-21 Thread Emil Velikov
Now that the drm_gralloc module exports the correct includes we can get rid of this hack. Cc: Varad Gautam Cc: Chih-Wei Huang Cc: Eric Anholt Signed-off-by: Emil Velikov --- Android.mk | 2 -- src/egl/Android.mk | 1 - 2 files changed, 3 deletions(-) diff --git a/Android.mk b/Android

[Mesa-dev] [PATCH drm_gralloc 1/2] build: set the export include dirs

2015-07-21 Thread Emil Velikov
... in order to prevent fixed path hacks in other projects. Cc: Varad Gautam Cc: Chih-Wei Huang Cc: Eric Anholt Signed-off-by: Emil Velikov --- Android.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Android.mk b/Android.mk index 571ec1c..f749e6e 100644 --- a/Android.mk +++ b/Androi

Re: [Mesa-dev] [PATCH 1/2] mesa: Detect and provide macros for function attributes pure and const.

2015-07-21 Thread Emil Velikov
On 18 July 2015 at 08:13, Jose Fonseca wrote: > On 18/07/15 01:38, Eric Anholt wrote: >> >> Emil Velikov writes: >> >>> On 14/07/15 19:45, Eric Anholt wrote: These are really useful hints to the compiler in the absence of link-time optimization, and I'm going to use them in VC

Re: [Mesa-dev] [PATCH] gallium: replace INLINE with inline

2015-07-21 Thread Marek Olšák
Acked-by: Marek Olšák What's next? boolean -> bool? :) Marek On Tue, Jul 21, 2015 at 2:20 AM, Ilia Mirkin wrote: > Generated by running: > git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g' > git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i > 's/\bINLINE\b/inline/

Re: [Mesa-dev] [PATCH] gallium: replace INLINE with inline

2015-07-21 Thread Ilia Mirkin
That's already done :) At least in nouveau, thanks to Samuel. On Tue, Jul 21, 2015 at 11:22 AM, Marek Olšák wrote: > Acked-by: Marek Olšák > > What's next? boolean -> bool? :) > > Marek > > On Tue, Jul 21, 2015 at 2:20 AM, Ilia Mirkin wrote: >> Generated by running: >> git grep -l INLINE src/ga

[Mesa-dev] [PATCH RFC 2/9] glx/dri3: Convert to use dri3 helper in loader library

2015-07-21 Thread Boyan Ding
Signed-off-by: Boyan Ding --- configure.ac|4 - src/glx/dri3_glx.c | 1446 ++- src/glx/dri3_priv.h | 96 +--- 3 files changed, 171 insertions(+), 1375 deletions(-) diff --git a/configure.ac b/configure.ac index a91bbd4..872f15b 10064

[Mesa-dev] [PATCH RFC 1/9] loader: Add dri3 helper

2015-07-21 Thread Boyan Ding
Signed-off-by: Boyan Ding --- configure.ac|8 +- src/loader/Makefile.am |9 + src/loader/loader_dri3_helper.c | 1397 +++ src/loader/loader_dri3_helper.h | 226 +++ 4 files changed, 1639 insertions(+), 1 deletion(-) cr

[Mesa-dev] [PATCH RFC 9/9] egl/x11_dri3: Implement EGL_KHR_image_pixmap

2015-07-21 Thread Boyan Ding
Signed-off-by: Boyan Ding --- src/egl/drivers/dri2/platform_x11.c | 1 + src/egl/drivers/dri2/platform_x11_dri3.c | 77 +++- 2 files changed, 77 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c

[Mesa-dev] [PATCH 5/9] egl_dri2: Add support for EGL_KHR_create_contest when using swrast

2015-07-21 Thread Boyan Ding
This requires swrast version >= 3. Also EGL_EXT_create_context_robostness is supported if __DRI2_ROBUSTNESS extension is found. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=80821 Signed-off-by: Boyan Ding --- src/egl/drivers/dri2/egl_dri2.c | 3 ++- 1 file changed, 2 insertions(+), 1

[Mesa-dev] [RFC] DRI3 support for EGL (v2)

2015-07-21 Thread Boyan Ding
This is the second version of my effort to bring dri3 to EGL on X. This time I took Emil's advice and moved common logic of GLX and EGL into loader/loader_dri3_helper.[ch]. With this, the dri3 code in libEGL is only ~650 lines, with a bunch of trivial code, and glx/dri3 code also shrinks a lot. I

[Mesa-dev] [PATCH 4/9] egl_dri2: Use createContextAttribs if swrast version >= 3

2015-07-21 Thread Boyan Ding
v2: Change return type of the new function from int to bool Signed-off-by: Boyan Ding --- src/egl/drivers/dri2/egl_dri2.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index

[Mesa-dev] [PATCH 3/9] egl_dri2: Move filling context_attrib array in a separate function

2015-07-21 Thread Boyan Ding
v2: Change return type of the new function from int to bool Reviewed-by: Marek Olšák Signed-off-by: Boyan Ding --- src/egl/drivers/dri2/egl_dri2.c | 90 - 1 file changed, 54 insertions(+), 36 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/sr

[Mesa-dev] [PATCH RFC 7/9] egl/x11: Implement dri3 support with loader's dri3 helper

2015-07-21 Thread Boyan Ding
Signed-off-by: Boyan Ding --- configure.ac | 6 + src/egl/drivers/dri2/Makefile.am | 5 + src/egl/drivers/dri2/egl_dri2.c | 66 +++- src/egl/drivers/dri2/egl_dri2.h | 14 +- src/egl/drivers/dri2/platform_x11.c | 105 ++- src/egl

[Mesa-dev] [PATCH RFC 6/9] egl_dri2: Add a function to let platform code return dri drawable from _EGLSurface

2015-07-21 Thread Boyan Ding
dri3 for EGL will use different struct other than dri2_egl_surface for an EGL surface, the common code only uses __DRIdrawable from that struct, so instead of converting _EGLSurface to dri2_egl_surface, let the platform code return the __DRIdrawable by its own (although the current platforms use th

[Mesa-dev] [PATCH] glx: Fix image size computation for EXT_texture_integer (v2)

2015-07-21 Thread Adam Jackson
Without this this extension basically can't work in indirect contexts, TexImage2D will compute the image size as 0 and we'll send no image data to the server. v2: Add EXT_texture_integer to the client extension list too (Ian) Signed-off-by: Adam Jackson --- src/glx/compsize.c | 10

[Mesa-dev] [PATCH RFC 8/9] loader/dri3: Expose function to create __DRIimage from pixmap

2015-07-21 Thread Boyan Ding
Used to support EGL_KHR_image_pixmap. Signed-off-by: Boyan Ding --- src/loader/loader_dri3_helper.c | 82 - src/loader/loader_dri3_helper.h | 9 + 2 files changed, 58 insertions(+), 33 deletions(-) diff --git a/src/loader/loader_dri3_helper.c b/src/l

Re: [Mesa-dev] [PATCH 04/11] dri_interface: drop __NOT_HAVE_DRM_H magic

2015-07-21 Thread Emil Velikov
On 20 July 2015 at 19:36, Ian Romanick wrote: > On 07/09/2015 01:12 PM, Emil Velikov wrote: >> On 9 July 2015 at 18:50, Ian Romanick wrote: >>> On 07/08/2015 10:07 AM, Emil Velikov wrote: Signed-off-by: Emil Velikov --- include/GL/internal/dri_interface.h | 11 --- 1

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-21 Thread Marek Olšák
I don't think resource_copy_region is a good match for all possible cases that can occur with ARB_copy_image and I extensively explained this to Ilia on IRC. The format swizzling is the problem. Assume you have a copy from RGBA8 to R32F. This is equivalent to copying RGBA8 to RGBA8, because it's j

[Mesa-dev] [PATCH v2] dri_interface: drop __NOT_HAVE_DRM_H magic

2015-07-21 Thread Emil Velikov
v2: use HAVE_LIBDRM macro. Cc: Ian Romanick Signed-off-by: Emil Velikov --- include/GL/internal/dri_interface.h | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index c827bb6..7266071 100644 --

[Mesa-dev] [PATCH] r600/sb: Fix an &/&& mistake

2015-07-21 Thread Adam Jackson
gcc says: sb/sb_sched.cpp: In member function 'bool r600_sb::alu_group_tracker::try_reserve(r600_sb::alu_node*)': sb/sb_sched.cpp:492:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] if (!trans & fbs) It happens to be harmle

[Mesa-dev] [PATCH] i965/fs: Factor out source components calculation to a separate method.

2015-07-21 Thread Francisco Jerez
This cleans up fs_inst::regs_read() slightly by disentangling the calculation of "components" from the handling of message payload arguments. This will also simplify the SIMD lowering and logical send message lowering passes, because it will avoid expressions like 'regs_read * REG_SIZE / component

[Mesa-dev] [PATCH 1/5] utils: automake: remove uncommon $()

2015-07-21 Thread Thomas Helland
2015-07-21 14:12 GMT+02:00 Emil Velikov : > On 20/07/15 21:25, Chad Versace wrote: >> On Fri 17 Jul 2015, Emil Velikov wrote: >>> On 17 July 2015 at 19:11, Ilia Mirkin wrote: On Fri, Jul 17, 2015 at 2:11 PM, Eric Anholt wrote: > Matt Turner writes: > >> On Fri, Jul 17, 2015 at 1

[Mesa-dev] [PATCH 02/20] i965/fs: Hook up SIMD lowering to unroll surface instructions of unsupported width.

2015-07-21 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 1062ded..a996676 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -405

[Mesa-dev] i965 implementation of the ARB_shader_image_load_store built-ins. (v4)

2015-07-21 Thread Francisco Jerez
Another resend of the i965 compiler-related changes for ARB_shader_image_load_store, reworked to make use of the SIMD lowering infrastructure introduced in a previous series [1]. For a self-contained branch in testable form see [2]. [1] http://lists.freedesktop.org/archives/mesa-dev/2015-July/089

[Mesa-dev] [PATCH 05/20] i965/fs: Import surface message builder helper functions.

2015-07-21 Thread Francisco Jerez
Implement helper functions that can be used to construct and send untyped and typed surface read, write and atomic messages to the shared dataport unit easily. v2: Drop VEC4 suport. v3: Reimplement in terms of logical send opcodes. --- src/mesa/drivers/dri/i965/Makefile.sources | 2 + .

[Mesa-dev] [PATCH 08/20] i965/fs: Import image format metadata queries.

2015-07-21 Thread Francisco Jerez
Define some utility functions to query the bitfield layout of a given image format and whether it satisfies a number of more or less hardware-specific properties. v2: Drop VEC4 suport. v3: Add SKL support. --- src/mesa/drivers/dri/i965/brw_fs_surface_builder.h | 148 + 1 file

[Mesa-dev] [PATCH 04/20] i965/fs: Handle zero-size allocations in fs_builder::vgrf().

2015-07-21 Thread Francisco Jerez
This will be handy to avoid some ugly ternary operators in the next patch, like: fs_reg reg = (size == 0 ? null_reg_ud() : vgrf(..., size)); Because a zero-size register allocation is guaranteed not to ever be read or written we can just return the null register. Another possibility would be to

[Mesa-dev] [PATCH 03/20] i965/fs: Implement lowering of logical surface instructions.

2015-07-21 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 63 +++- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index a996676..0b0c5e1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +

[Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-21 Thread Francisco Jerez
Define a function to calculate the memory address of the image location given by a vector of coordinates. This is required in cases where we need to fall back to untyped surface access, which take a raw memory offset and know nothing about surface coordinates, type conversion or memory tiling and

[Mesa-dev] [PATCH 09/20] i965/fs: Import image format conversion primitives.

2015-07-21 Thread Francisco Jerez
Define bitfield packing, unpacking and type conversion operations in terms of which the image format conversion code will be implemented. These don't directly know about image formats: The packing and unpacking functions take a 4-tuple of bit shifts and a 4-tuple of bit widths as arguments, determi

[Mesa-dev] [PATCH 16/20] i965/fs: Execute nir_setup_uniforms, _inputs and _outputs unconditionally.

2015-07-21 Thread Francisco Jerez
Images take up zero uniform slots in the nir_shader::num_uniforms calculation, but nir_setup_uniforms needs to be executed even if the program has no non-image uniforms so the driver-specific image parameters are uploaded. nir_setup_uniforms is a no-op if there are really no uniforms, so checking

[Mesa-dev] [PATCH 14/20] i965: Implement logic to set up and upload an image uniform.

2015-07-21 Thread Francisco Jerez
v2: Move the image_params array back to brw_stage_prog_data. --- src/mesa/drivers/dri/i965/brw_shader.cpp | 31 +++ src/mesa/drivers/dri/i965/brw_shader.h | 1 + 2 files changed, 32 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/driv

[Mesa-dev] [PATCH 06/20] i965/fs: Import image access validity checks.

2015-07-21 Thread Francisco Jerez
These utility functions check whether an image access is valid. According to the spec an invalid image access should have no effect on the image and yield well-defined results. Typically the hardware implements correct bounds and surface checking by itself, but in some cases (typed atomics on IVB

[Mesa-dev] [PATCH 20/20] i965: Expose ARB_shader_image_load_store.

2015-07-21 Thread Francisco Jerez
Reviewed-by: Paul Berry --- 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 6b3bd12..5a5e308 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.

[Mesa-dev] [PATCH 10/20] i965/fs: Implement image load, store and atomic.

2015-07-21 Thread Francisco Jerez
v2: Drop VEC4 suport. v3: Rebase. --- .../drivers/dri/i965/brw_fs_surface_builder.cpp| 216 + src/mesa/drivers/dri/i965/brw_fs_surface_builder.h | 17 ++ 2 files changed, 233 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp b/src/mesa/drive

[Mesa-dev] [PATCH 11/20] i965/fs: Revisit NIR atomic counter intrinsic translation.

2015-07-21 Thread Francisco Jerez
Rewrite the NIR atomic counter intrinsics translation code making use of the recently introduced surface builder. This will allow the removal of some of the functionality duplicated between the visitor and surface builder. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 49 +

[Mesa-dev] [PATCH 01/20] i965/fs: Define logical typed and untyped surface opcodes.

2015-07-21 Thread Francisco Jerez
Each logical variant is largely equivalent to the original opcode but instead of taking a single payload source it expects its arguments separately as individual sources, like: typed_surface_write_logical null, coordinates, source, surface, num_coordinates, num

[Mesa-dev] [PATCH 13/20] i965: Teach type_size() about the size of an image uniform.

2015-07-21 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 0b0c5e1..0d97474 100644 --- a/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 17/20] i965/fs: Handle image uniforms in NIR programs.

2015-07-21 Thread Francisco Jerez
v2: Move the image_params array back to brw_stage_prog_data. --- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 50 +++- 2 files changed, 43 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/sr

[Mesa-dev] [PATCH 12/20] i965/fs: Drop unused untyped surface read and atomic emit methods.

2015-07-21 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 7 -- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 13 ++-- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 112 --- 3 files changed, 5 insertions(+), 127 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b

[Mesa-dev] [PATCH 15/20] i965/fs: Don't overwrite fs_visitor::uniforms and ::param_size during the SIMD16 run.

2015-07-21 Thread Francisco Jerez
Image variables need to allocate additional uniform slots over nir_shader::num_uniforms. nir_setup_uniforms() overwrites the values imported from the SIMD8 visitor and then exits early before entering the nir_shader::uniforms loop, so image uniforms are never re-created. Instead leave the imported

[Mesa-dev] [PATCH 19/20] i965/fs: Translate memory barrier NIR intrinsics.

2015-07-21 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 76297b7..9a1fb4b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 18/20] i965/fs: Translate image load, store and atomic NIR intrinsics.

2015-07-21 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 149 +++ 1 file changed, 149 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 31024b7..76297b7 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++

[Mesa-dev] [PATCH] i965/fs: Handle non-const sample number in interpolateAtSample

2015-07-21 Thread Neil Roberts
If a non-const sample number is given to interpolateAtSample it will now generate an indirect send message with the sample ID similar to how non-const sampler array indexing works. Previously non-const values were ignored and instead it ended up using a constant 0 value. Note that unlike sampler a

Re: [Mesa-dev] [PATCH] r600/sb: Fix an &/&& mistake

2015-07-21 Thread Alex Deucher
On Tue, Jul 21, 2015 at 12:12 PM, Adam Jackson wrote: > gcc says: > > sb/sb_sched.cpp: In member function 'bool > r600_sb::alu_group_tracker::try_reserve(r600_sb::alu_node*)': > sb/sb_sched.cpp:492:7: warning: suggest parentheses around operand of '!' > or change '&' to '&&' or '!' to '~

[Mesa-dev] [PATCH] clover: Pass image attributes to the kernel

2015-07-21 Thread Zoltan Gilian
Read-only and write-only image arguments are recognized and distinguished. Attributes of the image arguments are passed to the kernel as implicit arguments. --- src/gallium/state_trackers/clover/core/kernel.cpp | 46 ++- src/gallium/state_trackers/clover/core/kernel.hpp | 13 +- src/galliu

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

2015-07-21 Thread Anuj Phogat
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 ++--- >> 1 file changed, 10 insertions(+), 3 deletions(-) >> >> diff --git a/src/mesa/drivers/common/me

Re: [Mesa-dev] [PATCH 4/4] i965/fs: Implement pass to lower instructions of unsupported SIMD width.

2015-07-21 Thread Jason Ekstrand
A few comments below. Mostly just asking for explanation. 1-3 are Reviewed-by: Jason Ekstrand Obviously, don't merge 4/4 until it actually has users. --Jason On Thu, Jul 16, 2015 at 8:35 AM, Francisco Jerez wrote: > This lowering pass implements an algorithm to expand SIMDN > instructions in

Re: [Mesa-dev] [PATCH] r600/sb: Fix an &/&& mistake

2015-07-21 Thread Tobias Droste
Just FYI: http://lists.freedesktop.org/archives/mesa-dev/2015-June/085869.html Am Dienstag, 21. Juli 2015, 12:12:33 schrieb Adam Jackson: > gcc says: > > sb/sb_sched.cpp: In member function 'bool > r600_sb::alu_group_tracker::try_reserve(r600_sb::alu_node*)': > sb/sb_sched.cpp:492:7: war

[Mesa-dev] [PATCH] nv50: force cache flush for Uniform Buffer Objects

2015-07-21 Thread Samuel Pitoiset
This fixes the following piglit test: ext_transform_feedback-immediate-reuse-uniform-buffer Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nv50/nv50_shader_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c b/src/

Re: [Mesa-dev] [PATCH] nv50: force cache flush for Uniform Buffer Objects

2015-07-21 Thread Ilia Mirkin
How about "nv50: force cache flush when binding a new ubo" Reviewed-by: Ilia Mirkin On Tue, Jul 21, 2015 at 3:37 PM, Samuel Pitoiset wrote: > This fixes the following piglit test: > ext_transform_feedback-immediate-reuse-uniform-buffer > > Signed-off-by: Samuel Pitoiset > --- > src/gallium

[Mesa-dev] [PATCH] nvc0: force cache flush when binding a new ubo

2015-07-21 Thread Samuel Pitoiset
This fixes the following piglit test: ext_transform_feedback-immediate-reuse-uniform-buffer Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c b/

Re: [Mesa-dev] [PATCH] nvc0: force cache flush when binding a new ubo

2015-07-21 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin I'm unconvinced that this is strictly necessary, but it seems to fix the test so... wtvr. UBO's don't get rebound too often without also doing other things that would incur a similar barrier/flush. On Tue, Jul 21, 2015 at 3:59 PM, Samuel Pitoiset wrote: > This fixes the

Re: [Mesa-dev] [PATCH 01/46] drirc: drop support for Heaven 3.0, fixes tessellation in 4.0

2015-07-21 Thread Marek Olšák
FYI, I will push tessellation after Dave lands shader subroutines. Marek On Thu, Jul 16, 2015 at 10:27 PM, Marek Olšák wrote: > Thanks for the reviewing. > > The patches that are missing Rbs are: > > 23-24, 26-43, 45-46. > > The patches have been on the mailing list for one month. It looks like

Re: [Mesa-dev] ARB_copy_image support in Gallium

2015-07-21 Thread Roland Scheidegger
I just realized that there's actually another difference if you'd use the util_is_format_compatible to see whether resource_copy_region may be used: d3d style, this would exclude things like rg16 being compatible with r32 completely, swizzled or not (this is how d3d10 typeless groups work). Granted

Re: [Mesa-dev] [PATCH 12/12] i965/fs: Reimplement emit_single_fb_write() in terms of logical framebuffer writes.

2015-07-21 Thread Jason Ekstrand
On Thu, Jul 16, 2015 at 8:41 AM, Francisco Jerez wrote: > The only non-trivial thing it still has to do is figure out where to > take the src/dst depth values from and predicate the instruction if > discard is in use. The manual SIMD unrolling logic in the dual-source > case goes away because thi

[Mesa-dev] [PATCH] mesa: allow GL_TEXTURE_CUBE_MAP_ARRAY case for glCompressedTexSubImage3D()

2015-07-21 Thread Brian Paul
Since s3tc works for cube maps and 2D arrays, it should also work for cube arrays. NVIDIA's driver supports this too. This is a minor follow-on fix for the commit "mesa: fix up some texture error checks". --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[Mesa-dev] [PATCH] ABI-check: Use more portable bash invocation.

2015-07-21 Thread Vinson Lee
Fixes 'make check' on FreeBSD. Signed-off-by: Vinson Lee --- src/mapi/es1api/ABI-check | 2 +- src/mapi/es2api/ABI-check | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapi/es1api/ABI-check b/src/mapi/es1api/ABI-check index 44654cd..819568f 100755 --- a/src/mapi/es1ap

Re: [Mesa-dev] [PATCH 04/12] i965/fs: Pass a BAD_FILE header source to LOAD_PAYLOAD in emit_texture_gen7().

2015-07-21 Thread Jason Ekstrand
On Sat, Jul 18, 2015 at 7:34 AM, Francisco Jerez wrote: > So that it's left uninitialized by LOAD_PAYLOAD, we only need to > reserve space for it in the message since it will be initialized > implicitly by the generator. > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 7 --- > 1 file c

Re: [Mesa-dev] [PATCH] glx: Fix image size computation for EXT_texture_integer (v2)

2015-07-21 Thread Eric Anholt
Adam Jackson writes: > Without this this extension basically can't work in indirect contexts, > TexImage2D will compute the image size as 0 and we'll send no image data > to the server. > > v2: Add EXT_texture_integer to the client extension list too (Ian) Reviewed-by: Eric Anholt signature.a

Re: [Mesa-dev] [PATCH] mesa: allow GL_TEXTURE_CUBE_MAP_ARRAY case for glCompressedTexSubImage3D()

2015-07-21 Thread Roland Scheidegger
Could mention this is actually a gl spec bug in the commit message, but either way: Reviewed-by: Roland Scheidegger Am 21.07.2015 um 22:55 schrieb Brian Paul: > Since s3tc works for cube maps and 2D arrays, it should also work for > cube arrays. NVIDIA's driver supports this too. This is a mi

Re: [Mesa-dev] [PATCH 08/12] i965/fs: Implement lowering of logical texturing opcodes on Gen4.

2015-07-21 Thread Jason Ekstrand
I *think* this is sane. I compared it against the current SIMD16 and SIMD8 code and it looks like it does the right thing. However, it's not a direct translation and I don't know the gen4 texturing code, so I can't really call it reviewed. Acked-by: Jason Ekstrand Ken, could you give it a quic

Re: [Mesa-dev] [PATCH] glapi: fix argument parsing in glX_proto_recv.py

2015-07-21 Thread Emil Velikov
It seems that I was under the wrong impression on the hole thing. Some of the files generated from these scripts are used in/by xserver. Although they are imported/tracked into version control of the latter in order to prevent the xserver build directly diving into mesa source tree. The XORG_GLAP

Re: [Mesa-dev] [PATCH] glapi: fix argument parsing in glX_proto_recv.py

2015-07-21 Thread Dylan Baker
Cool, I was under that impression too, but having it confirmed is great. Since these do matter and I don't have push access, could you make sure this lands? On Jul 21, 2015 15:33, "Emil Velikov" wrote: > It seems that I was under the wrong impression on the hole thing. > > Some of the files gene

Re: [Mesa-dev] [PATCH v2] dri_interface: drop __NOT_HAVE_DRM_H magic

2015-07-21 Thread Ian Romanick
Reviewed-by: Ian Romanick On 07/21/2015 09:07 AM, Emil Velikov wrote: > v2: use HAVE_LIBDRM macro. > > Cc: Ian Romanick > Signed-off-by: Emil Velikov > --- > include/GL/internal/dri_interface.h | 9 + > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/include/GL/intern

Re: [Mesa-dev] [PATCH 09/12] i965/fs: Hook up SIMD lowering to handle texturing opcodes of unsupported width.

2015-07-21 Thread Jason Ekstrand
On Sat, Jul 18, 2015 at 7:34 AM, Francisco Jerez wrote: > This should match the set of cases in which we currently call fail() > or no16() from the emit_texture_*() methods and the ones in which > emit_texture_gen4() enables the SIMD16 workaround. > > Hint for reviewers: It's not a big deal if I h

Re: [Mesa-dev] [PATCH 10/12] i965/fs: Reimplement emit_texture() in terms of logical send messages.

2015-07-21 Thread Jason Ekstrand
On Sat, Jul 18, 2015 at 7:34 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 66 > +--- > 1 file changed, 49 insertions(+), 17 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp > b/src/mesa/drivers/dri/i965/brw_f

[Mesa-dev] [PATCH 2/4] radeonsi: split out interpolation input selection

2015-07-21 Thread Dave Airlie
From: Dave Airlie This is prep work for using it in the interpolation code later. Also add storage for the input interpolation mode so we can pick it up later. Signed-off-by: Dave Airlie --- src/gallium/drivers/radeonsi/si_shader.c | 62 +++- src/gallium/drivers/ra

[Mesa-dev] [PATCH 4/4] radeonsi: add support for interpolateAt functions

2015-07-21 Thread Dave Airlie
From: Dave Airlie This is part of ARB_gpu_shader5, and this passes all the piglit tests currently available. Signed-off-by: Dave Airlie --- docs/GL3.txt | 2 +- src/gallium/drivers/radeonsi/si_shader.c | 232 ++- 2 files changed, 232 in

[Mesa-dev] [PATCH 3/4] radeonsi: add fine derivate control

2015-07-21 Thread Dave Airlie
From: Dave Airlie This adds support for fine derivatives and enables ARB_derivative_control on radeonsi. (just fell out of my working out interpolation) Signed-off-by: Dave Airlie --- docs/GL3.txt | 2 +- docs/relnotes/10.7.0.html| 1 + src/galliu

[Mesa-dev] [PATCH 1/4] radeonsi: separate out load sample position

2015-07-21 Thread Dave Airlie
From: Dave Airlie This is prep work for reusing this in the interpolation code later. Signed-off-by: Dave Airlie --- src/gallium/drivers/radeonsi/si_shader.c | 44 +++- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_s

[Mesa-dev] radeonsi: interpolateAt and ARB_derivative_control support

2015-07-21 Thread Dave Airlie
These are pretty standalone so I've pulled them out from my radeonsi-dev tree and cleaned them up. They pass all the tests, and get one step closer to gpu_shader5. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.

Re: [Mesa-dev] [PATCH 12/12] i965/fs: Remove the emit_texture_gen*() fs_visitor methods.

2015-07-21 Thread Jason Ekstrand
I made a few minor nitpick comments on a couple of patches and I didn't feel like I could fully review 08/12. Other than the few nits, patches 1-7 and 9-12 are Reviewed-by: Jason Ekstrand On Sat, Jul 18, 2015 at 7:34 AM, Francisco Jerez wrote: > This is now dead code. > --- > src/mesa/drivers/

  1   2   >