Re: [Mesa-dev] [RFC] More ARB_arrays_of_arrays support

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 20:06 -0400, Ilia Mirkin wrote: > Patches 1, 2, 3, 4, 8, and 11 are Reviewed-by: Ilia Mirkin > > > The rest I sent comments on, although even if you address my feedback, > I'm not sufficiently familiar to r-b at least some of them. Thanks for the reviews. > > If you do de

[Mesa-dev] [Bug 89705] lp_bld_debug.cpp:280:54: error: no matching function for call to ‘llvm?=::TargetMachine::getSubtargetImpl()=?UTF-8?Q?’

2015-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89705 Vinson Lee changed: What|Removed |Added Keywords||bisected --- Comment #2 from Vinson Lee --

[Mesa-dev] [PATCH 3/4] gallium: implement get_device_vendor() for existing drivers

2015-03-21 Thread Giuseppe Bilotta
The only hackish ones are llvmpipe and softpipe, which currently return the same string as for get_vendor(), while ideally they should return the CPU vendor. Signed-off-by: Giuseppe Bilotta Reviewed-by: Tom Stellard --- src/gallium/drivers/freedreno/freedreno_screen.c | 8 src/gallium

[Mesa-dev] [PATCH 4/4] clover: use get_device_vendor instead of get_vendor

2015-03-21 Thread Giuseppe Bilotta
The pipe's get_vendor method returns something more akin to a driver vendor string in most cases, instead of the actual device vendor. Use get_device_vendor instead, which was introduced specifically for this purpose. Signed-off-by: Giuseppe Bilotta Reviewed-by: Michel Dänzer Reviewed-by: Franc

[Mesa-dev] [PATCH 2/4] gallium: introduce get_device_vendor() entrypoint for pipes

2015-03-21 Thread Giuseppe Bilotta
This will be needed by Clover to return the correct information to CL_DEVICE_VENDOR info queries. Signed-off-by: Giuseppe Bilotta Reviewed-by: Michel Dänzer --- src/gallium/docs/source/screen.rst | 6 ++ src/gallium/include/pipe/p_screen.h | 8 2 files changed, 14 insertions(+)

[Mesa-dev] [PATCHv5 0/4] Separate device from driver vendor

