Re: [Mesa-dev] [PATCH] glsl/dead_builin_varyings: Fix gl_FragData array lowering

2015-11-30 Thread Iago Toral
On Mon, 2015-11-30 at 09:56 +0200, Tapani Pälli wrote: > Hi; > > On 11/27/2015 02:14 PM, Iago Toral Quiroga wrote: > > The current implementation looks for array dereferences on gl_FragData and > > immediately then proceeds to lower them, however this is not enough because > > we can have array ac

Re: [Mesa-dev] [PATCH v2 28/42] i965/fs: Handle nir shared variable store intrinsic function

2015-11-30 Thread Jordan Justen
On 2015-11-25 03:07:42, Iago Toral wrote: > On Tue, 2015-11-17 at 21:55 -0800, Jordan Justen wrote: > > Signed-off-by: Jordan Justen > > --- > > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 54 > > > > 1 file changed, 54 insertions(+) > > > > diff --git a/src/mesa

Re: [Mesa-dev] [PATCH] clover: Check the return value of pipe_loader_probe() when probing for devices

2015-11-30 Thread Hans de Goede
Hi, On 29-11-15 17:14, Samuel Pitoiset wrote: This patch fixes the issue for me (eg. https://bugs.freedesktop.org/show_bug.cgi?id=93091#c8). Thanks Tom. Tested-by: Samuel Pitoiset I'm seeing a similar crash, but for me the problem is caused by pipe_loader_sw_probe returning 1, but not fill

[Mesa-dev] [PATCH] i965/fs: remove unused fs_reg offset

2015-11-30 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 640e047..68f2548 100644 --- a/src/mesa/drivers/dri/i965/b

Re: [Mesa-dev] [PATCH] glsl/dead_builin_varyings: Fix gl_FragData array lowering

2015-11-30 Thread Tapani Pälli
On 11/30/2015 10:14 AM, Iago Toral wrote: On Mon, 2015-11-30 at 09:56 +0200, Tapani Pälli wrote: Hi; On 11/27/2015 02:14 PM, Iago Toral Quiroga wrote: The current implementation looks for array dereferences on gl_FragData and immediately then proceeds to lower them, however this is not enoug

Re: [Mesa-dev] [PATCH v2 29/42] i965: Enable shared local memory for CS shared variables

2015-11-30 Thread Jordan Justen
On 2015-11-25 03:24:38, Iago Toral wrote: > On Tue, 2015-11-17 at 21:55 -0800, Jordan Justen wrote: > > Signed-off-by: Jordan Justen > > --- > > src/mesa/drivers/dri/i965/brw_cs.c| 2 ++ > > src/mesa/drivers/dri/i965/brw_defines.h | 2 ++ > > src/mesa/drivers/dri/i965/gen7_cs_state.c

Re: [Mesa-dev] [PATCH v2 29/42] i965: Enable shared local memory for CS shared variables

2015-11-30 Thread Iago Toral
On Mon, 2015-11-30 at 00:43 -0800, Jordan Justen wrote: > On 2015-11-25 03:24:38, Iago Toral wrote: > > On Tue, 2015-11-17 at 21:55 -0800, Jordan Justen wrote: > > > Signed-off-by: Jordan Justen > > > --- > > > src/mesa/drivers/dri/i965/brw_cs.c| 2 ++ > > > src/mesa/drivers/dri/i965/brw

Re: [Mesa-dev] [PATCH 01/53] r600/shader: split address get out to a function.

2015-11-30 Thread Oded Gabbay
On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie wrote: > > From: Dave Airlie > > This will be used in the tess shaders. > > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r600/r600_shader.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/r

Re: [Mesa-dev] [PATCH] i965/fs: remove unused fs_reg offset

2015-11-30 Thread Abdiel Janulgue
On 11/30/2015 10:31 AM, Samuel Iglesias Gonsálvez wrote: > Signed-off-by: Samuel Iglesias Gonsálvez > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp > b/src/mesa/drivers/dri/i965/brw_fs_vi

Re: [Mesa-dev] [PATCH] clover: Check the return value of pipe_loader_probe() when probing for devices

2015-11-30 Thread Samuel Pitoiset
Hi Hans, I think your mesa is not up-to-date. Emil pushed a fix for that one http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6235171882d18d0b4d11a3d564c6aa3b22af9d1 Maybe this will help for your issue, but surprisingly, it doesn't fix mine. On 11/30/2015 09:29 AM, Hans de Goede wrote: Hi,

Re: [Mesa-dev] [PATCH 1/2] st/va: ensure linear memory for dmabuf

2015-11-30 Thread Julien Isorce
On 29 November 2015 at 17:26, Emil Velikov wrote: > On 27 November 2015 at 08:57, Julien Isorce wrote: > > In order to do zero-copy between two different devices > > the memory should not be tiled. > > > > This is currently no way to set pipe_resource template's flag > > from pipe_video_buffer t

Re: [Mesa-dev] [PATCH 1/2] st/va: ensure linear memory for dmabuf

2015-11-30 Thread Julien Isorce
Hi Christian, I can try to move the bind flags to pipe_video_buffer. Thx Julien On 29 November 2015 at 19:04, Christian König wrote: > On 29.11.2015 18:26, Emil Velikov wrote: > >> On 27 November 2015 at 08:57, Julien Isorce wrote: >> >>> In order to do zero-copy between two different devices

Re: [Mesa-dev] [PATCH 03/53] r600: make adjust_gprs use hw stages.

2015-11-30 Thread Oded Gabbay
On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie wrote: > From: Dave Airlie > > This changes the r600 specific GPR adjustment code > to use the stage defines, and arrays. > > This is prep work for the tess changes later. > > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r600/r600_pipe.h |

Re: [Mesa-dev] [PATCH 02/53] r600: introduce HW shader stage defines

2015-11-30 Thread Oded Gabbay
On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie wrote: > From: Dave Airlie > > Add a list of defines for the HW stages. > > We will use this for GPR calculations amongst other things. > > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r600/r600_pipe.h | 11 +++ > 1 file changed, 11

Re: [Mesa-dev] [PATCH v3] st/va: delay decoder creation until max_references is known

2015-11-30 Thread Christian König
On 26.11.2015 09:45, Julien Isorce wrote: In general max_references cannot be based on num_render_targets. This patch allows to allocate buffers with an accurate size. I.e. no more than necessary. For other codecs it is a fixed value 2. This is similar behaviour as vaapi/vdpau-driver. For now

Re: [Mesa-dev] [RFC] r600g: evergreen/cayman tessellation support

2015-11-30 Thread Marek Olšák
On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: > Hi, > > Patchbomb time, this set of patches is a first pass at add adding > ARB_tessellation_shader support to the r600g driver. Only Evergreen > and newer GPUs support tessellation. On any of the GPUs that support > native FP64, this will enab

[Mesa-dev] Mesa 11.1.0 release candidate 2

2015-11-30 Thread Emil Velikov
The second release candidate for Mesa 11.1.0 is now available. Boyuan Zhang (1): radeon/uvd: uv pitch separation for stoney Dave Airlie (1): texgetimage: consolidate 1D array handling code. Emil Velikov (12): pipe-loader: link against libloader regardless of libdrm presence

Re: [Mesa-dev] [PATCH 1/2] st/va: ensure linear memory for dmabuf

2015-11-30 Thread Emil Velikov
On 30 November 2015 at 09:23, Julien Isorce wrote: > On 29 November 2015 at 17:26, Emil Velikov wrote: >> On 27 November 2015 at 08:57, Julien Isorce wrote: >> > In order to do zero-copy between two different devices >> > the memory should not be tiled. >> > >> > This is currently no way to set

Re: [Mesa-dev] [PATCH v2 2/6] glapi: add GL_OES_geometry_shader extension

2015-11-30 Thread Lofstedt, Marta
> -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On > Behalf Of Emil Velikov > Sent: Friday, November 27, 2015 7:23 PM > To: Marta Lofstedt > Cc: ML mesa-dev > Subject: Re: [Mesa-dev] [PATCH v2 2/6] glapi: add > GL_OES_geometry_shader extension > > He

Re: [Mesa-dev] [RFC] r600g: evergreen/cayman tessellation support

2015-11-30 Thread Felix Schwarz
Am 30.11.2015 um 10:51 schrieb Marek Olšák: >> Currently tested hw: >> working: CAYMAN, REDWOOD, BARTS, TURKS >> hangs on any tessellation: CAYMAN >> hangs differently at least with heaven: SUMO > > You listed CAYMAN twice, so does it hang or not? Based on the comments from patch 53 I'm guessing

[Mesa-dev] [Bug 91888] EGL Wayland software rendering no longer work after regression

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91888 --- Comment #11 from Daniel Stone --- strictly:~/src/misc/SDL/test% LIBGL_ALWAYS_SOFTWARE=1 ./testgl2 INFO: Screen BPP: 0 INFO: Swap Interval : 0 INFO: Window Size : 640,480 INFO: Draw Size : 640,480 INFO: INFO: Vendor: VMware,

[Mesa-dev] [Bug 91888] EGL Wayland software rendering no longer work after regression

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91888 --- Comment #12 from Daniel Stone --- (Testing with an ES2-only build of SDL still worked as well, in the sense that both accelerated and software-only gave me a black window and consumed a lot of resources whilst failing to render anything. But

Re: [Mesa-dev] [PATCH 16/53] r600: add shader key entries for tcs and tes.

2015-11-30 Thread Marek Olšák
On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: > From: Dave Airlie > > with tessellation vs can now run on ls, and tes can > run on vs or es, tcs runs on hs. > > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r600/r600_hw_context.c | 4 > src/gallium/drivers/r600/r600_pipe.

[Mesa-dev] [PATCH v4 1/1] i965: Do not overwrite optimizer dumps

2015-11-30 Thread Juan A. Suarez Romero
When using INTEL_DEBUG=optimizer, each optimizing step is dump to disk, in a separate file. But as fs_visitor::optimize() and vec4_visitor::run() are called more than once, it ends up overwriting the files already on disk, loosing then previous optimizer steps. To avoid this, add a new static var

Re: [Mesa-dev] [PATCH v3] st/va: delay decoder creation until max_references is known

2015-11-30 Thread Emil Velikov
On 26 November 2015 at 08:45, Julien Isorce wrote: > --- a/src/gallium/state_trackers/va/picture.c > +++ b/src/gallium/state_trackers/va/picture.c > @@ -113,12 +118,37 @@ handlePictureParameterBuffer(vlVaDriver *drv, > vlVaContext *context, vlVaBuffer * > default: >break; > } >

Re: [Mesa-dev] [PATCH 11/53] r600/sb: add support for GDS to the sb decoder/dump.

2015-11-30 Thread Glenn Kennard
On Mon, 30 Nov 2015 07:20:20 +0100, Dave Airlie wrote: From: Dave Airlie This just adds support to the decoder, not actual SB support. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/sb/sb_bc.h | 6 ++-- src/gallium/drivers/r600/sb/sb_bc_decoder.cpp | 43

Re: [Mesa-dev] [PATCH 04/53] r600: move to using hw stages array for hw stage atoms

2015-11-30 Thread Oded Gabbay
On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie wrote: > From: Dave Airlie > > This moves to using an array of hw stages for the atoms. > > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r600/evergreen_state.c | 8 +++- > src/gallium/drivers/r600/r600_hw_context.c | 8 >

Re: [Mesa-dev] [PATCH 05/53] r600: use a macro to remove common shader selection code.

2015-11-30 Thread Oded Gabbay
On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie wrote: > From: Dave Airlie > > This function is going to get a lot messier with tessellation > so I'm going to use some macros to try and clean some bits > of common code up. > > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r600/r600_state_

Re: [Mesa-dev] [PATCH 20/53] r600/sb: add LS/HS hw shader types.

2015-11-30 Thread Glenn Kennard
On Mon, 30 Nov 2015 07:20:29 +0100, Dave Airlie wrote: From: Dave Airlie This just adds printing for the hw shader types, and hooks it up. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/sb/sb_bc.h | 2 ++ src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 6 -- src/galliu

Re: [Mesa-dev] [PATCH 3/6] glsl: add always_active_io attribute to ir_variable

2015-11-30 Thread Tapani Pälli
Reviewed-by: Tapani Pälli (some typos and tiny code nit noted below) On 11/25/2015 11:54 AM, Timothy Arceri wrote: From: Gregory Hainaut The value will be set in separate-shader program when an input/output must remains active. e.g. when deadcode removal isn't allowed because it will create

Re: [Mesa-dev] [PATCH 2/6] glsl: copy how_declared when lowering interface blocks

2015-11-30 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 11/25/2015 11:54 AM, Timothy Arceri wrote: Cc: Gregory Hainaut --- src/glsl/lower_named_interface_blocks.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/lower_named_interface_blocks.cpp b/src/glsl/lower_named_interface_blocks.cpp index 114bb58.

Re: [Mesa-dev] [PATCH 4/6] glsl: don't dead code remove SSO varyings marked as active

2015-11-30 Thread Tapani Pälli
On 11/25/2015 11:54 AM, Timothy Arceri wrote: From: Gregory Hainaut GL_ARB_separate_shader_objects allow matching by name variable or block interface. Input varyings can't be removed because it is will impact the location assignment. This fixes the bug 79783 and likely any application that us

Re: [Mesa-dev] [PATCH 30/53] r600: create LDS info constants buffer and write LDS registers.

2015-11-30 Thread Marek Olšák
On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: > From: Dave Airlie > > This creates a constant buffer with the information about > the layout of the LDS memory that is given to the vertex, tess > control and tess evaluation shaders. > > This also programs the LDS size and the LS_HS_CONFIG re

Re: [Mesa-dev] [PATCH 5/6] glsl: don't sort varying in separate shader mode

2015-11-30 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 11/25/2015 11:54 AM, Timothy Arceri wrote: From: Gregory Hainaut This fixes an issue where the addition of the FLAT qualifier in varying_matches::record() can break the expected varying order. It also avoids a future issue with the relaxing of interpolation quali

Re: [Mesa-dev] [PATCH 06/53] r600: move selecting shaders into earlier code.

2015-11-30 Thread Oded Gabbay
On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie wrote: > From: Dave Airlie > > select the ps/gs/vs in that order then process the results. Is there a chance the statements executed inside the "if (rctx->gs_shader) {" may affect the result of r600_shader_select (and hence SELECT_SHADER_OR_FAIL) ? If

[Mesa-dev] [Bug 91888] EGL Wayland software rendering no longer work after regression

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91888 --- Comment #13 from nerdopol...@verizon.net --- I compiled SDL master (well default, since it's an HG repo) ./autogen.sh ./configure --prefix=$INSTALLDIR --libdir=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) I also ran it under W

Re: [Mesa-dev] [PATCH 1/6] glsl: optimise inputs/outputs with explicit locations

2015-11-30 Thread Tapani Pälli
Reviewed-by: Tapani Pälli Some tiny nitpicking below; On 11/25/2015 11:54 AM, Timothy Arceri wrote: This change allows used defined inputs/outputs with explicit locations to be removed if they are detected to not be used between shaders at link time. To enable this we change the is_unmatched_

Re: [Mesa-dev] [PATCH v2 2/6] glapi: add GL_OES_geometry_shader extension

2015-11-30 Thread Emil Velikov
On 30 November 2015 at 10:53, Lofstedt, Marta wrote: > > No, I haven't looked to closely at them either. Do you think I should wait > with this util Erics stuff has landed? > From a quick look he seems to be covering different area (despite that things may be extended to cover this as well). So

Re: [Mesa-dev] [PATCH v2 1/6] gles2: Update gl2ext.h to revision: 32120

2015-11-30 Thread Ilia Mirkin
On Fri, Nov 27, 2015 at 1:37 PM, Ilia Mirkin wrote: > On Fri, Nov 27, 2015 at 1:35 PM, Emil Velikov > wrote: >> On 27 November 2015 at 17:50, Ilia Mirkin wrote: >>> On Fri, Nov 27, 2015 at 9:31 AM, Marta Lofstedt >>> wrote: From: Marta Lofstedt This is needed to be able to impl

Re: [Mesa-dev] [PATCH v2 1/6] gles2: Update gl2ext.h to revision: 32120

2015-11-30 Thread Lofstedt, Marta
> -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On > Behalf Of Ilia Mirkin > Sent: Monday, November 30, 2015 2:55 PM > To: Emil Velikov > Cc: mesa-dev@lists.freedesktop.org > Subject: Re: [Mesa-dev] [PATCH v2 1/6] gles2: Update gl2ext.h to revision: > 3

Re: [Mesa-dev] Mesa 11.1.0 release candidate 2

2015-11-30 Thread Tom Stellard
On Mon, Nov 30, 2015 at 09:58:28AM +, Emil Velikov wrote: > The second release candidate for Mesa 11.1.0 is now available. > Hi Emil, Can we make sure not to do the 11.1.0 release until we have a fix for the pipe loader bug in clover? clover is completely broken in -rc2 -Tom > > Boyuan Z

[Mesa-dev] [Bug 91888] EGL Wayland software rendering no longer work after regression

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91888 --- Comment #14 from Daniel Stone --- Ugh, so I think I'm using the same options, and I can't see what's going wrong with either big GL or GLES. To be honest, I'm at a total loss ... can you break on _mesa_error when running SDL to see where it's

Re: [Mesa-dev] [PATCH 1/8] egl/dri2: Unify the style of function pointer calls in structs

2015-11-30 Thread Alex Deucher
On Wed, Nov 25, 2015 at 12:27 AM, Boyan Ding wrote: > Signed-off-by: Boyan Ding I don't have a strong opinion on the style. Patches are: Acked-by: Alex Deucher > --- > src/egl/drivers/dri2/egl_dri2.c | 10 -- > src/egl/drivers/dri2/platform_android.c | 8 > src/egl/

[Mesa-dev] [PATCH] clover: Handle NULL pipe_loader_device returned by pipe_loader_probe()

2015-11-30 Thread Tom Stellard
pipe_loader_probe() may initalize an entry in the device list to NULL, while still counting this device in the number of devices that it returns, so we need to handle this situation. --- This is the most simple fix possible to get clover working again. We can discuss fixing the other issues in cl

Re: [Mesa-dev] [PATCH 2/2] i965: run brw_vec4 optimizations in loop

2015-11-30 Thread Matt Turner
On Thu, Nov 26, 2015 at 7:57 AM, Juan A. Suarez Romero wrote: > On Wed, 2015-11-25 at 16:16 -0800, Matt Turner wrote: >> In the piglit test you cited, opt_vector_float() does this to the >> relevant code: >> >> cmp.nz.f0.0 null:F, vgrf6.xyzz:F, vgrf14.xyzz:F >> -mov vgrf2.0.x:D, 0D >> (+f0.0.any

Re: [Mesa-dev] [PATCH] clover: Handle NULL pipe_loader_device returned by pipe_loader_probe()

2015-11-30 Thread Francisco Jerez
Tom Stellard writes: > pipe_loader_probe() may initalize an entry in the device list to NULL, > while still counting this device in the number of devices that it > returns, so we need to handle this situation. If this is related to the patch you sent last Saturday (1448679128-20276-1-git-send-em

Re: [Mesa-dev] [PATCH] clover: Handle NULL pipe_loader_device returned by pipe_loader_probe()

2015-11-30 Thread Tom Stellard
On Mon, Nov 30, 2015 at 07:57:32PM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > pipe_loader_probe() may initalize an entry in the device list to NULL, > > while still counting this device in the number of devices that it > > returns, so we need to handle this situation. > > If this

[Mesa-dev] [PATCH] clover: Check the return value of pipe_loader_probe() when probing for devices v2

2015-11-30 Thread Tom Stellard
When probing for devices, clover will call pipe_loader_probe() twice. The first time to retrieve the number of devices, and then second time to retrieve the device structures. We currently assume that the return value of both calls will be the same, but this will not be the case if a device happen

Re: [Mesa-dev] [PATCH v2] mesa: remove ARB_geometry_shader4

2015-11-30 Thread Ian Romanick
On 11/29/2015 03:20 PM, Kenneth Graunke wrote: > On Sunday, November 29, 2015 02:17:06 PM Ian Romanick wrote: >> On 11/25/2015 03:16 AM, Marta Lofstedt wrote: >>> From: Marta Lofstedt >>> >>> No drivers currently implement ARB_geometry_shader4, nor are there >>> any plans to implement it. We only

Re: [Mesa-dev] [PATCH v2] mesa: remove ARB_geometry_shader4

2015-11-30 Thread Ian Romanick
Also... this patch is Reviewed-by: Ian Romanick On 11/30/2015 11:21 AM, Ian Romanick wrote: > On 11/29/2015 03:20 PM, Kenneth Graunke wrote: >> On Sunday, November 29, 2015 02:17:06 PM Ian Romanick wrote: >>> On 11/25/2015 03:16 AM, Marta Lofstedt wrote: From: Marta Lofstedt No d

Re: [Mesa-dev] [PATCH v2 1/6] gles2: Update gl2ext.h to revision: 32120

2015-11-30 Thread Ian Romanick
On 11/30/2015 05:54 AM, Ilia Mirkin wrote: > On Fri, Nov 27, 2015 at 1:37 PM, Ilia Mirkin wrote: >> On Fri, Nov 27, 2015 at 1:35 PM, Emil Velikov >> wrote: >>> On 27 November 2015 at 17:50, Ilia Mirkin wrote: On Fri, Nov 27, 2015 at 9:31 AM, Marta Lofstedt wrote: > From: Marta Lo

Re: [Mesa-dev] [PATCH v2 2/6] glapi: add GL_OES_geometry_shader extension

2015-11-30 Thread Ian Romanick
On 11/27/2015 09:58 AM, Ilia Mirkin wrote: > On Fri, Nov 27, 2015 at 9:31 AM, Marta Lofstedt > wrote: >> From: Marta Lofstedt >> >> Add xml definitions for the GL_OES_geometry_shader extension >> and expose the extension for OpenGL ES 3.1. >> >> Signed-off-by: Marta Lofstedt >> --- >> src/mapi/

Re: [Mesa-dev] [PATCH v2 3/6] glsl: add support for GL_OES_geometry_shader

2015-11-30 Thread Ian Romanick
On 11/27/2015 06:31 AM, Marta Lofstedt wrote: > From: Marta Lofstedt > > This adds glsl support of GL_OES_geometry_shader for > OpenGL ES 3.1. > > Signed-off-by: Marta Lofstedt > --- > src/glsl/builtin_variables.cpp | 17 + > src/glsl/glsl_parser.yy | 4 ++-- > src/gl

Re: [Mesa-dev] [PATCH 1/3] radeon: whitespace cleanup

2015-11-30 Thread Ian Romanick
Patch 1 and patch 2 are Reviewed-by: Ian Romanick On 11/28/2015 07:43 AM, Giuseppe Bilotta wrote: > Signed-off-by: Giuseppe Bilotta > --- > src/mesa/drivers/dri/radeon/radeon_swtcl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/radeon/radeo

Re: [Mesa-dev] [PATCH 0/3] misc janitorial

2015-11-30 Thread Ian Romanick
On 11/29/2015 07:21 AM, Emil Velikov wrote: > Hi Giuseppe, > > On 28 November 2015 at 15:43, Giuseppe Bilotta > wrote: >> The second and third patches are mostly aimed at removing non-spurious >> compiler warnings. The first one is just minor whitespace cleanup in the >> general area of code touc

Re: [Mesa-dev] [PATCH] mesa: support GL_RED/GL_RG in ES2 contexts when driver support exists

2015-11-30 Thread nanleychery
On Sat, Nov 28, 2015 at 05:17:22PM -0500, Ilia Mirkin wrote: > On Sat, Nov 28, 2015 at 1:14 PM, Eduardo Lima Mitev wrote: > > Patch is: > > > > Reviewed-by: Eduardo Lima Mitev > > Thanks! I realized that this should also return invalid for GLES 1... > I'm adding ctx->API == API_OPENGLES and push

Re: [Mesa-dev] [PATCH 0/3] misc janitorial

2015-11-30 Thread Emil Velikov
On 30 November 2015 at 20:00, Ian Romanick wrote: > On 11/29/2015 07:21 AM, Emil Velikov wrote: >> Hi Giuseppe, >> >> On 28 November 2015 at 15:43, Giuseppe Bilotta >> wrote: >>> The second and third patches are mostly aimed at removing non-spurious >>> compiler warnings. The first one is just mi

[Mesa-dev] [PATCH 2/2] i965: Do dead-code elimination in a single pass.

2015-11-30 Thread Matt Turner
The first pass marked dead instructions as opcode = NOP, and a second pass deleted those instructions so that the live ranges used in the first pass wouldn't change. But since we're walking the instructions in reverse order, we can just do everything in one pass. The only thing we have to do is wa

[Mesa-dev] [PATCH 1/2] glsl: Rename safe_reverse -> reverse_safe.

2015-11-30 Thread Matt Turner
To match existing foreach_in_list_reverse_safe. --- src/glsl/list.h| 2 +- src/glsl/nir/nir.c | 8 src/glsl/nir/nir.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/glsl/list.h b/src/glsl/list.h index 15fcd4a..a1c4d82 100644 --- a/src/glsl/list.h +++ b/sr

Re: [Mesa-dev] [PATCH 0/3] misc janitorial

2015-11-30 Thread Dave Airlie
On 1 December 2015 at 07:18, Emil Velikov wrote: > On 30 November 2015 at 20:00, Ian Romanick wrote: >> On 11/29/2015 07:21 AM, Emil Velikov wrote: >>> Hi Giuseppe, >>> >>> On 28 November 2015 at 15:43, Giuseppe Bilotta >>> wrote: The second and third patches are mostly aimed at removing no

Re: [Mesa-dev] [RFC] r600g: evergreen/cayman tessellation support

2015-11-30 Thread Dave Airlie
On 30 November 2015 at 19:51, Marek Olšák wrote: > On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: >> Hi, >> >> Patchbomb time, this set of patches is a first pass at add adding >> ARB_tessellation_shader support to the r600g driver. Only Evergreen >> and newer GPUs support tessellation. On a

Re: [Mesa-dev] [PATCH v3] st/va: delay decoder creation until max_references is known

2015-11-30 Thread Julien Isorce
On 30 November 2015 at 12:03, Emil Velikov wrote: > On 26 November 2015 at 08:45, Julien Isorce > wrote: > > > --- a/src/gallium/state_trackers/va/picture.c > > +++ b/src/gallium/state_trackers/va/picture.c > > > @@ -113,12 +118,37 @@ handlePictureParameterBuffer(vlVaDriver *drv, > vlVaContext *

Re: [Mesa-dev] [RFC] r600g: evergreen/cayman tessellation support

2015-11-30 Thread Alex Deucher
On Mon, Nov 30, 2015 at 5:06 PM, Dave Airlie wrote: > On 30 November 2015 at 19:51, Marek Olšák wrote: >> On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: >>> Hi, >>> >>> Patchbomb time, this set of patches is a first pass at add adding >>> ARB_tessellation_shader support to the r600g driver.

Re: [Mesa-dev] [PATCH 12/12] mesa: Drop the blacklisting of new GL enums.

2015-11-30 Thread Eric Anholt
Ilia Mirkin writes: > On Wed, Nov 25, 2015 at 10:10 PM, Eric Anholt wrote: >> index bff425a..4c89849 100644 >> --- a/src/mesa/main/tests/enum_strings.cpp >> +++ b/src/mesa/main/tests/enum_strings.cpp >> @@ -71,7 +71,7 @@ const struct enum_info everything[] = { >> * see go farther. Disabled

[Mesa-dev] [Bug 93053] GL_PROGRAM_BINARY_LENGTH always reports 0

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93053 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 92757] GL_ARB_sync objects are not properly synchronized across threads

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92757 Ian Romanick changed: What|Removed |Added CC||i...@freedesktop.org, |

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Ian Romanick changed: What|Removed |Added Depends on||92557 -- You are receiving this mail bec

[Mesa-dev] [Bug 92124] shader_query.cpp:841:34: error: ‘strndup’ was not declared in this scope

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92124 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 89773] "builtin_functions.cpp", line 3218: Error: INFINITY is not defined.

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89773 Ian Romanick changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #1 from Ian Romanick

[Mesa-dev] [Bug 89773] "builtin_functions.cpp", line 3218: Error: INFINITY is not defined.

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89773 Ian Romanick changed: What|Removed |Added CC||alan.coopersm...@oracle.com --- Comment #

[Mesa-dev] [PATCH 2/6] glsl: Implement any(v) as any_nequal(v, false).

2015-11-30 Thread Matt Turner
--- src/glsl/builtin_functions.cpp | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 88f9a71..2f21ffc 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -538,6 +

[Mesa-dev] [PATCH 1/6] glsl: Switch opcode and avail parameters to binop().

2015-11-30 Thread Matt Turner
To make it match unop(). --- src/glsl/builtin_functions.cpp | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index c5489b7..88f9a71 100644 --- a/src/glsl/builtin_functions.cpp +

[Mesa-dev] [PATCH 6/6] i965/vec4: Optimize predicate handling for any/all.

2015-11-30 Thread Matt Turner
For a select whose condition is any(v), instead of emitting cmp.nz.f0(8)null<1>Dg1<0,4,1>D 0D mov(8) g7<1>.xUD 0xUD (+f0.any4h) mov(8) g7<1>.xUD0xUD cmp.nz.f0(8)null<1>Dg7<4,4,1>.xD0D (+f0) sel(8)g8<1>UD

[Mesa-dev] [PATCH 5/6] nir: Delete bany, ball, fany, fall.

2015-11-30 Thread Matt Turner
As in the previous patches, these can be implemented as any(v) -> any_nequal(v, false) all(v) -> all_equal(v, true) and their removal simplifies the code in the next patch. --- src/gallium/auxiliary/nir/tgsi_to_nir.c| 4 +++- src/glsl/nir/nir_lower_alu_to_scalar.c

[Mesa-dev] [PATCH 4/6] glsl: Implement all(v) as all_equal(v, true).

2015-11-30 Thread Matt Turner
--- src/glsl/builtin_functions.cpp | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 2f21ffc..fb8ddee 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -4380,

[Mesa-dev] [PATCH 3/6] glsl: Remove ir_unop_any.

2015-11-30 Thread Matt Turner
The GLSL IR to TGSI/Mesa IR paths for any_nequal have the same optimizations the ir_unop_any paths had. --- src/glsl/ir.cpp| 5 -- src/glsl/ir.h | 2 - src/glsl/ir_constant_expression.cpp| 8 --- src/glsl/i

Re: [Mesa-dev] [PATCH 2/6] glsl: Implement any(v) as any_nequal(v, false).

2015-11-30 Thread Ilia Mirkin
On Mon, Nov 30, 2015 at 6:32 PM, Matt Turner wrote: > --- > src/glsl/builtin_functions.cpp | 15 ++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp > index 88f9a71..2f21ffc 100644 > --- a/src/glsl/buil

[Mesa-dev] [Bug 83382] /usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83382 Ian Romanick changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #4 from Ian Romanick

[Mesa-dev] [Bug 93089] mesa fails to check for gcc atomic primitives before using them

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93089 Ian Romanick changed: What|Removed |Added CC||matts...@gmail.com --- Comment #1 from Ia

Re: [Mesa-dev] [PATCH 2/6] glsl: Implement any(v) as any_nequal(v, false).

2015-11-30 Thread Matt Turner
On Mon, Nov 30, 2015 at 3:34 PM, Ilia Mirkin wrote: > On Mon, Nov 30, 2015 at 6:32 PM, Matt Turner wrote: >> --- >> src/glsl/builtin_functions.cpp | 15 ++- >> 1 file changed, 14 insertions(+), 1 deletion(-) >> >> diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functio

Re: [Mesa-dev] [PATCH 30/53] r600: create LDS info constants buffer and write LDS registers.

2015-11-30 Thread Marek Olšák
On Mon, Nov 30, 2015 at 1:30 PM, Marek Olšák wrote: > On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This creates a constant buffer with the information about >> the layout of the LDS memory that is given to the vertex, tess >> control and tess evaluation shaders.

[Mesa-dev] [Bug 6954] Compile fails on Solaris 10 x86

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=6954 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Mesa-dev] [Bug 6938] build errors of Mesa (CVS version) with Function Name Mangling on Solaris

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=6938 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: [Mesa-dev] [PATCH 16/53] r600: add shader key entries for tcs and tes.

2015-11-30 Thread Dave Airlie
On 30 November 2015 at 21:20, Marek Olšák wrote: > On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> with tessellation vs can now run on ls, and tes can >> run on vs or es, tcs runs on hs. >> >> Signed-off-by: Dave Airlie >> --- >> src/gallium/drivers/r600/r600_hw_

[Mesa-dev] [Bug 6936] Undefined symbols in 6.4.2 if using -DUSE_MGL_NAMESPACE in sunos5-gcc on Solaris

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=6936 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Mesa-dev] [Bug 3485] unable to compile mesa on solaris 10/amd64

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=3485 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Mesa-dev] [Bug 19303] Mesa 6.2.1 implementation error: Trying to enable unknown extension: GL_ATI_fragment_shader

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=19303 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 2/6] glsl: Implement any(v) as any_nequal(v, false).

