[Mesa-dev] egl streams, trying to gain some knowledge

2015-04-02 Thread Dave Airlie
So nvidia have indicated they would like to use an EGLstreams based solution to enable wayland on their binary driver stack at some point. I'm just trying to gauge how people in mesa/wayland feel about this as a solution, is it a solution looking for a problem, when you have EGLstreams everything

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

2015-04-02 Thread Martin Peres
On 01/04/15 20:30, Laura Ekstrand wrote: 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 mailto:la...@jlek

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

2015-04-02 Thread Martin Peres
On 02/04/15 11:02, Martin Peres wrote: On 01/04/15 20:30, Laura Ekstrand wrote: 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:0

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

2015-04-02 Thread Kenneth Graunke
On Wednesday, April 01, 2015 07:22:40 PM Connor Abbott wrote: > 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

[Mesa-dev] [PATCH] docs: remove the --with-max-{width, height} note

2015-04-02 Thread Emil Velikov
Missed out with commit d99135b2e9b(configure: nuke --with-max-{width,height}) Signed-off-by: Emil Velikov --- docs/faq.html | 13 - 1 file changed, 13 deletions(-) diff --git a/docs/faq.html b/docs/faq.html index d4037e8..b7c6fbf 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -32

[Mesa-dev] [PATCH] i965/disasm: Print the type after the swizzle also for 3src src operands

2015-04-02 Thread ville . syrjala
From: Ville Syrjälä The disassembly currently has the swizzle after the type for 3src source operands, and the other way around for 2src. Flip the type and swizzle around for 3src so that the output matches 2src. Signed-off-by: Ville Syrjälä --- src/mesa/drivers/dri/i965/brw_disasm.c | 6 +++--

[Mesa-dev] [PATCH] i965: Free dead GLSL IR one last time.

2015-04-02 Thread Kenneth Graunke
While working on NIR's memory allocation model, I realized the GLSL IR memory model was broken. During glCompileShader, we allocate everything out of the _mesa_glsl_parse_state context, and reparent it to gl_shader at the end. During glLinkProgram, we allocate everything out of a temporary contex

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

2015-04-02 Thread Martin Peres
On 01/04/15 15:14, Tapani Pälli wrote: 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 o

[Mesa-dev] [PATCH] glsl: relax input->output validation for SSO programs

2015-04-02 Thread Tapani Pälli
Commit 18004c3 introduced more restrictive validation to linker between inputs and outputs. This patch skips the additional check for programs that utilize GL_ARB_separate_shader_objects, there inputs and outputs might not make exact match during linking but only when constructing the final pipelin

Re: [Mesa-dev] [PATCH 09/13] SQUASH: i965/fs: Rework fs_visitor::lower_load_payload

2015-04-02 Thread Francisco Jerez
Jason Ekstrand writes: > Instead of the complicated and broken-by-design pile of heuristics we had > before, we now have a straightforward lowering: > > 1) All header sources are copied directly using force_writemask_all and, > since they are guaranteed to be a single register, there are no

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

2015-04-02 Thread Tapani Pälli
On 04/02/2015 12:36 PM, Martin Peres wrote: On 01/04/15 15:14, Tapani Pälli wrote: 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 p

[Mesa-dev] DMA_BUF render targets disabled for intel

2015-04-02 Thread Volker Vogelhuber
We currently want to stream OpenGL output to an FPGA that does not provide a SG controller and should manage the transfers from the CPU memory to it's own hardware. For that reason we want to have the OpenGL driver (intel baytrail) to render at a specific memory area within the CPU system. Render

Re: [Mesa-dev] [PATCH v4] i965/aa: fixing anti-aliasing bug for thinnest width lines - GEN7

2015-04-02 Thread Predut, Marius
Please "review by" feedback please :-) -Original Message- From: Predut, Marius Sent: Thursday, March 19, 2015 9:34 PM To: mesa-dev@lists.freedesktop.org Cc: Predut, Marius Subject: [Mesa-dev][PATCH v4] i965/aa: fixing anti-aliasing bug for thinnest width lines - GEN7 On SNB and IVB hw,

Re: [Mesa-dev] [PATCH] docs: remove the --with-max-{width, height} note

