Re: [Mesa-dev] big endian: r600g

2015-08-19 Thread Michel Dänzer
On 19.08.2015 15:02, Christian Zigotzky wrote: > > Could you please adapt the r600g driver for the changed PIPE_FORMAT_* > semantics for big endian machines, please? > > All Power Mac and AMIGA one users can't use AMD Radeon HD7xxx or higher > for 3D acceleration. The r600g driver needs to be ada

[Mesa-dev] big endian: r600g

2015-08-19 Thread Christian Zigotzky
Hi Michel, Thank you for your answer. I don't have an idea anymore. Could you tell me which files we have to modify? Is it possible to port the AMD Catalyst driver to the PowerPC platform? If yes do you know how can I in touch with AMD? Please help us. We want to release new PowerPC desktop s

[Mesa-dev] [PATCH 2/2] r600: Turn 'r600_shader_key' struct into union

2015-08-19 Thread Edward O'Callaghan
From: Edward O'Callaghan This struct was getting a bit crowded, following the lead of radeonsi, mirror the idea of having sub-structures for each shader type. Turning 'r600_shader_key' into an union saves some trivial memory and CPU cycles for the shader keys. Signed-off-by: Edward O'Callaghan

[Mesa-dev] [PATCH 1/2] r600: Rewrite r600_shader_selector_key() to use a switch stmt

2015-08-19 Thread Edward O'Callaghan
From: Edward O'Callaghan Signed-off-by: Edward O'Callaghan --- src/gallium/drivers/r600/r600_state_common.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c

[Mesa-dev] [PATCH 0/2] r600g: minor refactor for tessellation support [V.2]

2015-08-19 Thread Edward O'Callaghan
From: Edward O'Callaghan This gets some churn out the way while prepping for r600g tessellation support that I am trying to work on. Since that will take me some time this also avoids rebases and the such like while keeping seperate indirectly related patches to the actual tessellation support.

[Mesa-dev] [PATCH] clover: fix llvm 3.5 build error

2015-08-19 Thread Zoltan Gilian
There is no MDOperand in llvm 3.5. v2: Check if kernel metadata is present to avoid crash (EdB). v3: Second attempt to avoid crash: switch off metadata query for llvm < 3.6. --- .../state_trackers/clover/llvm/invocation.cpp | 33 ++ 1 file changed, 21 insertions(+), 12 de

Re: [Mesa-dev] [PATCH v2] i965: Refactor image uniform setup

2015-08-19 Thread Francisco Jerez
Jason Ekstrand writes: > Previously, setting up image uniforms relied on being called after > fs_visitor::uniforms was set and with fs_visitor::uniforms not allocating > space for it. This made sense in an ir_visitor world because the visitor > assigns locations and uploads data as it walks thro

Re: [Mesa-dev] [PATCH 2/2] r600: Turn 'r600_shader_key' struct into union

2015-08-19 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Wed, Aug 19, 2015 at 10:58 AM, Edward O'Callaghan wrote: > From: Edward O'Callaghan > > This struct was getting a bit crowded, following the lead of > radeonsi, mirror the idea of having sub-structures for each > shader type. Turning 'r600_sha

Re: [Mesa-dev] Can we use anonymous unions?

2015-08-19 Thread Marek Olšák
On Wed, Aug 19, 2015 at 2:47 AM, Jason Ekstrand wrote: > On Tue, Aug 18, 2015 at 5:36 PM, Ian Romanick wrote: >> On 08/18/2015 10:08 AM, Connor Abbott wrote: >>> On Tue, Aug 18, 2015 at 9:56 AM, Kenneth Graunke >>> wrote: Hey, I was thinking about using an anonymous union. Speci

Re: [Mesa-dev] [PATCH 2/2] r600: Turn 'r600_shader_key' struct into union

2015-08-19 Thread Dave Airlie
On 19 August 2015 at 18:58, Edward O'Callaghan wrote: > From: Edward O'Callaghan > > This struct was getting a bit crowded, following the lead of > radeonsi, mirror the idea of having sub-structures for each > shader type. Turning 'r600_shader_key' into an union saves > some trivial memory and CP

Re: [Mesa-dev] [PATCH 09/25] glsl: Add support for image binding qualifiers.

2015-08-19 Thread Francisco Jerez
Timothy Arceri writes: > On Mon, 2015-08-17 at 19:45 +0300, Francisco Jerez wrote: >> Support for binding an image to an image unit explicitly in the shader >> source is required by both GLSL 4.2 and GLSL ES 3.1, but not by the >> original ARB_shader_image_load_store extension. >> --- >> src/gls

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