2015-11-30 Thread Ilia Mirkin
On Mon, Nov 30, 2015 at 6:38 PM, Matt Turner wrote: > On Mon, Nov 30, 2015 at 3:34 PM, Ilia Mirkin wrote: >> On Mon, Nov 30, 2015 at 6:32 PM, Matt Turner wrote: >>> --- >>> src/glsl/builtin_functions.cpp | 15 ++- >>> 1 file changed, 14 insertions(+), 1 deletion(-) >>> >>> diff --gi

[Mesa-dev] [Bug 27841] Implement GL_EXT_discard_framebuffer

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27841 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 30490] mesa requires g++ to build but configure does not check for it

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30490 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 34947] Gentoo QA warning: media-libs/mesa-7.9.1: shaderobj.h:111: warning: implicit declaration of function ‘ASSERT’

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=34947 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Mesa-dev] [Bug 39821] HEAD won't compile without X11 headers

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39821 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 89773] "builtin_functions.cpp", line 3218: Error: INFINITY is not defined.

2015-11-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89773 --- Comment #3 from Alan Coopersmith --- Sorry, I don't have enough context here, but on Solaris, INFINITY is defined via math.h headers, but wrapped in: #if defined(_STDC_C99) || _XOPEN_SOURCE - 0 >= 600 || defined(__C99FEATURES__) but as C++