2015-04-02 Thread Brian Paul
On 04/02/2015 02:37 AM, Emil Velikov wrote: Missed out with commit d99135b2e9b(configure: nuke --with-max-{width,height}) Signed-off-by: Emil Velikov --- docs/faq.html | 13 - 1 file changed, 13 deletions(-) diff --git a/docs/faq.html b/docs/faq.html index d4037e8..b7c6fbf 10064

Re: [Mesa-dev] [PATCH 09/13] SQUASH: i965/fs: Rework fs_visitor::lower_load_payload

2015-04-02 Thread Jason Ekstrand
On Thu, Apr 2, 2015 at 3:01 AM, Francisco Jerez wrote: > Jason Ekstrand writes: > >> Instead of the complicated and broken-by-design pile of heuristics we had >> before, we now have a straightforward lowering: >> >> 1) All header sources are copied directly using force_writemask_all and, >>

Re: [Mesa-dev] [PATCH 8/9] nir: Implement a nir_sweep() pass.

2015-04-02 Thread Jason Ekstrand
On Wed, Apr 1, 2015 at 10:51 PM, Kenneth Graunke wrote: > On Wednesday, April 01, 2015 05:54:29 PM Jason Ekstrand wrote: >> On Sat, Mar 28, 2015 at 2:28 PM, Kenneth Graunke >> wrote: >> > This pass performs a mark and sweep pass over a nir_shader's associated >> > memory - anything still connect

[Mesa-dev] [PATCH 2/4] util/ralloc: Fix `extern "C"` usage.

2015-04-02 Thread Jose Fonseca
--- src/util/ralloc.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/ralloc.h b/src/util/ralloc.h index f088a36..857b1f9 100644 --- a/src/util/ralloc.h +++ b/src/util/ralloc.h @@ -46,16 +46,16 @@ #ifndef RALLOC_H #define RALLOC_H -#ifdef __cplusplus -exter

[Mesa-dev] [PATCH 1/4] mesa: Remove pointless USE_EXTERNAL_DXTN_LIB macro.

2015-04-02 Thread Jose Fonseca
I'm not sure what was the original intention, but currently USE_EXTERNAL_DXTN_LIB always ends up defined, one way or another. --- configure.ac | 2 +- src/mesa/main/texcompress_s3tc.c | 8 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/configure.ac b/con

[Mesa-dev] [PATCH 3/4] glx: Include util/macros.h instead of redefining PRINTFLIKE.

2015-04-02 Thread Jose Fonseca
--- src/glx/dri_common.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h index 5cd150a..947d331 100644 --- a/src/glx/dri_common.h +++ b/src/glx/dri_common.h @@ -39,12 +39,7 @@ #include #include #include "loader.h" - -#if (_

[Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-02 Thread Jose Fonseca
These were being defined in SCons, but it's not practical -- we actually need to include Gallium headers from external source trees, with completely disjoint build infrastructure, and it's unsustainable to replicate the HAVE_xxx checks or even hard-coded defines across everywhere. No actual change

Re: [Mesa-dev] egl streams, trying to gain some knowledge

2015-04-02 Thread Jason Ekstrand
On Thu, Apr 2, 2015 at 12:35 AM, Dave Airlie wrote: > So nvidia have indicated they would like to use an EGLstreams based > solution to enable wayland on their binary driver stack at some point. As per their recent XDC talk, they sounded like they had given up on eglstreams for implementing the W

[Mesa-dev] [PATCH] i915: add mock implementation of GL_OES_EGL_image_external

2015-04-02 Thread Chih-Wei Huang
This is similar to commit 7420c9dab4aaf87e6b840410226c296c4668a48f but for the i915 driver. It's necessary to support android-x86. Signed-off-by: Chih-Wei Huang --- src/mesa/drivers/dri/i915/i830_texstate.c| 1 + src/mesa/drivers/dri/i915/i915_fragprog.c| 1 + src/mesa/drivers/dri/i915/i

Re: [Mesa-dev] [PATCH 1/4] mesa: Remove pointless USE_EXTERNAL_DXTN_LIB macro.

2015-04-02 Thread Roland Scheidegger
Am 02.04.2015 um 16:32 schrieb Jose Fonseca: > I'm not sure what was the original intention, but currently > USE_EXTERNAL_DXTN_LIB always ends up defined, one way or another. > --- > configure.ac | 2 +- > src/mesa/main/texcompress_s3tc.c | 8 > 2 files changed, 1 inse

[Mesa-dev] [PATCH 2/4] radeon: Make use of _mesa_get_viewport_xform v2.

2015-04-02 Thread Mathias . Froehlich
From: Mathias Froehlich Hi Michael, You mean like this? I did initially preserve the original ordering present in the radeon implementation because I thought it is easier to review then. If it's the other way round, here you are ... Ok, to commit? Thanks Mathias Instead of _WindowMap just us

[Mesa-dev] [PATCH 3/4] tnl: Maintain the _WindowMap matrix in TNLcontext v2.

2015-04-02 Thread Mathias . Froehlich
From: Mathias Froehlich Hi Brian, Thanks for the review! The Patch with unneeded parentheses removed. Ok, to push? Greetings Mathias This is the only real user of _WindowMap which has the depth buffer scaling multiplied in. Maintain the _WindowMap of the one and only viewport inside TNLconte

Re: [Mesa-dev] [PATCH] i965/disasm: Print the type after the swizzle also for 3src src operands

2015-04-02 Thread Matt Turner
On Thu, Apr 2, 2015 at 1:47 AM, wrote: > From: Ville Syrjälä > > The disassembly currently has the swizzle after the type for 3src source > operands, and the other way around for 2src. Flip the type and swizzle > around for 3src so that the output matches 2src. > > Signed-off-by: Ville Syrjälä

Re: [Mesa-dev] [PATCH] i965: Implement support for ARB_clip_control.

2015-04-02 Thread Mathias Fröhlich
Hi Kenneth, On Tuesday, March 31, 2015 14:31:41 Kenneth Graunke wrote: > Wow, Gen4 even :) This looks good to me - and using _FrontBit does > simplify things quite a bit. Thanks! Well, it's just that this is the test system that I have found around here which enables me to get at least some sma