2015-08-19 Thread Eero Tamminen
Hi, On 08/18/2015 08:59 PM, Matt Turner wrote: On Tue, Jul 21, 2015 at 2:08 PM, Vinson Lee wrote: Fixes 'make check' on FreeBSD. Signed-off-by: Vinson Lee --- Seems fine to me. Reviewed-by: Matt Turner At the same time, I don't have any idea if the scripts actually rely on bash itself.

Re: [Mesa-dev] [PATCH 2/2][RFC] docs: Add the 2015 ARB extensions

2015-08-19 Thread Eero Tamminen
Hi, On 08/19/2015 03:18 AM, Ian Romanick wrote: On 08/12/2015 02:23 PM, Thomas Helland wrote: 2015-08-12 18:56 GMT+02:00 Kenneth Graunke : On Wednesday, August 12, 2015 06:32:50 PM Thomas Helland wrote: 2015-08-12 17:48 GMT+02:00 Ilia Mirkin : On Tue, Aug 11, 2015 at 1:48 PM, Thomas Helland

Re: [Mesa-dev] [PATCH 21/25] mesa: Add extension enable and table entry for OES_shader_image_atomic.

2015-08-19 Thread Francisco Jerez
Ian Romanick writes: > On 08/17/2015 09:56 AM, Ilia Mirkin wrote: >> On Mon, Aug 17, 2015 at 12:46 PM, Francisco Jerez >> wrote: >>> --- >>> src/mesa/main/extensions.c | 1 + >>> src/mesa/main/mtypes.h | 1 + >>> 2 files changed, 2 insertions(+) >>> >>> diff --git a/src/mesa/main/extension

[Mesa-dev] [PATCH 20.5/25] mesa: Add ES31 API tag for the extension table.

2015-08-19 Thread Francisco Jerez
I'll mark the OES_shader_image_atomic extension entry with this tag to make sure that we don't expose it on earlier GLES API versions accidentally, because according to the extension: "OpenGL ES 3.1 and GLSL ES 3.10 are required." --- src/mesa/main/extensions.c | 7 +++ 1 file changed, 7 ins

Re: [Mesa-dev] big endian: r600g

2015-08-19 Thread Dragomir Ivanov
Best thing to do is to hire some developer to do the work for you. If it knows Mesa well, this can be cheaper and faster than doing it yourself. I know Timothy Arceri ( t_arc...@yahoo.com.au) was doing some Mesa work for pay in the past. On Wed, Aug 19, 2015 at 10:34 AM, Christian Zigotzky wrot

Re: [Mesa-dev] big endian: r600g

2015-08-19 Thread Martin Peres
On 19/08/15 14:52, Dragomir Ivanov wrote: Best thing to do is to hire some developer to do the work for you. If it knows Mesa well, this can be cheaper and faster than doing it yourself. I know Timothy Arceri ( t_arc...@yahoo.com.au ) was doing some Mesa work for

[Mesa-dev] [Bug 91673] Segfault when calling glTexSubImage2D on storage texture to bound FBO

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91673 --- Comment #3 from Dongseong Hwang --- (In reply to Tapani Pälli from comment #2) > With a bit of testing it seems things work fine if glTexStorage2D call is > moved to happen right after first glBindTexture call (this is also how is > being don

[Mesa-dev] [PATCH] mesa/es3.1: Allow GL_COMPUTE_WORK_GROUP_SIZE for OpenGL ES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt According to OpenGL ES specification section 7.12, GL_COMPUTE_WORK_GROUP_SIZE, is supported by the glGetProgramiv function. Signed-off-by: Marta Lofstedt --- src/mesa/main/shaderapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/shadera

[Mesa-dev] [PATCH] mesa/es3.1: Enable getting MAX_COMPUTE_WORK_GROUP_ values for OpenGL ES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt According to the OpenGL ES 3.1 specification chapter 17, the MAX_COMPUTE_WORK_GROUP_COUNT and MAX_COMPUTE_WORK_GROUP_SIZE is available for glGetIntegeri_v. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [Mesa-dev] [PATCH v3 2/5] glsl: add support for the imageSize builtin

2015-08-19 Thread Francisco Jerez
Martin Peres writes: > The code is heavily inspired from Francisco Jerez's code supporting the > image_load_store extension. > > Backends willing to support this builtin should handle > __intrinsic_image_size. > > v2: Based on the review of Ilia Mirkin > - Enable the extension for GLES 3.1 > - Fi

Re: [Mesa-dev] [PATCH v2] i965: Refactor image uniform setup

2015-08-19 Thread Jason Ekstrand
On Aug 19, 2015 2:56 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > Previously, setting up image uniforms relied on being called after > > fs_visitor::uniforms was set and with fs_visitor::uniforms not allocating > > space for it. This made sense in an ir_visitor world because the

Re: [Mesa-dev] [PATCH v2] i965: Refactor image uniform setup