Re: [Mesa-dev] [PATCH 0/3] misc janitorial

2015-11-30 Thread Ian Romanick
On 11/30/2015 02:06 PM, Dave Airlie wrote: > On 1 December 2015 at 07:18, Emil Velikov wrote: >> On 30 November 2015 at 20:00, Ian Romanick wrote: >>> On 11/29/2015 07:21 AM, Emil Velikov wrote: Hi Giuseppe, On 28 November 2015 at 15:43, Giuseppe Bilotta wrote: > The seco

[Mesa-dev] [PATCH] glsl: always re-validate program pipeline

2015-11-30 Thread Timothy Arceri
Just because the validation passed the last time is was called doesn't automatically mean it will pass again the next time its called. Cc: "11.1" https://bugs.freedesktop.org/show_bug.cgi?id=93180 --- src/mesa/main/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src

Re: [Mesa-dev] [PATCH 2/6] glsl: Implement any(v) as any_nequal(v, false).

2015-11-30 Thread Matt Turner
On Mon, Nov 30, 2015 at 3:51 PM, Ilia Mirkin wrote: > On Mon, Nov 30, 2015 at 6:38 PM, Matt Turner wrote: >> On Mon, Nov 30, 2015 at 3:34 PM, Ilia Mirkin wrote: >>> On Mon, Nov 30, 2015 at 6:32 PM, Matt Turner wrote: --- src/glsl/builtin_functions.cpp | 15 ++- 1 fil

