Re: [Mesa-dev] [PATCH] osmesa: don't try to bundle osmesa.def SConscript

2015-04-01 Thread Emil Velikov
On 30 March 2015 at 10:11, Jose Fonseca wrote: > On 29/03/15 00:56, Emil Velikov wrote: >> >> Both of which were removed with commit 69db422218b(scons: Don't build >> osmesa.) >> >> Cc: Jose Fonseca >> Signed-off-by: Emil Velikov >> --- >> src/mesa/drivers/osmesa/Makefile.am | 2 -- >> 1 file

Re: [Mesa-dev] [PATCH 1/2] xmlpool: don't forget to ship the MOS

2015-04-01 Thread Emil Velikov
On 1 April 2015 at 00:30, Matt Turner wrote: > Thanks Emil. Both are > > Reviewed-by: Matt Turner Great, thanks. Will you be able to take a look at the "configure.ac: error out if python/mako is not found when required" [1]. Afaics it's the final piece which should allow distributions to build m

Re: [Mesa-dev] [PATCH] gallivm: Fix build against LLVM 3.7 SVN r233648

2015-04-01 Thread Roland Scheidegger
Am 01.04.2015 um 04:57 schrieb Michel Dänzer: > On 01.04.2015 00:36, Roland Scheidegger wrote: >> Am 31.03.2015 um 08:33 schrieb Michel Dänzer: >>> From: Michel Dänzer >>> >>> Signed-off-by: Michel Dänzer >>> --- >>> src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 5 + >>> 1 file changed, 5

Re: [Mesa-dev] [PATCH 4/4] RFC: nir: add lowering for idiv/udiv/umod

2015-04-01 Thread Roland Scheidegger
Am 01.04.2015 um 03:44 schrieb Rob Clark: > On Tue, Mar 31, 2015 at 9:03 PM, Roland Scheidegger > wrote: >> Am 01.04.2015 um 00:57 schrieb Rob Clark: >>> From: Rob Clark >>> >>> Based on the algo from NV50LegalizeSSA::handleDIV() and handleMOD(). >>> See also trans_idiv() in freedreno/ir3/ir3_co

[Mesa-dev] [PATCH v2 00/24] ARB_program_interface_query

2015-04-01 Thread Tapani Pälli
Hello; Here's the v2 implementation of ARB_program_interface_query extension. I have addressed errors found by Ilia Mirkin in his review and there are several small fixes here and there for bugs revealed with Martin's Piglit tests. Patches add a resource list as part of gl_shader_program which

[Mesa-dev] [PATCH v2 01/24] linker: fix varying linking if SSO program has only gs and fs

2015-04-01 Thread Tapani Pälli
Previously linker did not take in to account case where one would have only gs and fs (with SSO), patch adds the case by refactoring code around assign_varying_locations. This makes sure locations for gs get populated correctly. This was found with some of the SSO subtests of Martin's upcoming Get

[Mesa-dev] [PATCH v2 05/24] mesa: glGetProgramResourceIndex

2015-04-01 Thread Tapani Pälli
Patch adds required helper functions to shaderapi.h and the actual implementation. v2: code cleanup (Ilia Mirkin) corresponding Piglit test: arb_program_interface_query-resource-index Signed-off-by: Tapani Pälli --- src/mesa/main/program_resource.c | 85 -

[Mesa-dev] [PATCH v2 07/24] mesa: glGetProgramResourceLocation

2015-04-01 Thread Tapani Pälli
Patch adds required helper functions to shaderapi.h and the actual implementation. corresponding Piglit test: arb_program_interface_query-resource-location The added functionality can be tested by tests for following functions that are refactored by later patches: GetAttribLocation GetU

[Mesa-dev] [PATCH v2 08/24] mesa: glGetProgramResourceLocationIndex

2015-04-01 Thread Tapani Pälli
Patch adds required helper functions to shaderapi.h and the actual implementation. The added functionality can be tested by tests for following functions that are refactored by later patches: GetFragDataIndex v2: return -1 if output not referenced by fragment stage (Ilia Mirkin) Signed-o

[Mesa-dev] [PATCH v2 06/24] mesa: glGetProgramResourceName

2015-04-01 Thread Tapani Pälli
Patch adds required helper functions to shaderapi.h and the actual implementation. Name generation copied from '_mesa_get_uniform_name' which can be removed later by refactoring functions to use resource list. The added functionality can be tested by tests for following functions that are refacto

[Mesa-dev] [PATCH v2 11/24] mesa: refactor GetActiveAttrib

2015-04-01 Thread Tapani Pälli
Instead of iterating IR, retrieve required information through the new program resource functions. Signed-off-by: Tapani Pälli Reviewed-by: Ilia Mirkin --- src/mesa/main/shader_query.cpp | 58 -- 1 file changed, 27 insertions(+), 31 deletions(-) diff --g

[Mesa-dev] [PATCH v2 03/24] mesa/glsl: build list of program resources during linking

2015-04-01 Thread Tapani Pälli
Patch adds ProgramResourceList to gl_shader_program structure. List contains references to active program resources and is constructed during linking phase. This list will be used by follow-up patches to implement hooks for GL_ARB_program_interface_query. It can be also used to implement any of th

[Mesa-dev] [PATCH v2 09/24] mesa: implementation of glGetProgramResourceiv

2015-04-01 Thread Tapani Pälli
Patch adds required helper functions to shaderapi.h and the actual implementation. The property query functionality can be tested with tests for following functions that are refactored by later patches: GetActiveAtomicCounterBufferiv GetActiveUniformBlockiv GetActiveUniformsiv v2: code

[Mesa-dev] [PATCH v2 10/24] mesa: enable GL_ARB_program_interface_query extension

2015-04-01 Thread Tapani Pälli
(and mark it as DONE in docs/GL3.txt + 10.6.0 relnotes) Signed-off-by: Tapani Pälli --- docs/GL3.txt | 4 ++-- docs/relnotes/10.6.0.html | 1 + src/mesa/main/extensions.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 361426

[Mesa-dev] [PATCH v2 21/24] mesa: refactor GetActiveUniformBlockName

2015-04-01 Thread Tapani Pälli
Use _mesa_get_program_resource_name to get name. Signed-off-by: Tapani Pälli --- src/mesa/main/uniforms.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 078e433..8872344 100644 --- a/src/mesa/main/

[Mesa-dev] [PATCH v2 20/24] mesa: remove unused _mesa_get_uniform_name

2015-04-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/mesa/main/uniforms.c | 39 --- src/mesa/main/uniforms.h | 5 - 2 files changed, 44 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 69f8a3f..078e433 100644 --- a/src/mesa/main/uniforms

[Mesa-dev] [PATCH v2 19/24] mesa: refactor GetActiveUniformName

2015-04-01 Thread Tapani Pälli
Use _mesa_get_program_resource_name to get name. Signed-off-by: Tapani Pälli --- src/mesa/main/uniforms.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index dc9b5a0..69f8a3f 100644 --- a/src/mesa/main/uniforms

[Mesa-dev] [PATCH v2 04/24] mesa: glGetProgramInterfaceiv

2015-04-01 Thread Tapani Pälli
Patch adds required helper functions to shaderapi.h and the actual implementation. v2: code cleanup (Ilia Mirkin) fix array size fo xfb varyings validate programInterface and throw error corresponding Piglit test: arb_program_interface_query-getprograminterfaceiv Signed-off-by: Tapani

[Mesa-dev] [PATCH v2 02/24] glapi: add GL_ARB_program_interface_query skeleton

2015-04-01 Thread Tapani Pälli
v2: update dispatch_sanity test (Jason Ekstrand) + small code cleanups v3: xml and Makefile fixes (Ilia Mirkin, Matt Turner) Signed-off-by: Tapani Pälli Reviewed-by: Matt Turner --- src/mapi/glapi/gen/ARB_program_interface_query.xml | 109 + src/mapi/glapi/gen/gl_API.xm

[Mesa-dev] [PATCH v2 17/24] mesa: refactor GetTransformFeedbackVarying

2015-04-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/mesa/main/transformfeedback.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 0a6d00c..103011c 100644 --- a/src/mesa/main/transformfeedback.c +

[Mesa-dev] [PATCH v2 15/24] mesa: mesa_bufferiv utility function for buffer objects

2015-04-01 Thread Tapani Pälli
Patch adds new function 'mesa_bufferiv' and refactors existing GetActiveUniformBlockiv and GetActiveAtomicCounterBufferiv to use it. corresponding Piglit tests: arb_uniform_buffer_object* arb_shader_atomic_counters* (Many tests hit the corresponding queries.) Signed-off-by: Tapani Pälli -

[Mesa-dev] [PATCH v2 14/24] mesa: refactor GetFragDataIndex

2015-04-01 Thread Tapani Pälli
Use _mesa_program_resource_location_index to fetch index. Signed-off-by: Tapani Pälli Reviewed-by: Ilia Mirkin --- src/mesa/main/shader_query.cpp | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_

[Mesa-dev] [PATCH v2 13/24] mesa: refactor GetFragDataLocation

2015-04-01 Thread Tapani Pälli
Use program_resource_location to fetch location. Signed-off-by: Tapani Pälli --- src/mesa/main/shader_query.cpp | 38 -- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index cbdcc

[Mesa-dev] [PATCH v2 18/24] mesa: refactor GetActiveUniform

2015-04-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/mesa/main/uniform_query.cpp | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 9611667..4e77b32 100644 --- a/src/mesa/main/uniform_query

[Mesa-dev] [PATCH v2 16/24] mesa: refactor GetActiveUniformsiv, use _mesa_program_resource_prop

2015-04-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli Reviewed-by: Ilia Mirkin --- src/mesa/main/uniform_query.cpp | 109 ++-- 1 file changed, 39 insertions(+), 70 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 2ab5528..9611667 100644

[Mesa-dev] [PATCH v2 12/24] mesa: refactor GetAttribLocation

2015-04-01 Thread Tapani Pälli
Use program_resource_location to fetch location. Signed-off-by: Tapani Pälli --- src/mesa/main/shader_query.cpp | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 0

[Mesa-dev] [PATCH v2 23/24] mesa: refactor GetUniformIndices

2015-04-01 Thread Tapani Pälli
Use _mesa_program_resource_index to get indices. Signed-off-by: Tapani Pälli --- src/mesa/main/uniforms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 0c16641..f4de1df 100644 --- a/src/mesa/main/uniforms.c +++

[Mesa-dev] [PATCH v2 22/24] mesa: refactor GetUniformLocation

2015-04-01 Thread Tapani Pälli
Use _mesa_program_resource_location to get location. Signed-off-by: Tapani Pälli --- src/mesa/main/uniforms.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 8872344..0c16641 100644 --- a/src/mesa/m

[Mesa-dev] [PATCH v2 24/24] mesa: refactor GetUniformBlockIndex

2015-04-01 Thread Tapani Pälli
Use _mesa_program_resource_index to get index. Signed-off-by: Tapani Pälli --- src/mesa/main/uniforms.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index f4de1df..5548d1d 100644 --- a/src/mesa/main/uniforms.

Re: [Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select

2015-04-01 Thread Rob Clark
On Tue, Mar 31, 2015 at 7:08 PM, Matt Turner wrote: > On Tue, Mar 31, 2015 at 3:57 PM, Rob Clark wrote: >> From: Rob Clark >> >> Freedreno and vc4 want this behavior for the time being (until we have >> real flow control). Even after that, we probably want to turn this into >> some sort of driv

Re: [Mesa-dev] [PATCH 4/4] RFC: nir: add lowering for idiv/udiv/umod

2015-04-01 Thread Ilia Mirkin
On Wed, Apr 1, 2015 at 7:09 AM, Roland Scheidegger wrote: > Am 01.04.2015 um 03:44 schrieb Rob Clark: >> On Tue, Mar 31, 2015 at 9:03 PM, Roland Scheidegger >> wrote: >>> Am 01.04.2015 um 00:57 schrieb Rob Clark: From: Rob Clark Based on the algo from NV50LegalizeSSA::handleDIV()

Re: [Mesa-dev] [PATCH] [RFC] egl: propose simple EGL_MESA_image_dma_buf_export v2.4

2015-04-01 Thread Marc-André Lureau
Hi On Mon, Mar 30, 2015 at 8:12 AM, Dave Airlie wrote: > From: Dave Airlie > > At the moment to get an EGL image to a dma-buf file descriptor, > you have to use EGL_MESA_drm_image, and then use libdrm to > convert this to a file descriptor. > > This extension just provides an API modelled on EG

[Mesa-dev] [PATCH] configure: nuke --with-max-{width,height}

2015-04-01 Thread Emil Velikov
Unused as of commit 630ab0d27ba(mesa: remove last of MAX_WIDTH, MAX_HEIGHT). Update all the remaining references to the defines. XXX: Does the updated comments in xlib-libGL make sense, or should one consider SWRAST_MAX_WIDTH ? Cc: Brian Paul Signed-off-by: Emil Velikov --- configure.ac

Re: [Mesa-dev] [PATCH] configure: nuke --with-max-{width,height}

2015-04-01 Thread Brian Paul
On 04/01/2015 08:51 AM, Emil Velikov wrote: Unused as of commit 630ab0d27ba(mesa: remove last of MAX_WIDTH, MAX_HEIGHT). Update all the remaining references to the defines. XXX: Does the updated comments in xlib-libGL make sense, or should one consider SWRAST_MAX_WIDTH ? Cc: Brian Paul Signed-

Re: [Mesa-dev] [PATCH 4/4] RFC: nir: add lowering for idiv/udiv/umod

2015-04-01 Thread Roland Scheidegger
Am 01.04.2015 um 15:50 schrieb Ilia Mirkin: > On Wed, Apr 1, 2015 at 7:09 AM, Roland Scheidegger wrote: >> Am 01.04.2015 um 03:44 schrieb Rob Clark: >>> On Tue, Mar 31, 2015 at 9:03 PM, Roland Scheidegger >>> wrote: Am 01.04.2015 um 00:57 schrieb Rob Clark: > From: Rob Clark >

Re: [Mesa-dev] [PATCH] i965: Give the FS and VEC4 visitors more descriptive names.

2015-04-01 Thread Jordan Justen
On 2015-04-01 02:43:38, Francisco Jerez wrote: > It has always struck me as odd that these objects are both called > visitors even though visiting only makes for a tiny fraction of their > job. Other no less important tasks seem misrepresented, like > optimizing, analyzing, emitting and pretty-pri

[Mesa-dev] [PATCH] nir: add support for structured COME FROM

2015-04-01 Thread Connor Abbott
Unfortunately, we can't support unstructured COME FROM yet, since we can't structurize arbitrary control flow graphs. Also TODO is adding support for threading by having multiple come_from's point to the same unconditional branch, as well as various other INTERCAL features. Signed-off-by: Connor A

[Mesa-dev] [PATCH] nir: add support for structured COME FROM

2015-04-01 Thread Connor Abbott
Unfortunately, we can't support unstructured COME FROM yet, since we can't structurize arbitrary control flow graphs. Also TODO is adding support for threading by having multiple come_from's point to the same unconditional branch, as well as various other INTERCAL features. Signed-off-by: Connor A

[Mesa-dev] [PATCH 3/5] tnl: remove unneeded #include of colormac.h

2015-04-01 Thread Brian Paul
--- src/mesa/tnl/t_rasterpos.c | 1 - src/mesa/tnl/t_vb_fog.c | 1 - src/mesa/tnl/t_vb_light.c | 1 - src/mesa/tnl/t_vb_normals.c | 1 - src/mesa/tnl/t_vb_program.c | 1 - src/mesa/tnl/t_vb_texgen.c | 1 - src/mesa/tnl/t_vb_texmat.c | 1 - src/mesa/tnl/t_vb_ver

[Mesa-dev] [PATCH 2/5] swrast: remove unneeded #include of colormac.h

2015-04-01 Thread Brian Paul
--- src/mesa/swrast/s_aatriangle.c | 1 - src/mesa/swrast/s_alpha.c | 1 - src/mesa/swrast/s_atifragshader.c | 1 - src/mesa/swrast/s_context.c | 1 - src/mesa/swrast/s_copypix.c | 1 - src/mesa/swrast/s_feedback.c| 1 - src/mesa/swrast/s_fog.c

[Mesa-dev] [PATCH 4/5] mesa: remove unneeded #include of colormac.h

2015-04-01 Thread Brian Paul
--- src/mesa/main/attrib.c | 1 - src/mesa/main/debug.c| 2 +- src/mesa/main/pixel.c| 1 - src/mesa/main/pixeltransfer.c| 2 +- src/mesa/main/samplerobj.h | 3 +++ src/mesa/main/texcompress.c | 1 - src/mesa/main/texcompress_fxt1.c | 1 - src/mesa/m

[Mesa-dev] [PATCH 5/5] mesa: don't include colormac.h in format code

2015-04-01 Thread Brian Paul
--- src/mesa/main/format_pack.py | 1 - src/mesa/main/format_unpack.h | 2 ++ src/mesa/main/format_unpack.py | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/format_pack.py b/src/mesa/main/format_pack.py index f141da8..2f43a30 100644 --- a/src/mesa/main/format

[Mesa-dev] [PATCH 1/5] mesa: remove unused macros from colormac.h

2015-04-01 Thread Brian Paul
--- src/mesa/main/colormac.h | 45 - 1 file changed, 45 deletions(-) diff --git a/src/mesa/main/colormac.h b/src/mesa/main/colormac.h index bc69f46..33ca5af 100644 --- a/src/mesa/main/colormac.h +++ b/src/mesa/main/colormac.h @@ -52,70 +52,25 @@ _mesa_u

[Mesa-dev] [PATCH] configure.ac: remove deprecated --with-libclc-path

2015-04-01 Thread Emil Velikov
The option was deprecated with commit 959e83d6507(clover: Adapt libclc's INCLUDEDIR and LIBEXECDIR to make use of the new introduced libclc.pc.) back in 2012 with mesa 9.2. Cc: Tom Stellard Signed-off-by: Emil Velikov --- configure.ac | 13 - 1 file changed, 13 deletions(-) diff --

Re: [Mesa-dev] [PATCH 3/3] glsl: Reassociate multiplication of mat*mat*vec.

2015-04-01 Thread Jason Ekstrand
On Mon, Mar 30, 2015 at 11:54 AM, Matt Turner wrote: > On Sat, Mar 28, 2015 at 11:03 AM, Jason Ekstrand wrote: >> On Fri, Mar 27, 2015 at 9:22 PM, Matt Turner wrote: >>> The typical case of mat4*mat4*vec4 is 80 scalar multiplications, but >>> mat4*(mat4*vec4) is only 32. >>> >>> On HSW (with vec

Re: [Mesa-dev] [PATCH] nir: add support for structured COME FROM

2015-04-01 Thread Francisco Jerez
Connor Abbott writes: > Unfortunately, we can't support unstructured COME FROM yet, since we > can't structurize arbitrary control flow graphs. Also TODO is adding > support for threading by having multiple come_from's point to the same > unconditional branch, as well as various other INTERCAL fe

Re: [Mesa-dev] [PATCH 05/23] main: Add entry point for CreateBuffers.

2015-04-01 Thread Laura Ekstrand
Yes, you are right. Thanks for the catch. I will send a fix patch to the mailing list. Laura On Mon, Mar 30, 2015 at 7:10 PM, Ilia Mirkin wrote: > On Wed, Feb 11, 2015 at 9:05 PM, Laura Ekstrand > wrote: > > for (i = 0; i < n; i++) { > > - _mesa_HashInsert(ctx->Shared->BufferObjects

Re: [Mesa-dev] [PATCH 1/5] mesa: remove unused macros from colormac.h

2015-04-01 Thread Matt Turner
Feels silly giving R-b, so the series is (which I think is probably sufficient for you to push) Acked-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/2] i965: Create a has_side_effects for fs_inst

2015-04-01 Thread Ben Widawsky
When an instruction has a side effect, it impacts the available options when reordering an instruction. As the EOT flag is an implied write to the render target in the FS, it can be considered a side effect. This patch shouldn't actually have any impact on the current code since the EOT flag impli

[Mesa-dev] [PATCH 2/2] i965/fs: Combine tex/fb_write operations (opt)

2015-04-01 Thread Ben Widawsky
Certain platforms support the ability to sample from a texture, and write it out to the file RT - thus saving a costly send instructions (note that this is a potnential win if one wanted to backport to a tag that didn't have the patch from Topi which removed excess MOVs from LOAD_PAYLOAD - 97caf5fa

Re: [Mesa-dev] [PATCH 2/2] configure.ac: error out if python/mako is not found when required

2015-04-01 Thread Matt Turner
On Mon, Mar 23, 2015 at 10:49 AM, Emil Velikov wrote: > In case of using a distribution tarball (or a dirty git tree) one can > have the generated sources locally. Make configure.ac error out > otherwise, to alert that about the unmet requirement(s) of python/mako. > > Cc: Matt Turner > Suggested

Re: [Mesa-dev] [PATCH] configure: nuke --with-max-{width,height}

2015-04-01 Thread Marek Olšák
Note that gl_constants can be calculated without gl_context. It's how the GL versions are calculated for GLX_MESA_query_renderer. There's also pipe_screen that can be used to get the equivalent of MaxRenderbufferSize. Marek On Wed, Apr 1, 2015 at 5:07 PM, Brian Paul wrote: > On 04/01/2015 08:51

Re: [Mesa-dev] [PATCH 1/5] mesa: remove unused macros from colormac.h

2015-04-01 Thread Mark Janes
Series Reviewed-by: Mark Janes Brian Paul writes: > --- > src/mesa/main/colormac.h | 45 - > 1 file changed, 45 deletions(-) > > diff --git a/src/mesa/main/colormac.h b/src/mesa/main/colormac.h > index bc69f46..33ca5af 100644 > --- a/src/mesa/main/co

Re: [Mesa-dev] [PATCH 1/5] mesa: remove unused macros from colormac.h

2015-04-01 Thread Brian Paul
Thanks. BTW, there's more #includes of colormac.h in the DRI drivers that could probably be removed, but I don't have time to do that and test them right now. -Brian On 04/01/2015 11:51 AM, Mark Janes wrote: Series Reviewed-by: Mark Janes Brian Paul writes: --- src/mesa/main/colormac.

Re: [Mesa-dev] [PATCH 4/4] RFC: nir: add lowering for idiv/udiv/umod

2015-04-01 Thread Ilia Mirkin
On Wed, Apr 1, 2015 at 11:39 AM, Roland Scheidegger wrote: > Am 01.04.2015 um 15:50 schrieb Ilia Mirkin: >> On Wed, Apr 1, 2015 at 7:09 AM, Roland Scheidegger >> wrote: >>> Am 01.04.2015 um 03:44 schrieb Rob Clark: On Tue, Mar 31, 2015 at 9:03 PM, Roland Scheidegger wrote: > Am 0

Re: [Mesa-dev] [PATCH 4/4] RFC: nir: add lowering for idiv/udiv/umod

2015-04-01 Thread Matt Turner
On Tue, Mar 31, 2015 at 6:44 PM, Rob Clark wrote: > On Tue, Mar 31, 2015 at 9:03 PM, Roland Scheidegger > wrote: >> So if this is not enough precision, maybe should state how large the >> error can be? >> > > tbh, if I knew what the error for this approach was, I would have > included it. I'm n

Re: [Mesa-dev] [PATCH] configure: nuke --with-max-{width,height}

2015-04-01 Thread Emil Velikov
On 01/04/15 15:07, Brian Paul wrote: > On 04/01/2015 08:51 AM, Emil Velikov wrote: >> Unused as of commit 630ab0d27ba(mesa: remove last of MAX_WIDTH, >> MAX_HEIGHT). Update all the remaining references to the defines. >> >> XXX: Does the updated comments in xlib-libGL make sense, or should one >> c

[Mesa-dev] [PATCH] main: create_buffers unlocks mutex when throwing OUT_OF_MEMORY.

2015-04-01 Thread Laura Ekstrand
Ilia Mirkin found that I had forgotten to free the mutex in the error case. --- src/mesa/main/bufferobj.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index b67e1c4..c7ef90b 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/buff

Re: [Mesa-dev] [PATCH 2/2] configure.ac: error out if python/mako is not found when required

2015-04-01 Thread Emil Velikov
On 01/04/15 17:44, Matt Turner wrote: > On Mon, Mar 23, 2015 at 10:49 AM, Emil Velikov > wrote: >> In case of using a distribution tarball (or a dirty git tree) one can >> have the generated sources locally. Make configure.ac error out >> otherwise, to alert that about the unmet requirement(s) of

Re: [Mesa-dev] Mesa (master): gallium: Add tgsi_to_nir to get a nir_shader for a TGSI shader.

2015-04-01 Thread Brian Paul
On 04/01/2015 12:02 PM, Eric Anholt wrote: Module: Mesa Branch: master Commit: 783ad697d25e754ab719ab6c715969c35dbe867b URL: https://urldefense.proofpoint.com/v2/url?u=http-3A__cgit.freedesktop.org_mesa_mesa_commit_-3Fid-3D783ad697d25e754ab719ab6c715969c35dbe867b&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67L

Re: [Mesa-dev] [PATCH 4/9] nir: Move the compare-with-zero optimizations to the late section

2015-04-01 Thread Jason Ekstrand
On Tue, Mar 31, 2015 at 11:04 AM, Matt Turner wrote: > On Mon, Mar 23, 2015 at 8:43 PM, Jason Ekstrand wrote: >> On Mon, Mar 23, 2015 at 8:34 PM, Matt Turner wrote: >>> On Mon, Mar 23, 2015 at 8:13 PM, Jason Ekstrand >>> wrote: total instructions in shared programs: 4422307 -> 4422363 (0.

Re: [Mesa-dev] Mesa (master): gallium: Add tgsi_to_nir to get a nir_shader for a TGSI shader.

2015-04-01 Thread Brian Paul
On 04/01/2015 12:49 PM, Brian Paul wrote: On 04/01/2015 12:02 PM, Eric Anholt wrote: Module: Mesa Branch: master Commit: 783ad697d25e754ab719ab6c715969c35dbe867b URL: https://urldefense.proofpoint.com/v2/url?u=http-3A__cgit.freedesktop.org_mesa_mesa_commit_-3Fid-3D783ad697d25e754ab719ab6c715969c

Re: [Mesa-dev] [PATCH] main: create_buffers unlocks mutex when throwing OUT_OF_MEMORY.

2015-04-01 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin An alternative, btw, is to do a goto to the existing unlock. This would have the advantage of keeping a single unlock, and a single return path in the function. Your call, you get the R-b either way. -ilia On Wed, Apr 1, 2015 at 2:23 PM, Laura Ekstrand wrote: > Ilia

Re: [Mesa-dev] Mesa (master): gallium: Add tgsi_to_nir to get a nir_shader for a TGSI shader.

2015-04-01 Thread Connor Abbott
On Wed, Apr 1, 2015 at 2:53 PM, Brian Paul wrote: > On 04/01/2015 12:49 PM, Brian Paul wrote: >> >> On 04/01/2015 12:02 PM, Eric Anholt wrote: >>> >>> Module: Mesa >>> Branch: master >>> Commit: 783ad697d25e754ab719ab6c715969c35dbe867b >>> URL: >>> >>> https://urldefense.proofpoint.com/v2/url?u=ht

Re: [Mesa-dev] [PATCH] main: create_buffers unlocks mutex when throwing OUT_OF_MEMORY.

2015-04-01 Thread Laura Ekstrand
Hmm, I don't trust myself with gotos yet because I still don't have much experience writing them. So maybe I'll use them for a different patch later. On Wed, Apr 1, 2015 at 11:56 AM, Ilia Mirkin wrote: > Reviewed-by: Ilia Mirkin > > An alternative, btw, is to do a goto to the existing unlock.

[Mesa-dev] [PATCH v2] configure.ac: error out if python/mako is not found when required

2015-04-01 Thread Emil Velikov
In case of using a distribution tarball (or a dirty git tree) one can have the generated sources locally. Make configure.ac error out otherwise, to alert that about the unmet requirement(s) of python/mako. v2: Check only for a single file for each dependency. Cc: Matt Turner Suggested-by: Matt T

[Mesa-dev] [PATCH] gallium: sihp tgsi_to_nir.h in the tarball

2015-04-01 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/auxiliary/Makefile.sources | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/Makefile.sources b/src/gallium/auxiliary/Makefile.sources index bd8e949..ec7547c 100644 --- a/src/gallium/auxiliary/Makefile.sources

Re: [Mesa-dev] Mesa (master): gallium: Add tgsi_to_nir to get a nir_shader for a TGSI shader.

2015-04-01 Thread Jose Fonseca
On 01/04/15 19:49, Brian Paul wrote: On 04/01/2015 12:02 PM, Eric Anholt wrote: Module: Mesa Branch: master Commit: 783ad697d25e754ab719ab6c715969c35dbe867b URL: https://urldefense.proofpoint.com/v2/url?u=http-3A__cgit.freedesktop.org_mesa_mesa_commit_-3Fid-3D783ad697d25e754ab719ab6c715969c35dbe

Re: [Mesa-dev] [PATCH v2] i965/skl: Fix the order of the arguments for the LD sampler message

2015-04-01 Thread Kenneth Graunke
On Monday, March 09, 2015 05:17:56 PM Neil Roberts wrote: > In Skylake the order of the arguments for sample messages with the LD > type are u, v, lod, r whereas previously they were u, lod, v, r. > > This fixes 144 Piglit tests including ones that directly use > texelFetch and also some using the

Re: [Mesa-dev] [PATCH] gallium: sihp tgsi_to_nir.h in the tarball

2015-04-01 Thread Matt Turner
Feel free to just push changes like this. Acked-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2] configure.ac: error out if python/mako is not found when required

2015-04-01 Thread Matt Turner
On Wed, Apr 1, 2015 at 12:04 PM, Emil Velikov wrote: > In case of using a distribution tarball (or a dirty git tree) one can > have the generated sources locally. Make configure.ac error out > otherwise, to alert that about the unmet requirement(s) of python/mako. > > v2: Check only for a single f

Re: [Mesa-dev] [PATCH 4/4] RFC: nir: add lowering for idiv/udiv/umod

2015-04-01 Thread Roland Scheidegger
Am 01.04.2015 um 20:11 schrieb Matt Turner: > On Tue, Mar 31, 2015 at 6:44 PM, Rob Clark wrote: >> On Tue, Mar 31, 2015 at 9:03 PM, Roland Scheidegger >> wrote: >>> So if this is not enough precision, maybe should state how large the >>> error can be? >>> >> >> tbh, if I knew what the error for

Re: [Mesa-dev] Mesa (master): gallium: Add tgsi_to_nir to get a nir_shader for a TGSI shader.

2015-04-01 Thread Brian Paul
On 04/01/2015 01:15 PM, Jose Fonseca wrote: On 01/04/15 19:49, Brian Paul wrote: On 04/01/2015 12:02 PM, Eric Anholt wrote: Module: Mesa Branch: master Commit: 783ad697d25e754ab719ab6c715969c35dbe867b URL: https://urldefense.proofpoint.com/v2/url?u=http-3A__cgit.freedesktop.org_mesa_mesa_commit

Re: [Mesa-dev] [PATCH] configure: nuke --with-max-{width,height}

2015-04-01 Thread Brian Paul
On 04/01/2015 12:21 PM, Emil Velikov wrote: On 01/04/15 15:07, Brian Paul wrote: On 04/01/2015 08:51 AM, Emil Velikov wrote: Unused as of commit 630ab0d27ba(mesa: remove last of MAX_WIDTH, MAX_HEIGHT). Update all the remaining references to the defines. XXX: Does the updated comments in xlib-l

Re: [Mesa-dev] [PATCH] gallium: sihp tgsi_to_nir.h in the tarball

2015-04-01 Thread Emil Velikov
On 01/04/15 19:21, Matt Turner wrote: > Feel free to just push changes like this. > > Acked-by: Matt Turner > Will do. Thanks. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Mesa (master): gallium: Add tgsi_to_nir to get a nir_shader for a TGSI shader.

2015-04-01 Thread Jose Fonseca
On 01/04/15 20:25, Brian Paul wrote: On 04/01/2015 01:15 PM, Jose Fonseca wrote: On 01/04/15 19:49, Brian Paul wrote: On 04/01/2015 12:02 PM, Eric Anholt wrote: Module: Mesa Branch: master Commit: 783ad697d25e754ab719ab6c715969c35dbe867b URL: https://urldefense.proofpoint.com/v2/url?u=http-3A_

Re: [Mesa-dev] [PATCH 1/2] i965: Create a has_side_effects for fs_inst

2015-04-01 Thread Kenneth Graunke
On Wednesday, April 01, 2015 10:39:16 AM Ben Widawsky wrote: > When an instruction has a side effect, it impacts the available options when > reordering an instruction. As the EOT flag is an implied write to the render > target in the FS, it can be considered a side effect. > > This patch shouldn'

Re: [Mesa-dev] [PATCH 2/2] i965/fs: Combine tex/fb_write operations (opt)

2015-04-01 Thread Kenneth Graunke
On Wednesday, April 01, 2015 10:39:17 AM Ben Widawsky wrote: > Certain platforms support the ability to sample from a texture, and write it > out > to the file RT - thus saving a costly send instructions (note that this is a > potnential win if one wanted to backport to a tag that didn't have the

Re: [Mesa-dev] [PATCH 1/2] i965: Create a has_side_effects for fs_inst

2015-04-01 Thread Matt Turner
On Wed, Apr 1, 2015 at 10:39 AM, Ben Widawsky wrote: > When an instruction has a side effect, it impacts the available options when > reordering an instruction. As the EOT flag is an implied write to the render > target in the FS, it can be considered a side effect. > > This patch shouldn't actual

[Mesa-dev] [PATCH] mesa: add ARB_depth_buffer_float to ES3.0 required extension list

2015-04-01 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/mesa/main/version.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 8e0c3ef..7c6d994 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -382,6 +382,7 @@ compute_version_es2(const stru

Re: [Mesa-dev] [PATCH] mesa: add ARB_depth_buffer_float to ES3.0 required extension list

2015-04-01 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] glsl: check for forced_language_version in is_version()

2015-04-01 Thread Brian Paul
This is a follow-on fix from the earlier "glsl: allow ForceGLSLVersion to override #version directives" change. Since we're not changing the language_version field, we have to check forced_language_version here. --- src/glsl/glsl_parser_extras.h | 4 +++- 1 file changed, 3 insertions(+), 1 deleti

Re: [Mesa-dev] Mesa (master): nir/print: Don't print extra swizzzle components

2015-04-01 Thread Eric Anholt
Jason Ekstrand writes: > Module: Mesa > Branch: master > Commit: 793a94d6b5fc589ca8d7475347def4e222cd3d7c > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=793a94d6b5fc589ca8d7475347def4e222cd3d7c > > Author: Jason Ekstrand > Date: Mon Mar 23 18:20:21 2015 -0700 > > nir/print: Don'

Re: [Mesa-dev] Mesa (master): nir/print: Don't print extra swizzzle components

2015-04-01 Thread Connor Abbott
On Wed, Apr 1, 2015 at 4:44 PM, Eric Anholt wrote: > Jason Ekstrand writes: > >> Module: Mesa >> Branch: master >> Commit: 793a94d6b5fc589ca8d7475347def4e222cd3d7c >> URL: >> http://cgit.freedesktop.org/mesa/mesa/commit/?id=793a94d6b5fc589ca8d7475347def4e222cd3d7c >> >> Author: Jason Ekstrand

Re: [Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select

2015-04-01 Thread Eric Anholt
Rob Clark writes: > From: Rob Clark > > Freedreno and vc4 want this behavior for the time being (until we have > real flow control). Even after that, we probably want to turn this into > some sort of driver tunable threshold, since for at least some hardware, > reasonably large if/else is best

[Mesa-dev] [Bug 86326] clEnqueueNDRangeKernel global_work_offset ignored

2015-04-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86326 --- Comment #12 from Tom Stellard --- (In reply to Tom Stellard from comment #11) > Are these these same patches you sent to the mailing list? Do you have any interest in fixing up these patches? If not, I may give it a try. -- You are receiv

[Mesa-dev] [PATCH 1/4] nir: Add an interface for the builder to insert instructions before.

2015-04-01 Thread Eric Anholt
So far we'd only used nir_builder to build brand new programs. But if we're doing modifications to instructions (like in a lowering pass), then we want to generate new stuff before the instruction we're modifying. --- src/glsl/nir/nir_builder.h | 27 +++ 1 file changed, 23

[Mesa-dev] [PATCH 3/4] nir: Add a lowering pass for texture projectors.

2015-04-01 Thread Eric Anholt
Not much hardware wants them these days, and it might give us a chance to do CSE or algebraic at the NIR level. --- I wrote this originally for vc4, but I'm not sure I'm going to turn it on -- I'm using a non-Newton-Raphson RCP in my TXP handling right now, and if I do this pass then I get the N-R

[Mesa-dev] [PATCH 4/4] i965: Use the tex projector lowering pass instead of hand-rolling it.

2015-04-01 Thread Eric Anholt
This only impacts the ARB_fp path. We can't quite disable the GLSL-level lowering pass, because it needs to apply before brw_do_lower_unnormalized_offset(). --- Note: I haven't fully piglited this. It sounds like there are nice automated systems for regression testing now. src/mesa/drivers/dri/

[Mesa-dev] [PATCH 2/4] nir: Add an interface to turn a nir_src into a nir_ssa_def.

2015-04-01 Thread Eric Anholt
We use nir_ssa_defs for nir_builder args, so this takes a nir_src and makes one so it can be passed in. --- src/glsl/nir/nir_builder.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/glsl/nir/nir_builder.h b/src/glsl/nir/nir_builder.h index ecbdbe3..587d014 100644 ---

Re: [Mesa-dev] [PATCH 2/4] nir: fix typo for f2b description

2015-04-01 Thread Jason Ekstrand
On Tue, Mar 31, 2015 at 4:10 PM, Ilia Mirkin wrote: > On Tue, Mar 31, 2015 at 6:57 PM, Rob Clark wrote: >> From: Rob Clark >> >> Signed-off-by: Rob Clark >> --- >> src/glsl/nir/nir_opcodes.py | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/src/glsl/nir/nir_opcod

Re: [Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select

2015-04-01 Thread Jason Ekstrand
On Tue, Mar 31, 2015 at 3:57 PM, Rob Clark wrote: > From: Rob Clark > > Freedreno and vc4 want this behavior for the time being (until we have > real flow control). Even after that, we probably want to turn this into > some sort of driver tunable threshold, since for at least some hardware, > re

Re: [Mesa-dev] Mesa (master): nir/print: Don't print extra swizzzle components

2015-04-01 Thread Jason Ekstrand
On Wed, Apr 1, 2015 at 1:52 PM, Connor Abbott wrote: > On Wed, Apr 1, 2015 at 4:44 PM, Eric Anholt wrote: >> Jason Ekstrand writes: >> >>> Module: Mesa >>> Branch: master >>> Commit: 793a94d6b5fc589ca8d7475347def4e222cd3d7c >>> URL: >>> http://cgit.freedesktop.org/mesa/mesa/commit/?id=793a94

Re: [Mesa-dev] [PATCH 2/4] nir: fix typo for f2b description

2015-04-01 Thread Connor Abbott
On Wed, Apr 1, 2015 at 6:49 PM, Jason Ekstrand wrote: > On Tue, Mar 31, 2015 at 4:10 PM, Ilia Mirkin wrote: >> On Tue, Mar 31, 2015 at 6:57 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> Signed-off-by: Rob Clark >>> --- >>> src/glsl/nir/nir_opcodes.py | 4 ++-- >>> 1 file changed, 2 inserti

[Mesa-dev] [PATCH] nir/print: Correctly print swizzles for explicitly sized alu sources

2015-04-01 Thread Jason Ekstrand
--- src/glsl/nir/nir_print.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c index 53fada8..fb8c934 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -137,21 +137,21 @@ print_de

[Mesa-dev] [PATCH] i965/generator: Get rid of the ! in the unreachable statement

2015-04-01 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index f88c041..4f39f73 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp

Re: [Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select

2015-04-01 Thread Rob Clark
On Wed, Apr 1, 2015 at 6:56 PM, Jason Ekstrand wrote: > On Tue, Mar 31, 2015 at 3:57 PM, Rob Clark wrote: >> From: Rob Clark >> >> Freedreno and vc4 want this behavior for the time being (until we have >> real flow control). Even after that, we probably want to turn this into >> some sort of dr

Re: [Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select

2015-04-01 Thread Connor Abbott
I think it might be better here if we had a callback that backends can fill in that tells you when an instruction can be pulled out by the sel peephole. As Jason noted, you won't be able to do this for everything (notably, output writes and variable writes) and we'll probably need special handling

Re: [Mesa-dev] [PATCH 3/4] nir: support to flatten_all in peephole-select

2015-04-01 Thread Jason Ekstrand
On Wed, Apr 1, 2015 at 4:20 PM, Rob Clark wrote: > On Wed, Apr 1, 2015 at 6:56 PM, Jason Ekstrand wrote: >> On Tue, Mar 31, 2015 at 3:57 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> Freedreno and vc4 want this behavior for the time being (until we have >>> real flow control). Even after th

Re: [Mesa-dev] [PATCH] nir/print: Correctly print swizzles for explicitly sized alu sources

2015-04-01 Thread Connor Abbott
Reviewed-by: Connor Abbott On Wed, Apr 1, 2015 at 7:17 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_print.c | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c > index 53fada8..fb8c934 1006

  1   2   >