2015-08-19 Thread Francisco Jerez
Jason Ekstrand writes: > On Aug 19, 2015 2:56 AM, "Francisco Jerez" wrote: >> >> Jason Ekstrand writes: >> >> > Previously, setting up image uniforms relied on being called after >> > fs_visitor::uniforms was set and with fs_visitor::uniforms not > allocating >> > space for it. This made sense

Re: [Mesa-dev] [PATCH v2] i965: Refactor image uniform setup

2015-08-19 Thread Jason Ekstrand
On Aug 19, 2015 6:45 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > On Aug 19, 2015 2:56 AM, "Francisco Jerez" wrote: > >> > >> Jason Ekstrand writes: > >> > >> > Previously, setting up image uniforms relied on being called after > >> > fs_visitor::uniforms was set and with fs_vi

Re: [Mesa-dev] [PATCH v3 3/5] nir: convert the glsl intrinsic image_size to nir_intrinsic_image_size

2015-08-19 Thread Martin Peres
On 19/08/15 16:47, Francisco Jerez wrote: Martin Peres writes: v2, review from Francisco Jerez: - make the destination variable as large as what the nir instrinsic defines (4) instead of the size of the return variable of glsl. This is still safe for the already existing code because

Re: [Mesa-dev] [PATCH v3 3/5] nir: convert the glsl intrinsic image_size to nir_intrinsic_image_size

2015-08-19 Thread Francisco Jerez
Martin Peres writes: > v2, review from Francisco Jerez: > - make the destination variable as large as what the nir instrinsic >defines (4) instead of the size of the return variable of glsl. This >is still safe for the already existing code because all the intrinsics >affected return

Re: [Mesa-dev] [PATCH v3 2/5] glsl: add support for the imageSize builtin

2015-08-19 Thread Martin Peres
On 19/08/15 16:36, Francisco Jerez wrote: Martin Peres writes: The code is heavily inspired from Francisco Jerez's code supporting the image_load_store extension. Backends willing to support this builtin should handle __intrinsic_image_size. v2: Based on the review of Ilia Mirkin - Enable th

Re: [Mesa-dev] [PATCH v3 4/5] i965: handle nir_intrinsic_image_size

2015-08-19 Thread Francisco Jerez
Martin Peres writes: > v2, Review from Francisco Jerez: > - avoid the camelCase for the booleans > - init the booleans using the sampler type > - force the initialization of all the components of the output register > > Signed-off-by: Martin Peres > --- > src/mesa/drivers/dri/i965/brw_fs_nir.cp

Re: [Mesa-dev] [PATCH 5/5] i965: enable GL_ARB_shader_image_size

2015-08-19 Thread Francisco Jerez
Martin Peres writes: > Signed-off-by: Martin Peres > --- > docs/GL3.txt | 4 ++-- > docs/relnotes/11.0.0.html| 1 + > src/mesa/drivers/dri/i965/intel_extensions.c | 1 + > 3 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/docs/

Re: [Mesa-dev] [PATCH 01/10] i965: Use constant miptree pointer in tex surface setup

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > as it is only used for reading. > > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_context.h | 2 +- > src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 +- > src/mesa/drivers/dri/i965/gen8_surface_state.c| 2 +- > 3 files chan

Re: [Mesa-dev] [PATCH 02/10] i965: Reduce the scope of input in buffer tex setup

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > Signed-off-by: Topi Pohjolainen Reviewed-by: Francisco Jerez > --- > src/mesa/drivers/dri/i965/brw_context.h | 4 ++-- > src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 8 +++- > src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 +- > src/mesa

[Mesa-dev] [Bug 91687] Crash when creating new context after destroying the old one using indirect rendering

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91687 --- Comment #1 from Guilherme --- Created attachment 117784 --> https://bugs.freedesktop.org/attachment.cgi?id=117784&action=edit gdb stack trace -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee

Re: [Mesa-dev] [PATCH 03/10] i965: Move tex buffer dispatch into hw independent setup

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > All generations do the same exact dispatch and it could be > therefore done in the hardware independent stage. > > v2: Rebased where there are still duplicate calls in gen7 and gen8 > handlers. These will be dropped in subsequent patches. > > Reviewed-by: Matt Turne

[Mesa-dev] [Bug 91687] Crash when creating new context after destroying the old one using indirect rendering

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91687 --- Comment #3 from Guilherme --- As the crash is a seg fault on update_framebuffer_size because surface=NULL, I tried to just make a check if the surface is NULL. Then it does not crash anywhere else, but nothing is rendered. -- You are receiv

[Mesa-dev] [Bug 91687] Crash when creating new context after destroying the old one using indirect rendering

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91687 --- Comment #2 from Guilherme --- Created attachment 117785 --> https://bugs.freedesktop.org/attachment.cgi?id=117785&action=edit xtrace with glx commands -- You are receiving this mail because: You are the QA Contact for the bug. You are the