Re: [Mesa-dev] egl streams, trying to gain some knowledge

2015-04-02 Thread Daniel Stone
Hi, My two cents, which largely parallels Jason's ... On 2 April 2015 at 08:35, Dave Airlie wrote: > So nvidia have indicated they would like to use an EGLstreams based > solution to enable wayland on their binary driver stack at some point. No real surprise, I guess. NVIDIA have long pushed EGL

Re: [Mesa-dev] GSoC 2015: Request for Registration for Mentorship

2015-04-02 Thread Laura Ekstrand
Hi, I haven't been able to do this yet because I have a lot going on. Sorry. Laura On Mon, Mar 30, 2015 at 1:10 AM, Juliet Fru wrote: > > Hello +Laura, +Brian, >> >> I will like you to register on melange with X.org so as to mentor me on >> the Porting Glean tests to piglit project for GSoC 2

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

2015-04-02 Thread Jason Ekstrand
On Thu, Apr 2, 2015 at 1:20 AM, Kenneth Graunke wrote: > On Wednesday, April 01, 2015 07:22:40 PM Connor Abbott wrote: >> 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, y

Re: [Mesa-dev] [PATCH 3/4] tnl: Maintain the _WindowMap matrix in TNLcontext v2.

2015-04-02 Thread Brian Paul
On Thu, Apr 2, 2015 at 10:30 AM, wrote: > From: Mathias Froehlich > > Hi Brian, > > Thanks for the review! > The Patch with unneeded parentheses removed. > Ok, to push? > Yes. -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lis

Re: [Mesa-dev] GSoC 2015: Request for Registration for Mentorship

2015-04-02 Thread Brian Paul
Sorry, I've been busy too. What's the URL for the sign-up? -Brian On Thu, Apr 2, 2015 at 11:00 AM, Laura Ekstrand wrote: > Hi, > > I haven't been able to do this yet because I have a lot going on. > > Sorry. > > Laura > > On Mon, Mar 30, 2015 at 1:10 AM, Juliet Fru wrote: > >> >> Hello +Laur

Re: [Mesa-dev] [PATCH 5/5] nir: Remove fsin_reduced/fcos_reduced.

2015-04-02 Thread Jason Ekstrand
Series is Reviewed-by: Jason Ekstrand I don't care much about the squashing as long as the whole thing builds. It's all dead anyway. Note: I believe Eric merged tgsi_to_nir, so this patch will have to delete even more code. :-) --Jason On Wed, Apr 1, 2015 at 6:36 PM, Matt Turner wrote: > ---

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