2015-03-21 Thread Giuseppe Bilotta
OpenCL (as opposed to OpenGL) has separate vendor strings for the implementation/driver/platform and the device. CL_PLATFORM_VENDOR is akin to the GL_VENDOR string, while CL_DEVICE_VENDOR is supposed to return the actual device vendor. (For example, the AMD OpenCL platform returns GenuineIntel as

[Mesa-dev] [PATCH 1/4] gallium: remove trailing whitespace in p_screen.h

2015-03-21 Thread Giuseppe Bilotta
Signed-off-by: Giuseppe Bilotta Reviewed-by: Michel Dänzer --- src/gallium/include/pipe/p_screen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index ac88506..4018f8a 100644 --- a/src/gallium/inclu

Re: [Mesa-dev] [RFC PATCH 10/12] glsl: add AoA support for an inteface with unsized array members

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 19:57 -0400, Ilia Mirkin wrote: > On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > > Add support for setting the max access of an unsized member > > of an interface array of arrays. > > > > For example ifc[j][k].foo[i] where foo is unsized. > > --- > > src/glsl/ast_a

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 23:35 -0400, Ilia Mirkin wrote: > Perhaps I'm blind, but I don't see where that array var is used beyond > just being incremented. Mind pointing it out? No problem. unsigned int length = MIN2(val->type->length, (storage->array_elements - *array_elements)); > > On Mar 21, 20

Re: [Mesa-dev] [RFC PATCH 09/12] glsl: add AoA support for linking interface blocks

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 19:51 -0400, Ilia Mirkin wrote: > On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > > Adds support for linking AoA interface blocks > > which countain unsized arrays > > --- > > src/glsl/ir.cpp | 4 ++-- > > src/glsl/linker.cpp | 9 + > > 2 files changed,

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Ilia Mirkin
Perhaps I'm blind, but I don't see where that array var is used beyond just being incremented. Mind pointing it out? On Mar 21, 2015 11:31 PM, "Timothy Arceri" wrote: > On Sat, 2015-03-21 at 19:46 -0400, Ilia Mirkin wrote: > > On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri > wrote: > > > --- >

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 19:46 -0400, Ilia Mirkin wrote: > On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > > --- > > src/glsl/link_uniform_initializers.cpp | 51 > > -- > > src/glsl/link_uniforms.cpp | 28 +++ > > 2 files changed,

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

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 19:34 -0400, Ilia Mirkin wrote: > On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > > Signed-off-by: Timothy Arceri > > --- > > src/glsl/ast_to_hir.cpp | 6 +- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/src/glsl/ast_to_hir.cpp b/src/g

[Mesa-dev] [Bug 89705] lp_bld_debug.cpp:280:54: error: no matching function for call to ‘llvm?=::TargetMachine::getSubtargetImpl()=?UTF-8?Q?’

2015-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89705 --- Comment #1 from Dieter Nützel --- I get this too on r600/Turks XT. /opt/mesa> llc --version LLVM (http://llvm.org/): LLVM version 3.7.0svn Optimized build with assertions. Built Mar 21 2015 (16:59:53). Default target: x86_64-unknown-

Re: [Mesa-dev] [RFC PATCH 05/12] glsl: avoid hitting assert for arrays of arrays

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 19:30 -0400, Ilia Mirkin wrote: > On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > > Also add TODO comment about adding proper support > > > > Signed-off-by: Timothy Arceri > > --- > > src/glsl/ir_set_program_inouts.cpp | 6 ++ > > 1 file changed, 6 insertions(+

Re: [Mesa-dev] [RFC] More ARB_arrays_of_arrays support

2015-03-21 Thread Ilia Mirkin
Patches 1, 2, 3, 4, 8, and 11 are Reviewed-by: Ilia Mirkin The rest I sent comments on, although even if you address my feedback, I'm not sufficiently familiar to r-b at least some of them. If you do decide to play with UBO's, you can use idr's excellent random_ubo script to stress-test the vari

Re: [Mesa-dev] [RFC PATCH 12/12] glsl: Add support for lowering interface block arrays of arrays

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > --- > src/glsl/lower_named_interface_blocks.cpp | 51 > ++- > 1 file changed, 37 insertions(+), 14 deletions(-) > > diff --git a/src/glsl/lower_named_interface_blocks.cpp > b/src/glsl/lower_named_interface_bloc

Re: [Mesa-dev] [RFC PATCH 10/12] glsl: add AoA support for an inteface with unsized array members

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > Add support for setting the max access of an unsized member > of an interface array of arrays. > > For example ifc[j][k].foo[i] where foo is unsized. > --- > src/glsl/ast_array_index.cpp | 16 > 1 file changed, 12 insertion

Re: [Mesa-dev] [RFC PATCH 09/12] glsl: add AoA support for linking interface blocks

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > Adds support for linking AoA interface blocks > which countain unsized arrays > --- > src/glsl/ir.cpp | 4 ++-- > src/glsl/linker.cpp | 9 + > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/src/glsl/ir.cpp b/s

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > --- > src/glsl/link_uniform_initializers.cpp | 51 > -- > src/glsl/link_uniforms.cpp | 28 +++ > 2 files changed, 52 insertions(+), 27 deletions(-) > > diff --git a/src/glsl/link_

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

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > Signed-off-by: Timothy Arceri > --- > src/glsl/ast_to_hir.cpp | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp > index 36f3eb7..7516e60 100644 > --- a/src/glsl/

Re: [Mesa-dev] [RFC PATCH 05/12] glsl: avoid hitting assert for arrays of arrays

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri wrote: > Also add TODO comment about adding proper support > > Signed-off-by: Timothy Arceri > --- > src/glsl/ir_set_program_inouts.cpp | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/glsl/ir_set_program_inouts.cpp > b/src/glsl/

[Mesa-dev] [Bug 89705] lp_bld_debug.cpp:280:54: error: no matching function for call to ‘llvm?=::TargetMachine::getSubtargetImpl()=?UTF-8?Q?’

2015-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89705 Bug ID: 89705 Summary: lp_bld_debug.cpp:280:54: error: no matching function for call to ‘llvm::TargetMachine::getSubtargetImpl()’ Product: Mesa Version: git Hardware: x86-6

Re: [Mesa-dev] [PATCH v2 2/7] i965/nir: Use emit_lrp for emitting flrp

2015-03-21 Thread Kenneth Graunke
On Friday, March 20, 2015 02:36:15 PM Jason Ekstrand wrote: > On Fri, Mar 20, 2015 at 2:28 PM, Ian Romanick wrote: > > On 03/20/2015 02:26 PM, Jason Ekstrand wrote: > >> On Fri, Mar 20, 2015 at 2:24 PM, Ian Romanick wrote: > >>> On 03/20/2015 11:24 AM, Jason Ekstrand wrote: > --- > src

[Mesa-dev] [PATCH] mesa: add OES_EGL_image_external_essl3 support

2015-03-21 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- Not sure what kind of testing is needed here... thought I'd just send this out though, as the extension is simple enough. Wasn't sure whether mesa already handles the requirements re marking the texture as incomplete if the sampler has funny settings. src/glsl/bui

Re: [Mesa-dev] [PATCH 01/15] i965: Define some useful swizzle helper functions.

2015-03-21 Thread Matt Turner
On Fri, Mar 20, 2015 at 7:11 AM, Francisco Jerez wrote: > This defines helper functions implementing some common swizzle > transformations that are usually open-coded in the compiler back-end, > causing a lot of clutter. Some optimization passes will become almost > trivial implemented in terms o

Re: [Mesa-dev] [PATCH 10/15] i965/vec4: Remove broken vector size deduction in setup_builtin_uniform_values().

2015-03-21 Thread Matt Turner
On Fri, Mar 20, 2015 at 7:11 AM, Francisco Jerez wrote: > This seemed to be trying to deduce the number of uniform vector > components from the parameter swizzle, but the algorithm would always > give 4 as result. Instead grab the correct number of components from > the GLSL type. > --- Function

Re: [Mesa-dev] [PATCH 14/15] i965/vec4: Some more trivial swizzle clean-up.

2015-03-21 Thread Matt Turner
On Fri, Mar 20, 2015 at 7:11 AM, Francisco Jerez wrote: > diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp > b/src/mesa/drivers/dri/i965/brw_vec4.cpp > index a6842fc..8e4df8c 100644 > --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp > +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp > @@ -572,12 +572,

Re: [Mesa-dev] [PATCH 07/15] i965/vec4: Simplify reswizzle() using the swizzle utils.

2015-03-21 Thread Matt Turner
On Fri, Mar 20, 2015 at 7:11 AM, Francisco Jerez wrote: > --- > src/mesa/drivers/dri/i965/brw_vec4.cpp | 40 > ++ > 1 file changed, 11 insertions(+), 29 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp > b/src/mesa/drivers/dri/i965/brw_vec4.cp

Re: [Mesa-dev] [PATCH v2 7/7] i965/nir: Use signed integer type for booleans

2015-03-21 Thread Jason Ekstrand
On Fri, Mar 20, 2015 at 2:21 PM, Jason Ekstrand wrote: > On Fri, Mar 20, 2015 at 1:56 PM, Matt Turner wrote: >> On Fri, Mar 20, 2015 at 1:37 PM, Jason Ekstrand wrote: >>> On Fri, Mar 20, 2015 at 1:12 PM, Matt Turner wrote: On Fri, Mar 20, 2015 at 11:24 AM, Jason Ekstrand wrote:

Re: [Mesa-dev] [PATCH 00/23] Handle Booleans and things better

2015-03-21 Thread Kenneth Graunke
On Friday, March 20, 2015 04:35:11 PM Jason Ekstrand wrote: > On Fri, Mar 20, 2015 at 4:26 PM, Ian Romanick wrote: > > On 03/20/2015 03:10 PM, Jason Ekstrand wrote: > >> There are a couple of reasons I'm asking for this. One is that NIR > >> may be able to CSE something that results in one of the

[Mesa-dev] [PATCH] gbm: remove gbm_gallium_drm from the loader

2015-03-21 Thread Emil Velikov
Signed-off-by: Emil Velikov --- Should have sent with the "remove st/gbm" series. Ohh well. -Emil src/gbm/main/backend.c | 24 1 file changed, 24 deletions(-) diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c index aceb662..4929d73 100644 --- a/src/gbm/ma

Re: [Mesa-dev] [RFC PATCH 0/7] Prune stale components, take 2

2015-03-21 Thread Emil Velikov
On 14/03/15 22:36, Emil Velikov wrote: > Hi all, > > As a follow up to Jose's initial series dropping st/{egl,vega} and > others here is the next round of cleanups, > > Namely this series > - removes st/gbm, winsys/sw/{wayland,fbdev}, all of which no longer > used by anyone, > - cleans up libEGL

Re: [Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-03-21 Thread Matt Turner
On Sat, Mar 21, 2015 at 10:10 AM, Emil Velikov wrote: > On 17/03/15 23:44, Emil Velikov wrote: >> On 17/03/15 01:25, Jonathan Gray wrote: >>> On Mon, Mar 16, 2015 at 08:37:28PM +, Emil Velikov wrote: On 26/02/15 13:49, Jose Fonseca wrote: > On 26/02/15 13:42, Jose Fonseca wrote: >

Re: [Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-03-21 Thread Emil Velikov
On 17/03/15 23:44, Emil Velikov wrote: > On 17/03/15 01:25, Jonathan Gray wrote: >> On Mon, Mar 16, 2015 at 08:37:28PM +, Emil Velikov wrote: >>> On 26/02/15 13:49, Jose Fonseca wrote: On 26/02/15 13:42, Jose Fonseca wrote: > On 26/02/15 03:55, Jonathan Gray wrote: >> On Wed, Feb 2

Re: [Mesa-dev] [RFC] More ARB_arrays_of_arrays support

2015-03-21 Thread Jason Ekstrand
On Mar 21, 2015 2:49 AM, "Timothy Arceri" wrote: > > This series adds most of the remaining glsl arrays of arrays support. Support for uniform blocks is still missing, I've played around with this but don't have anything working yet. > > What do you guys think about adding these changes without th

[Mesa-dev] [PATCH] mesa/state_tracker: Fix draw-pixel-with-texture piglit test.

2015-03-21 Thread Matthew Dawson
When glDrawPixels was used with an external texture, the pixels passed in were sampled instead of the texture. Change gallium to instead move the user texture to a new sampler below the glDrawPixels samplers. While the piglit test now works, the texture coordinates that are used to sample the tex

Re: [Mesa-dev] [PATCH] clover: Return 0 as storage size for local kernel args that are not set

2015-03-21 Thread Francisco Jerez
Jan Vesely writes: > On Sat, 2015-03-21 at 14:57 +0200, Francisco Jerez wrote: >> Jan Vesely writes: >> >> > On Fri, 2015-03-20 at 23:29 +, Tom Stellard wrote: >> >> The storage size for local kernel args can be queried before the >> >> arguments are set by using the CL_KERNEL_LOCAL_MEM_SIZ

Re: [Mesa-dev] [PATCH] clover: Return 0 as storage size for local kernel args that are not set

2015-03-21 Thread Jan Vesely
On Sat, 2015-03-21 at 14:57 +0200, Francisco Jerez wrote: > Jan Vesely writes: > > > On Fri, 2015-03-20 at 23:29 +, Tom Stellard wrote: > >> The storage size for local kernel args can be queried before the > >> arguments are set by using the CL_KERNEL_LOCAL_MEM_SIZE param > >> of clGetKernelW

Re: [Mesa-dev] [PATCH 18/23] glsl: Constify ir_instruction::equals

2015-03-21 Thread Francisco Jerez
Ian Romanick writes: > From: Ian Romanick > > The casts to remove const from ir are ugly. The alternative was to add > const versions of all the as_foo functions, and I just couldn't get up > the motivation to do that. > Wouldn't the alternative be roughly as much typing as casting const away?

Re: [Mesa-dev] [PATCH 2/3] clover: Add all the mandatory 1.1 extensions to the extension string

2015-03-21 Thread Francisco Jerez
Tom Stellard writes: > --- > src/gallium/state_trackers/clover/api/device.cpp | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/state_trackers/clover/api/device.cpp > b/src/gallium/state_trackers/clover/api/device.cpp > index 04f293d..43e7475 100644 > -

Re: [Mesa-dev] [PATCH 1/3] clover: Add a space at the end of CL_DEVICE_OPENCL_C_VERSION

2015-03-21 Thread Francisco Jerez
Tom Stellard writes: > This is required by the spec. Déjà-vu? Reviewed-by: Francisco Jerez > --- > src/gallium/state_trackers/clover/api/device.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/state_trackers/clover/api/device.cpp > b/src/gallium/state

Re: [Mesa-dev] [PATCH] clover: Return 0 as storage size for local kernel args that are not set

2015-03-21 Thread Francisco Jerez
Jan Vesely writes: > On Fri, 2015-03-20 at 23:29 +, Tom Stellard wrote: >> The storage size for local kernel args can be queried before the >> arguments are set by using the CL_KERNEL_LOCAL_MEM_SIZE param >> of clGetKernelWorkGroupInfo(). >> >> The spec says that if local kernel arguments ha

Re: [Mesa-dev] [PATCH] clover: The unit for CL_DEVICE_MEM_BASE_ADDR_ALIGN is bits not bytes

2015-03-21 Thread Francisco Jerez
Tom Stellard writes: > --- > src/gallium/state_trackers/clover/api/device.cpp | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/api/device.cpp > b/src/gallium/state_trackers/clover/api/device.cpp > index 43e7475..bc93f91 100644 > --- a/src/gallium/sta

[Mesa-dev] [Bug 89699] Regression in 10.5.1 causes flickering/artifacting in a particular video game

2015-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89699 Michel Dänzer changed: What|Removed |Added Component|Other |Drivers/Gallium/radeonsi Assig

Re: [Mesa-dev] [PATCH] gallium/targets/d3dadapter9: drop the libdrm prefix for drm.h

2015-03-21 Thread Samuel Pitoiset
Looks good to me. :) On 03/20/2015 10:20 PM, Emil Velikov wrote: The path is provided by libdrm.pc and already used appropriately by the build system. Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sr

[Mesa-dev] [RFC PATCH 10/12] glsl: add AoA support for an inteface with unsized array members

2015-03-21 Thread Timothy Arceri
Add support for setting the max access of an unsized member of an interface array of arrays. For example ifc[j][k].foo[i] where foo is unsized. --- src/glsl/ast_array_index.cpp | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/glsl/ast_array_index.cpp b/src

[Mesa-dev] [RFC] More ARB_arrays_of_arrays support

2015-03-21 Thread Timothy Arceri
This series adds most of the remaining glsl arrays of arrays support. Support for uniform blocks is still missing, I've played around with this but don't have anything working yet. What do you guys think about adding these changes without the uniform blocks support? Adding these changes now I a

[Mesa-dev] [RFC PATCH 12/12] glsl: Add support for lowering interface block arrays of arrays

2015-03-21 Thread Timothy Arceri
--- src/glsl/lower_named_interface_blocks.cpp | 51 ++- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/src/glsl/lower_named_interface_blocks.cpp b/src/glsl/lower_named_interface_blocks.cpp index 7304c51..8321bc1 100644 --- a/src/glsl/lower_named_interf

[Mesa-dev] [RFC PATCH 05/12] glsl: avoid hitting assert for arrays of arrays

2015-03-21 Thread Timothy Arceri
Also add TODO comment about adding proper support Signed-off-by: Timothy Arceri --- src/glsl/ir_set_program_inouts.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/ir_set_program_inouts.cpp b/src/glsl/ir_set_program_inouts.cpp index e877a20..49cf85d 100644 --- a/src/glsl/i

[Mesa-dev] [RFC PATCH 01/12] glsl: calculate component size for arrays of arrays when varying packing disabled

2015-03-21 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/link_varyings.cpp | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 2261799..80c54cc 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp

[Mesa-dev] [RFC PATCH 04/12] glsl: replace while loop with without_array function

2015-03-21 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/ast_to_hir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index d387b2e..36f3eb7 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3584,9 +3584,7 @@ ast_de

[Mesa-dev] [RFC PATCH 11/12] glsl: update types for unsized array members

2015-03-21 Thread Timothy Arceri
Assigns a new array type based on the max access of unsized array members. --- src/glsl/linker.cpp | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index eb25163..97f5023 100644 --- a/src/glsl/linker.cpp +++ b/src/gls

[Mesa-dev] [RFC PATCH 09/12] glsl: add AoA support for linking interface blocks

2015-03-21 Thread Timothy Arceri
Adds support for linking AoA interface blocks which countain unsized arrays --- src/glsl/ir.cpp | 4 ++-- src/glsl/linker.cpp | 9 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 54656f8..2e1442f 100644 --- a/src/glsl/ir.cpp +++

[Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Timothy Arceri
--- src/glsl/link_uniform_initializers.cpp | 51 -- src/glsl/link_uniforms.cpp | 28 +++ 2 files changed, 52 insertions(+), 27 deletions(-) diff --git a/src/glsl/link_uniform_initializers.cpp b/src/glsl/link_uniform_initializers.cpp ind

[Mesa-dev] [RFC PATCH 02/12] glsl: add arrays of arrays support to without_array function

2015-03-21 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/glsl_types.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index 7359e94..f5bc846 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -534,7 +534,12 @@ struct glsl_ty

[Mesa-dev] [RFC PATCH 08/12] glsl: update assert to support arrays of arrays

2015-03-21 Thread Timothy Arceri
--- src/glsl/glsl_types.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp index 38b37a6..994c5c5 100644 --- a/src/glsl/glsl_types.cpp +++ b/src/glsl/glsl_types.cpp @@ -1016,7 +1016,8 @@ glsl_type::std140_base_alignment(bool

[Mesa-dev] [RFC PATCH 03/12] glsl: support packing of arrays of arrays

2015-03-21 Thread Timothy Arceri
--- src/glsl/lower_packed_varyings.cpp | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp index 2c9a1c4..f8e79bd 100644 --- a/src/glsl/lower_packed_varyings.cpp +++ b/src/glsl/lower_packed_varyings

[Mesa-dev] [RFC PATCH 06/12] glsl: dont allow gl_PerVertex to be redeclared as an array of arrays

2015-03-21 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/ast_to_hir.cpp | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 36f3eb7..7516e60 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -5595,7 +5595,11 @@ ast