[Mesa-dev] [Bug 91687] Crash when creating new context after destroying the old one using indirect rendering

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91687 Bug ID: 91687 Summary: Crash when creating new context after destroying the old one using indirect rendering Product: Mesa Version: 10.5 Hardware: x86-64 (AMD64)

Re: [Mesa-dev] [PATCH 04/10] i965/gen4: Use tex object format instead of the miptree format

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > Equivalent logic for newer generations (>= 7) use the tex object > format instead. This patch prepares for merging the decision > making for all generations. > > Signed-off-by: Topi Pohjolainen Reviewed-by: Francisco Jerez > --- > src/mesa/drivers/dri/i965/brw_wm_s

Re: [Mesa-dev] [PATCH 05/10] i965: Move tex miptree and format resolving into dispatcher

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > All hardware platforms have this in common, so do it in the > hardware independent dispatcher. > > v2 (Matt): Removed extra whitespace. > v3: Non-trivial rebase > > Reviewed-by: Matt Turner (v1) > Reviewed-by: Kenneth Graunke (v1) > Signed-off-by: Topi Pohjolainen I

Re: [Mesa-dev] [PATCH 06/10] i965/gen7: Move tex gather format override into common dispatcher

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > Signed-off-by: Topi Pohjolainen Reviewed-by: Francisco Jerez > --- > src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c > b/src/mesa/drivers/dri/i965/brw_wm

Re: [Mesa-dev] [PATCH 07/10] i965: Move texture swizzle resolving into dispatcher

2015-08-19 Thread Francisco Jerez
Topi Pohjolainen writes: > v2: Non-trivial rebase > > Reviewed-by: Matt Turner (v1) > Reviewed-by: Kenneth Graunke (v1) > Signed-off-by: Topi Pohjolainen > > Signed-off-by: Topi Pohjolainen Uhm, and here you dropped my "[ Francisco Jerez: Non-trivial rebase. ]" and R-b tags and replaced them

Re: [Mesa-dev] [PATCH v3 4/5] i965: handle nir_intrinsic_image_size

2015-08-19 Thread Francisco Jerez
Francisco Jerez writes: > Martin Peres writes: > >> v2, Review from Francisco Jerez: >> - avoid the camelCase for the booleans >> - init the booleans using the sampler type >> - force the initialization of all the components of the output register >> >> Signed-off-by: Martin Peres >> --- >> sr

Re: [Mesa-dev] [PATCH 20.5/25] mesa: Add ES31 API tag for the extension table.

2015-08-19 Thread Tapani Pälli
Reviewed-by: Tapani Palli On 08/19/2015 02:50 PM, Francisco Jerez wrote: I'll mark the OES_shader_image_atomic extension entry with this tag to make sure that we don't expose it on earlier GLES API versions accidentally, because according to the extension: "OpenGL ES 3.1 and GLSL ES 3.10 are

[Mesa-dev] [Bug 91691] Missing "gl.pc" file while using Scons for cross-compiling

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91691 Bug ID: 91691 Summary: Missing "gl.pc" file while using Scons for cross-compiling Product: Mesa Version: 9.1 Hardware: Other OS: All Status: NEW

[Mesa-dev] [Bug 91691] Missing "gl.pc" file while using Scons for cross-compiling

2015-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91691 YuGiOhJCJ changed: What|Removed |Added CC||yugioh...@1s.fr -- You are receiving this m

Re: [Mesa-dev] [PATCH 11/25] glsl: Implement GLSL ES restriction on images being either readonly or writeonly.

2015-08-19 Thread Tapani Pälli
Patches 11,12,13: Reviewed-by: Tapani Pälli On 08/17/2015 07:45 PM, Francisco Jerez wrote: --- src/glsl/ast_to_hir.cpp | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 4d279f6..ff57ec3 100644 --- a/src/glsl/ast_to

[Mesa-dev] [PATCH] mesa: Allow query of GL_VERTEX_BINDING_BUFFER

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt According to OpenGL ES 3.1 specification table : 20.2 and OpenGL specification 4.4 table 23.4. The glGetIntegeri_v functions should report the name of the buffer bound when called with GL_VERTEX_BINDING_BUFFER. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 8 +++

[Mesa-dev] [PATCH 0/3] Enable misc. Vertex bindings for OpenGL ES 3.1

2015-08-19 Thread Marta Lofstedt
These patches enable some Vertex Binding functionality for OpenGL ES 3.1, that is currently limited to desktop GL. Marta Lofstedt (3): mesa/es3.1 : Align OpenGL ES 3.1 glBindVertexBuffer error handling with OpenGL Core mesa/es3.1: Allow query of Vertex bindings for GLES 3.1 mesa/es3.1: E