2015-04-02 Thread Rob Clark
On Thu, Apr 2, 2015 at 1:24 PM, Jason Ekstrand wrote: > On Thu, Apr 2, 2015 at 1:20 AM, Kenneth Graunke wrote: >> On Wednesday, April 01, 2015 07:22:40 PM Connor Abbott wrote: >>> I think it might be better here if we had a callback that backends can >>> fill in that tells you when an instruction

Re: [Mesa-dev] [PATCH] i965: Free dead GLSL IR one last time.

2015-04-02 Thread Jason Ekstrand
On Thu, Apr 2, 2015 at 2:04 AM, Kenneth Graunke wrote: > While working on NIR's memory allocation model, I realized the GLSL IR > memory model was broken. > > During glCompileShader, we allocate everything out of the > _mesa_glsl_parse_state context, and reparent it to gl_shader at the end. > > Du

Re: [Mesa-dev] DMA_BUF render targets disabled for intel

2015-04-02 Thread Axel Davy
Hi, you may be interesting look at this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=87452#c5 Yours, Axel Davy On 02/04/2015 11:58, Volker Vogelhuber wrote : We currently want to stream OpenGL output to an FPGA that does not provide a SG controller and should manage the tr

[Mesa-dev] [PATCH] nir/opt_peephole_ffma: Fix a couple typos in a comment

2015-04-02 Thread Jason Ekstrand
--- src/glsl/nir/nir_opt_peephole_ffma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/nir/nir_opt_peephole_ffma.c b/src/glsl/nir/nir_opt_peephole_ffma.c index bf4dbe1..9d5646f 100644 --- a/src/glsl/nir/nir_opt_peephole_ffma.c +++ b/src/glsl/nir/nir_opt_peephole

Re: [Mesa-dev] [PATCH] nir/opt_peephole_ffma: Fix a couple typos in a comment

2015-04-02 Thread Matt Turner
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] i965: Free dead GLSL IR one last time.

2015-04-02 Thread Thomas Helland
This reminds me of a patch Eric wrote that probably fell through the cracks when he migrated jobs: https://freedesktop.org/patch/26778/ "Free the compiled shader IR after it has been linked" It got an R-B, but seems like it never made it to upstream. I don't know if it still applies to the way th

Re: [Mesa-dev] [PATCH 4/4] autoconf, scons: Move fallback HAVE_* definitions to headers.

2015-04-02 Thread Matt Turner
On Thu, Apr 2, 2015 at 7:32 AM, Jose Fonseca wrote: > These were being defined in SCons, but it's not practical -- we actually > need to include Gallium headers from external source trees, with > completely disjoint build infrastructure, and it's unsustainable to > replicate the HAVE_xxx checks or

Re: [Mesa-dev] [PATCH] i965: Implement support for ARB_clip_control.

2015-04-02 Thread Kenneth Graunke
On Thursday, April 02, 2015 06:37:13 PM Mathias Fröhlich wrote: > > Hi Kenneth, > > On Tuesday, March 31, 2015 14:31:41 Kenneth Graunke wrote: > > Wow, Gen4 even :) This looks good to me - and using _FrontBit does > > simplify things quite a bit. Thanks! > Well, it's just that this is the test

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

2015-04-02 Thread Anuj Phogat
On Wed, Apr 1, 2015 at 1:38 PM, Brian Paul wrote: > 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_pars

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

2015-04-02 Thread Anuj Phogat
On Mon, Mar 9, 2015 at 10:17 AM, 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 meta

[Mesa-dev] [PATCH 2/2] nir: fix typo for f2b/i2b/b2i expressions (v2)

2015-04-02 Thread Rob Clark
From: Rob Clark v2: discovered that i2b/b2i are also confused Signed-off-by: Rob Clark --- src/glsl/nir/nir_opcodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py index 062cd62..f96424f 100644 --- a/src/gls

[Mesa-dev] [PATCH 1/2] nir: add option to lower slt/sge/seq/sne