Re: [Mesa-dev] [PATCH 16/53] r600: add shader key entries for tcs and tes.

2015-11-30 Thread Marek Olšák
On Tue, Dec 1, 2015 at 12:45 AM, Dave Airlie wrote: > On 30 November 2015 at 21:20, Marek Olšák wrote: >> On Mon, Nov 30, 2015 at 7:20 AM, Dave Airlie wrote: >>> From: Dave Airlie >>> >>> with tessellation vs can now run on ls, and tes can >>> run on vs or es, tcs runs on hs. >>> >>> Signed-off

Re: [Mesa-dev] [PATCH 2/6] glsl: Implement any(v) as any_nequal(v, false).

2015-11-30 Thread Ilia Mirkin
On Mon, Nov 30, 2015 at 7:15 PM, Matt Turner wrote: > On Mon, Nov 30, 2015 at 3:51 PM, Ilia Mirkin wrote: >> On Mon, Nov 30, 2015 at 6:38 PM, Matt Turner wrote: >>> On Mon, Nov 30, 2015 at 3:34 PM, Ilia Mirkin wrote: On Mon, Nov 30, 2015 at 6:32 PM, Matt Turner wrote: > --- > src

[Mesa-dev] [PATCH] i965: Increase BRW_MAX_UBO to 15.

2015-11-30 Thread Kenneth Graunke
I believe that DirectX offers 16 UBOs, with one reserved for special purposes. This means that the practical lower bound is 15, even if OpenGL only mandates 12. Without this, Shadow of Mordor shaders fail to work because of limit checking around GL_MAX_UNIFORM_BUFFER_BINDINGS. Signed-off-by: Ken

Re: [Mesa-dev] [PATCH 06/12] mesa: Drop apparently typoed GL_ALL_CLIENT_ATTRIB_BITS.

2015-11-30 Thread Ian Romanick
On 11/25/2015 07:10 PM, Eric Anholt wrote: > GL_ALL_ATTRIB_BITS is a thing, and GL_CLIENT_ALL_ATTRIB_BITS, but I don't > see GL_ALL_CLIENT_ATTRIB_BITS in my grepping of khronos XML, GL extension > specs, GL 1.1, GL 2.2, and GL 4.4. Hm... it is in include/GL/gl.h. git-blame says: commit a8b07a539

  1   2   >