[Mesa-dev] [PATCH 2/3] mesa/es3.1: Allow query of Vertex bindings for GLES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index ae2d0b7..b6b7d6c 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1966,7 +1966,8 @@

[Mesa-dev] [PATCH 3/3] mesa/es3.1: Enable GL_ARB_vertex_attrib_binding functionality for GLES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- src/mesa/main/varray.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 3bab985..3ddf795 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.

[Mesa-dev] [PATCH 1/3] mesa/es3.1 : Align OpenGL ES 3.1 glBindVertexBuffer error handling with OpenGL Core

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt According to OpenGL ES 3.1 specification 10.3.1: "An INVALID_OPERATION error is generated if buffer is not zero or a name returned from a previous call to GenBuffers, or if such a name has since been deleted with DeleteBuffers." This error check was previously limited to Open

[Mesa-dev] [PATCH 1/2] mesa/formats: only do type and component lookup for uncompressed formats

2015-08-19 Thread Nanley Chery
From: Nanley Chery Only uncompressed formats have a non-void type and actual components per pixel. Rename _mesa_format_to_type_and_comps to _mesa_uncompressed_format_to_type_and_comps and require callers to check if the format is not compressed. v2. include compressed format cases to avoid gcc w

[Mesa-dev] [PATCH 2/2] mesa/formats: make format testing a gtest

2015-08-19 Thread Nanley Chery
From: Nanley Chery We currently check that our format info table is sane during context initialization in debug builds. Perform this check during `make check` instead. This enables format testing in release builds and removes the requirement of an exhuastive switch for _mesa_uncompressed_format_t

[Mesa-dev] [PATCH v2] mesa/formats: refactor by removing compressed formats

2015-08-19 Thread Nanley Chery
From: Nanley Chery All compressed formats return GL_FALSE and there isn't any evidence to support that this behaviour would change. Remove all switch cases for compressed formats. v2. Since the exhaustive switch is removed, add a gtest to ensure all formats are handled. Cc: Brian Paul Cc:

Re: [Mesa-dev] [PATCH 4/4] mesa/formats: refactor by globbing on types in switch statement

2015-08-19 Thread Nanley Chery
On Fri, Aug 14, 2015 at 4:09 PM, Chad Versace wrote: > On Tue 11 Aug 2015, Nanley Chery wrote: > > From: Nanley Chery > > > > Combine the adjacent cases which have the same GL type in the switch > statemnt. > > > > Signed-off-by: Nanley Chery > > --- > > src/mesa/main/formats.c | 152 > ++-

Re: [Mesa-dev] [PATCH 09/25] glsl: Add support for image binding qualifiers.

2015-08-19 Thread Timothy Arceri
On Wed, 2015-08-19 at 13:52 +0300, Francisco Jerez wrote: > Timothy Arceri writes: > > > On Mon, 2015-08-17 at 19:45 +0300, Francisco Jerez wrote: > > > Support for binding an image to an image unit explicitly in the shader > > > source is required by both GLSL 4.2 and GLSL ES 3.1, but not by the

Re: [Mesa-dev] [PATCH 10/25] glsl: Require that all image uniforms have a format qualifier in GLSL ES.

2015-08-19 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] i965/fs: Split VGRFs after lowering pull constants

2015-08-19 Thread Jason Ekstrand
The split_virtual_grfs code doesn't properly rewrite reladdr so we need to make sure that any uniform indirects are lowered away first. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/

Re: [Mesa-dev] [PATCH] i965/fs: Split VGRFs after lowering pull constants

2015-08-19 Thread Jason Ekstrand
The following shader test exercises the bug: [require] GLSL >= 1.10 [vertex shader] void main() { gl_Position = gl_Vertex; } [fragment shader] uniform float f[4]; uniform ivec4 s; void main() { gl_FragColor = vec4(f[s.x], f[s.y], f[s.z], f[s.w]); } [test] uniform float f[0] 0.0 uniform f

Re: [Mesa-dev] [PATCH 12/25] glsl: Allow precision qualifiers on general opaque types.

2015-08-19 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 13/25] glsl: Use a separate availability class for image atomic built-ins.

2015-08-19 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] glClearColor is broken in a weird way if compiled with mangling enabled

2015-08-19 Thread Yuzhu Lu
It seems related to datatype GLclampf, which affects mglClearColor, mglBlendColor... If I replace it with double, everything works fine. Any ideas? Yuzhu - Original Message - From: "Yuzhu Lu" To: mesa-dev@lists.freedesktop.org, mesa-us...@lists.freedesktop.org Sent: Friday, Au

Re: [Mesa-dev] [PATCH v3] mesa: don't enable online compression for ASTC formats