2015-04-02 Thread Rob Clark
From: Rob Clark In freedreno these get implemented as the matching f* instruction plus a u2f to convert the result to float 1.0/0.0. But less lines of code to just let nir_opt_algebraic handle this for us, plus opens up some small window for other opt passes to improve (ie. if some shader ended

[Mesa-dev] [PATCH v3 02/10] gallium: add new fields to pipe_driver_query_info

2015-04-02 Thread Samuel Pitoiset
According to the spec of GL_AMD_performance_monitor, valid type values returned are UNSIGNED_INT, UNSIGNED_INT64_AMD, PERCENTAGE_AMD, FLOAT. This also introduces the new field group_id in order to categorize queries into groups. v3: fix incorrect query type for radeon and svga drivers v2: add PIP

[Mesa-dev] [PATCH v3 00/10] GL_AMD_performance_monitor

2015-04-02 Thread Samuel Pitoiset
Hello, A series I have waited too long to re-submit, but I recently refactored the code and fixed some minor issues. This patchset enables GL_AMD_performance_monitor for nvc0 *only* because this extension must only exposes GPU counters. This code has been tested with Nouveau (NVD9 and NVE7). All

[Mesa-dev] [PATCH v3 01/10] gallium: add pipe_screen::get_driver_query_group_info

2015-04-02 Thread Samuel Pitoiset
Driver queries are organized as a single hierarchy where queries are categorized into groups. Each group has a list of queries and a maximum number of queries that can be sampled. The list of available groups can be obtained using pipe_screen::get_driver_query_group_info. This will be used by GL_A

[Mesa-dev] [PATCH v3 03/10] gallium: add new numeric types to pipe_query_result

2015-04-02 Thread Samuel Pitoiset
This will be used by GL_AMD_performance_monitor. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Martin Peres --- src/gallium/include/pipe/p_defines.h | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pi

[Mesa-dev] [PATCH v3 06/10] st/mesa: implement GL_AMD_performance_monitor

2015-04-02 Thread Samuel Pitoiset
From: Christoph Bumiller This is based on the original patch of Christoph Bumiller. v3: - only enable this extension when the underlying driver expose GPU counters - get rid of the ring buffer of queries v2 (Samuel Pitoiset): - improve Gallium interface for this extension - rewrite some par

[Mesa-dev] [PATCH v3 04/10] gallium: replace pipe_driver_query_info::max_value by a union

2015-04-02 Thread Samuel Pitoiset
This allows queries to return different numeric types. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Martin Peres --- src/gallium/auxiliary/hud/hud_driver_query.c| 3 ++- src/gallium/drivers/freedreno/freedreno_query.c | 12 ++-- src/gallium/drivers/nouveau/

[Mesa-dev] [PATCH v3 07/10] nvc0: define driver-specific query groups

2015-04-02 Thread Samuel Pitoiset
This patch defines "Driver statistics" and "MP counters" groups, but only the latter will be exposed through GL_AMD_performance_monitor. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 67 ++ src/gallium/drivers/nouveau/nvc0/nvc0_screen

[Mesa-dev] [PATCH v3 10/10] nvc0: all queries use an unsigned 64-bits integer by default

2015-04-02 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c index 8d9cd8b.

Re: [Mesa-dev] [PATCH 2/2] nir: fix typo for f2b/i2b/b2i expressions (v2)

2015-04-02 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 v3 08/10] docs: mark GL_AMD_performance_monitor on nvc0 for the 10.6.0 release

2015-04-02 Thread Samuel Pitoiset
Other drivers which want to enable this extension must expose groups of GPU hardware performance counters. Signed-off-by: Samuel Pitoiset --- docs/relnotes/10.6.0.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/relnotes/10.6.0.html b/docs/relnotes/10.6.0.html index 22201e1..5ba715e

[Mesa-dev] [PATCH v3 09/10] nvc0: make begin_query return false when all MP counters are used

2015-04-02 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c index 071d179

[Mesa-dev] [PATCH v3 05/10] gallium: make pipe_context::begin_query return a boolean

2015-04-02 Thread Samuel Pitoiset
GL_AMD_performance_monitor must return an error when a monitoring session cannot be started. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Martin Peres --- src/gallium/drivers/freedreno/freedreno_query.c| 4 ++-- src/gallium/drivers/freedreno/freedreno_query.h|

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

2015-04-02 Thread Connor Abbott
On Thu, Apr 2, 2015 at 1:32 PM, Rob Clark wrote: > On Thu, Apr 2, 2015 at 1:24 PM, Jason Ekstrand wrote: >> On Thu, Apr 2, 2015 at 1:20 AM, Kenneth Graunke >> wrote: >>> On Wednesday, April 01, 2015 07:22:40 PM Connor Abbott wrote: I think it might be better here if we had a callback that

Re: [Mesa-dev] [PATCH 2/2] nir: fix typo for f2b/i2b/b2i expressions (v2)