2015-08-19 Thread Nanley Chery
Agreed. I've updated the patch. Thanks. On Mon, Aug 17, 2015 at 11:39 AM, Chad Versace wrote: > On Tue 11 Aug 2015, Nanley Chery wrote: > > From: Nanley Chery > > > > In agreement with the ASTC spec, this makes calls to TexImage*D > unsuccessful. > > Implied by the spec, Generate[Texture]Mipmap

Re: [Mesa-dev] [PATCH 1/2] mesa/texformat: enable ASTC formats for TexStorage

2015-08-19 Thread Nanley Chery
On Mon, Aug 17, 2015 at 11:54 AM, Chad Versace wrote: > On Tue 28 Jul 2015, Nanley Chery wrote: > > From: Nanley Chery > > > > According to the spec, Tex*Storage* commands are supported if the GL > > implementation has support for immutable textures. > > > > Signed-off-by: Nanley Chery > > ---

[Mesa-dev] [PATCH] glsl: expose textureQueryLod in GLSL 4.00+ fragment shaders

2015-08-19 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/glsl/builtin_functions.cpp | 119 - 1 file changed, 82 insertions(+), 37 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 04ad617..9351f71 100644 --- a/src/glsl/builtin_funct

[Mesa-dev] [PATCH v3] mesa/formats: refactor by removing compressed formats

2015-08-19 Thread Nanley Chery
From: Nanley Chery All compressed formats return GL_FALSE and there isn't any evidence to support that this behaviour would change. Remove all switch cases for compressed formats. v2. Since the exhaustive switch is removed, add a gtest to ensure all formats are handled. v3. Ensure that GL_NO

Re: [Mesa-dev] glClearColor is broken in a weird way if compiled with mangling enabled

2015-08-19 Thread Yuzhu Lu
Update: All function with GLclampf and GLfloat are messed up. But pointer are fine. Other datatype works fine as well. I never had such a weird issue before. The work around to replace it with GLdouble. Yuzhu - Original Message - From: "Yuzhu Lu" To: mesa-dev@lists.freedesktop

[Mesa-dev] [PATCH V2 4/8] i965: Delete temporary variable 'src_pitch'

2015-08-19 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_blit.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index f8606b8..c177eec 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.

[Mesa-dev] [PATCH V2 1/8] i965: Add a helper function intel_get_tile_dims()

2015-08-19 Thread Anuj Phogat
V2: - Do the tile width/height computations in the new helper function and use it later in intel_miptree_get_tile_masks(). - Change the name to intel_get_tile_dims(). Cc: Ben Widawsky Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 81 +++

[Mesa-dev] [PATCH V2 6/8] i965: Fix {src, dst}_pitch alignment check for XY_SRC_COPY_BLT

2015-08-19 Thread Anuj Phogat
Current code checks the alignment restrictions only for Y tiling. From Broadwell PRM vol 10: "pitch is of 512Byte granularity for Tile-X: This means the tiled-x surface pitch can be (512, 1024, 1536, 2048...)/4 (in Dwords)." This patch adds the restriction for X tiling as well. Signed-off-by:

[Mesa-dev] [PATCH V2 8/8] i965: Rename intel_miptree_get_dimensions_for_image()

2015-08-19 Thread Anuj Phogat
This function isn't specific to miptrees. So, drop the "miptree" from function name. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_fbo.c | 2 +- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 +++--- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 ++-- src/mesa/

[Mesa-dev] [PATCH V2 7/8] i965/gen9: Fix {src, dst}_pitch alignment check for XY_FAST_COPY_BLT

2015-08-19 Thread Anuj Phogat
I misinterpreted the alignmnet restriction in XY_FAST_COPY_BLT earlier. Instead of checking pitch for 64KB alignmnet we need to check it for tile widh alignment. Signed-off-by: Anuj Phogat Cc: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_blit.c | 18 +++--- 1 file changed, 7 ins

[Mesa-dev] [PATCH V2 3/8] i965: Use helper function intel_get_tile_dims() in surface setup

2015-08-19 Thread Anuj Phogat
It takes care of using the correct tile width if we later use other tiling patterns for aux miptree. V2: Remove the comment about using Yf for aux miptree. Cc: Ben Widawsky Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 14 -- 1 file changed, 12 ins

[Mesa-dev] [PATCH V2 5/8] i965: Move conversion of {src, dst}_pitch to dwords outside if/else

2015-08-19 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_blit.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index c177eec..d15a64d 100644 --- a/src/mesa/driver

[Mesa-dev] [PATCH V2 2/8] i965: Use intel_get_tile_dims() to get tile masks

2015-08-19 Thread Anuj Phogat
This will require change in the parameters passed to intel_miptree_get_tile_masks(). V2: Rearrange the order of parameters. (Ben) Change the name to intel_get_tile_masks(). (Topi) Cc: Ben Widawsky Cc: Topi Pohjolainen Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_blorp.cpp

Re: [Mesa-dev] [PATCH v2] i965: Refactor image uniform setup