2015-04-02 Thread Connor Abbott
Wow, that's pretty embarrassing... it's tough to test this code, so I'm not too surprised it's this busted. Reviewed-by: Connor Abbott On Thu, Apr 2, 2015 at 2:35 PM, Rob Clark wrote: > From: Rob Clark > > v2: discovered that i2b/b2i are also confused > > Signed-off-by: Rob Clark > --- > src

Re: [Mesa-dev] [PATCH] glsl: relax input->output validation for SSO programs

2015-04-02 Thread Anuj Phogat
On Thu, Apr 2, 2015 at 2:59 AM, Tapani Pälli wrote: > Commit 18004c3 introduced more restrictive validation to linker > between inputs and outputs. This patch skips the additional check > for programs that utilize GL_ARB_separate_shader_objects, there > inputs and outputs might not make exact matc

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

2015-04-02 Thread Rob Clark
On Thu, Apr 2, 2015 at 3:19 PM, Connor Abbott wrote: > On Thu, Apr 2, 2015 at 1:32 PM, Rob Clark wrote: >> On Thu, Apr 2, 2015 at 1:24 PM, Jason Ekstrand wrote: >>> On Thu, Apr 2, 2015 at 1:20 AM, Kenneth Graunke >>> wrote: On Wednesday, April 01, 2015 07:22:40 PM Connor Abbott wrote: >>>

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

2015-04-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86326 --- Comment #13 from Ronie Salgado --- Sorry, I have been busy lately. I will do it today. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@

Re: [Mesa-dev] GSoC 2015: Request for Registration for Mentorship

2015-04-02 Thread Laura Ekstrand
Ok, I'm registered on Melange as ldeks. On Thu, Apr 2, 2015 at 10:29 AM, Brian Paul wrote: > Sorry, I've been busy too. What's the URL for the sign-up? > > -Brian > > > On Thu, Apr 2, 2015 at 11:00 AM, Laura Ekstrand > wrote: > >> Hi, >> >> I haven't been able to do this yet because I have a l

Re: [Mesa-dev] [Piglit] GSoC 2015: Request for Registration for Mentorship

2015-04-02 Thread Matt Turner
On Thu, Apr 2, 2015 at 10:29 AM, Brian Paul wrote: > Sorry, I've been busy too. What's the URL for the sign-up? http://www.google-melange.com/gsoc/homepage/google/gsoc2015 -> Start Connection Once you've created an account, you'll have a My Dashboard link in the side menu. In that, there's a C

Re: [Mesa-dev] [PATCH] i965: Free dead GLSL IR one last time.

2015-04-02 Thread Kenneth Graunke
On Thursday, April 02, 2015 10:36:44 AM Jason Ekstrand wrote: > On Thu, Apr 2, 2015 at 2:04 AM, Kenneth Graunke wrote: > > While working on NIR's memory allocation model, I realized the GLSL IR > > memory model was broken. > > > > During glCompileShader, we allocate everything out of the > > _mesa

Re: [Mesa-dev] [PATCH 1/3] util: Change hash_table to use quadratic probing

2015-04-02 Thread Jason Ekstrand
On Mon, Mar 30, 2015 at 5:18 PM, Eric Anholt wrote: > Thomas Helland writes: > >> This should give better cache locality, less memory consumption, >> less code, and should also be faster since we avoid a modulo operation. >> Also change table size to be power of two. >> This gives better performa

[Mesa-dev] [PATCH] Fix automatic indentation mode for recent emacs, use fewer columns in .git

2015-04-02 Thread Carl Worth
I recently noticed (after upgrading to emacs 24?) that I was no longer getting automatic C-style settings in emacs like I was accustomed to getting. That is, I was now getting a default indentation of 8 and indentation with tabs instead of spaces. It appears that the .dir-locals.el file is no long

Re: [Mesa-dev] [PATCH 2/4] util/ralloc: Fix `extern "C"` usage.

2015-04-02 Thread Kenneth Graunke
On Thursday, April 02, 2015 03:32:54 PM Jose Fonseca wrote: > --- > src/util/ralloc.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/util/ralloc.h b/src/util/ralloc.h > index f088a36..857b1f9 100644 > --- a/src/util/ralloc.h > +++ b/src/util/ralloc.h > @@ -46

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