2015-08-19 Thread Jason Ekstrand
On Wed, Aug 19, 2015 at 6:48 AM, Jason Ekstrand wrote: > > On Aug 19, 2015 6:45 AM, "Francisco Jerez" wrote: >> >> Jason Ekstrand writes: >> >> > On Aug 19, 2015 2:56 AM, "Francisco Jerez" >> > wrote: >> >> >> >> Jason Ekstrand writes: >> >> >> >> > Previously, setting up image uniforms relied

[Mesa-dev] [PATCH 2/6] i965: Remove horizontal bars from file header comments

2015-08-19 Thread Ian Romanick
From: Ian Romanick Why was that ever a thing? Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_clear.c| 6 ++ src/mesa/drivers/dri/i965/brw_draw.c | 6 ++ src/mesa/drivers/dri/i965/brw_draw.h | 6 ++ src/mesa/drivers/dri/i965/brw_dra

[Mesa-dev] [PATCH 3/6] i965: Fix typos in license

2015-08-19 Thread Ian Romanick
From: Ian Romanick grep -lr 'sub license' | while read f; do \ sed --in-place -e 's/sub license/sublicense/' $f ;\ done grep -lr 'NON-INFRINGEMENT' | while read f; do \ sed --in-place -e 's/NON-INFRINGEMENT/NONINFRINGEMENT/' $f ;\ done Signed-off-by: Ian Romanick --- src/mesa/

[Mesa-dev] [PATCH 0/6] Copyright / license pet peeves

2015-08-19 Thread Ian Romanick
My justification for these patches is that I was annoyed. :) After this series, the following script tells me that the differences in the license / copyright headers of all the files in src/mesa/drivers/dri/i965 is pretty minimal. I have summarized the differences below. #! /bin/bash j=b

[Mesa-dev] [PATCH 5/6] i965: Various trivial changes to file headers

2015-08-19 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_cs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_device_info.h | 45 src/mesa/drivers/dri/i965/brw_vec4_cse.cpp | 2 +- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp

[Mesa-dev] [PATCH 4/6] i965: Re-wrap lines in the license, part 1

2015-08-19 Thread Ian Romanick
From: Ian Romanick grep -lr '^ [*] IN THE SOFTWARE.$' | while read f; do \ sed --in-place \ -e 's/THE USE OR OTHER DEALINGS$/THE USE OR OTHER/' \ -e 's/^ \* IN THE SOFTWARE.$/ * DEALINGS IN THE SOFTWARE./' \ $f done Signed-off-by: Ian Romanick --- src/mesa/drivers/d

Re: [Mesa-dev] big endian: r600g

2015-08-19 Thread Michel Dänzer
On 19.08.2015 16:34, Christian Zigotzky wrote: > > Thank you for your answer. I don't have an idea anymore. Could you > tell me which files we have to modify? If I knew exactly what needs to be done where, I probably would have done it myself. :) That said, I suspect changes to the driver (src/ga

Re: [Mesa-dev] [PATCH 3/6] i965: Fix typos in license

2015-08-19 Thread Matt Turner
On Wed, Aug 19, 2015 at 7:49 PM, Ian Romanick wrote: > From: Ian Romanick > > grep -lr 'sub license' | while read f; do \ > sed --in-place -e 's/sub license/sublicense/' $f ;\ > done > > grep -lr 'NON-INFRINGEMENT' | while read f; do \ > sed --in-place -e 's/NON-INFRINGEMENT/NONINFRIN

Re: [Mesa-dev] [PATCH 0/6] Copyright / license pet peeves

2015-08-19 Thread Matt Turner
Patches 1 and 6 were too large for the mailing list, so I checked them in your tree. Patch 6 has some diffs that leave lines badly wrapped: + * THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWI

[Mesa-dev] Last try at AoA for Mesa 11 v4

2015-08-19 Thread Timothy Arceri
Changes in v4: - Desktop support (see patch 18 for limitations) - Image support - Much faster constant optimisation pass (patch 11) Changes in v3: - Rebased on the tessellation and subroutine changes - Atomic counter AoA now working including indirect indexing (previously I had broken piglit test

[Mesa-dev] [PATCH 15/25] i965: support atomic counter AoA

2015-08-19 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 9062bcc..0701403 100644 --- a/src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 07/25] glsl: add helper for calculating size of AoA

2015-08-19 Thread Timothy Arceri
V2: return 0 if not array rather than -1 Reviewed-by: Tapani Pälli --- src/glsl/glsl_types.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index e7c73da..469ee3e 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.

[Mesa-dev] [PATCH 16/25] i965: fix atomic buffer index for bindings other than 0

2015-08-19 Thread Timothy Arceri
Since commit c0cd5b var->data.binding was being used as a replacement for atomic buffer index, but they don't have to be the same value they just happen to end up the same when binding is 0. Now that we store the atomic uniform location in var->data.location we can use this to lookup the atomic bu

[Mesa-dev] [PATCH 09/25] glsl: allow AoA to be sized by initializer or constructor

2015-08-19 Thread Timothy Arceri
From Section 4.1.9 of the GLSL ES 3.10 spec: "Arrays are sized either at compile-time or at run-time. To size an array at compile-time, either the size must be specified within the brackets as above or must be inferred from the type of the initializer." --- src/glsl/ast.h | 21 +++--

[Mesa-dev] [PATCH 04/25] glsl: Add support for linking uniform arrays of arrays

2015-08-19 Thread Timothy Arceri
V2: Handle arrays of arrays in the same way structures are handled The ARB_arrays_of_arrays spec doesn't give very many details on how AoA uniforms are intended to be implemented. However in the ARB_program_interface_query spec there are details that show AoA are intended to be handled in a simila

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

2015-08-19 Thread Timothy Arceri
Signed-off-by: Timothy Arceri Reviewed-by: Ilia Mirkin --- src/glsl/link_varyings.cpp | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index f7a7b8c..0d343d6 100644 --- a/src/glsl/link_varyings.cpp +++ b/sr

[Mesa-dev] [PATCH 12/25] glsl: add AoA support for atmoic counters

2015-08-19 Thread Timothy Arceri
This marks all counters in an AoA as active. For AoA all but the innermost array are threated as separate counters/uniforms. The Nvidia binary also goes further and finds inactive counters in the AoA, in future we should do this too, however this gets things working for the time being. This chang

[Mesa-dev] [PATCH 14/25] nir: add atomic lowering support for AoA

2015-08-19 Thread Timothy Arceri
--- src/glsl/nir/nir_lower_atomics.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/glsl/nir/nir_lower_atomics.c b/src/glsl/nir/nir_lower_atomics.c index ce3615a..ea63474 100644 --- a/src/glsl/nir/nir_lower_atomics.c +++ b/src/glsl/nir/nir_lower_at

[Mesa-dev] [PATCH 10/25] glsl: remove dead code in a single pass

2015-08-19 Thread Timothy Arceri
Currently only one ir assignment is removed for each var in a single dead code optimisation pass. This means if a var has more than one assignment, then it requires all the glsl optimisations to be run again for each additional assignment to be removed. Another pass is also required to remove the v

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

2015-08-19 Thread Timothy Arceri
V2: move single dimensional array detection into a helper Signed-off-by: Timothy Arceri Reviewed-by: Samuel Iglesias Gonsálvez --- src/glsl/ast.h | 8 src/glsl/ast_to_hir.cpp | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/glsl/ast.h b/src/glsl/ast.

[Mesa-dev] [PATCH 03/25] glsl: clean-up link uniform code

2015-08-19 Thread Timothy Arceri
These changes are also needed to allow linking of struct and interface arrays of arrays. --- 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 254086d..42f75e9 100644 --- a/

[Mesa-dev] [PATCH 13/25] nir: wrapper for glsl_type arrays_of_arrays_size()

2015-08-19 Thread Timothy Arceri
Reviewed-by: Tapani Pälli --- src/glsl/nir/nir_types.cpp | 6 ++ src/glsl/nir/nir_types.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index 940c676..da7015b 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_type

[Mesa-dev] [PATCH 05/25] glsl: add support for initialising sampler AoA

2015-08-19 Thread Timothy Arceri
--- src/glsl/link_uniform_initializers.cpp | 68 -- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/src/glsl/link_uniform_initializers.cpp b/src/glsl/link_uniform_initializers.cpp index 0cc79d9..d6a6ab7 100644 --- a/src/glsl/link_uniform_initializer

[Mesa-dev] [PATCH 08/25] glsl: validate binding qualifier for AoA

2015-08-19 Thread Timothy Arceri
Reviewed-by: Tapani Pälli --- src/glsl/ast_to_hir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index ee5ff9d..54569a8 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -2114,7 +2114,7 @@ validate_bind

[Mesa-dev] [PATCH 18/25] glsl: disable interface block AoA

2015-08-19 Thread Timothy Arceri
Desktop GL supports interface block AoA however AMD and Nvidia dont support it in their drivers curently so we can get away with disabling it for now. --- src/glsl/ast_to_hir.cpp | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_t

[Mesa-dev] [PATCH 11/25] glsl: interleave constant propagation and folding

2015-08-19 Thread Timothy Arceri
The constant folding pass can take a long time to complete so rather than running throught the entire pass each time a new constant is propagated (and vice versa) interleave them. This change helps ES31-CTS.arrays_of_arrays.InteractionFunctionCalls1 go from around 2 min -> 23 sec. --- src/glsl/op

  1   2   >