2015-04-02 Thread Jason Ekstrand
I'm going to kick this off to Jenkins now. Assuming it gives a green light, the series is Reviewed-by: Jason Ekstrand I'm going to write a NIR variant of the i965 cube clamping pass so I want the builder stuff for that. --Jason On Wed, Apr 1, 2015 at 3:11 PM, Eric Anholt wrote: > This only im

[Mesa-dev] [Bug 72877] Wrong colors with Mesa 9.2 and Mesa 10.0 on PPC Linux systems

2015-04-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72877 Christian Zigotzky changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #13 from Chris

[Mesa-dev] [Bug 72877] Wrong colors with Mesa 9.2 and Mesa 10.0 on PPC Linux systems

2015-04-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72877 Christian Zigotzky changed: What|Removed |Added Version|10.0|10.5 -- You are receiving this mai

[Mesa-dev] [Bug 72877] Wrong colors with Mesa 9.2 and Mesa 10.0 on PPC Linux systems

2015-04-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72877 Christian Zigotzky changed: What|Removed |Added Status|NEEDINFO|NEW -- You are receiving this mail

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

2015-04-02 Thread Jason Ekstrand
On Thu, Apr 2, 2015 at 4:18 PM, Jason Ekstrand wrote: > I'm going to kick this off to Jenkins now. Assuming it gives a green > light, the series is > > Reviewed-by: Jason Ekstrand Jenkins is green! > I'm going to write a NIR variant of the i965 cube clamping pass so I > want the builder stuff

Re: [Mesa-dev] [PATCH] Fix automatic indentation mode for recent emacs, use fewer columns in .git

2015-04-02 Thread Michel Dänzer
On 03.04.2015 06:38, Carl Worth wrote: > I recently noticed (after upgrading to emacs 24?) that I was no longer > getting automatic C-style settings in emacs like I was accustomed to > getting. That is, I was now getting a default indentation of 8 and > indentation with tabs instead of spaces. > >

[Mesa-dev] [PATCH 3/3] i965: Use brw_nir_cubemap_normalize for NIR shaders

2015-04-02 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++ src/mesa/drivers/dri/i965/brw_shader.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 0f1659d..46f8826 100644 --- a/src/mesa/dr

[Mesa-dev] [PATCH 2/3] i965: Add a NIR-based cubemap normalizing pass

2015-04-02 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_nir.h| 2 + .../drivers/dri/i965/brw_nir_cubemap_normalize.c | 111 + 3 files changed, 114 insertions(+) create mode 100644 src/mesa/drivers/dri/i965/brw_nir_cubem

[Mesa-dev] [PATCH 1/3] i965: Check the INTEL_USE_NIR environment variable once at context creation

2015-04-02 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_context.c | 10 +- src/mesa/drivers/dri/i965/brw_fs.cpp| 4 ++-- src/mesa/drivers/dri/i965/brw_vec4.cpp | 4 +++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/br

[Mesa-dev] [PATCH 3/4] i965/nir: Be smarter about types in vecN, Tmov, and bcsel operations

2015-04-02 Thread Jason Ekstrand
These operations are effectively passthroughs in the sense that they don't really care what the types of their inputs are (except the first source of bcsel). However, our backend IR does care about types so making the types sane helps with things such as propagating source modifiers. total FS ins

[Mesa-dev] [PATCH 2/4] nir/from_ssa: Don't set reg->parent_instr for ssa_undef instructions

2015-04-02 Thread Jason Ekstrand
--- src/glsl/nir/nir_from_ssa.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/glsl/nir/nir_from_ssa.c b/src/glsl/nir/nir_from_ssa.c index c3090fb..184698a 100644 --- a/src/glsl/nir/nir_from_ssa.c +++ b/src/glsl/nir/nir_from_ssa.c @@ -509,12 +509,13 @@ get_registe

[Mesa-dev] [PATCH 4/4] nir: Allow abs/neg in select peephole pass.

2015-04-02 Thread Jason Ekstrand
From: Matt Turner total instructions in shared programs: 4314633 -> 4309085 (-0.13%) instructions in affected programs: 429085 -> 423537 (-1.29%) helped:1680 HURT: 0 GAINED:0 LOST:

[Mesa-dev] [PATCH 1/4] nir: Add a src_get_parent_instr function

2015-04-02 Thread Jason Ekstrand
--- src/glsl/nir/nir.h | 10 ++ .../drivers/dri/i965/brw_nir_analyze_boolean_resolves.c | 16 ++-- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 24deb82..94b0f49 100644 --- a