Re: [Mesa-dev] [PATCH 6/7] nir: fix missing increments of num_inputs/num_outputs

2015-11-07 Thread Rob Clark
On Fri, Nov 6, 2015 at 10:20 PM, Jason Ekstrand wrote: > On Fri, Nov 6, 2015 at 5:10 PM, Rob Clark wrote: >> On Fri, Nov 6, 2015 at 6:39 PM, Rob Clark wrote: >>> On Fri, Nov 6, 2015 at 6:23 PM, Jason Ekstrand wrote: On Fri, Nov 6, 2015 at 8:35 AM, Rob Clark wrote: > From: Rob Clark >

Re: [Mesa-dev] [PATCH 6/7] nir: fix missing increments of num_inputs/num_outputs

2015-11-07 Thread Jason Ekstrand
On Sat, Nov 7, 2015 at 5:21 AM, Rob Clark wrote: > On Fri, Nov 6, 2015 at 10:20 PM, Jason Ekstrand wrote: >> On Fri, Nov 6, 2015 at 5:10 PM, Rob Clark wrote: >>> On Fri, Nov 6, 2015 at 6:39 PM, Rob Clark wrote: On Fri, Nov 6, 2015 at 6:23 PM, Jason Ekstrand wrote: > On Fri, Nov

Re: [Mesa-dev] [PATCH] egl/dri2: expose srgb configs when KHR_gl_colorspace is available

2015-11-07 Thread Emil Velikov
On 6 November 2015 at 19:26, Marek Olšák wrote: > On Fri, Nov 6, 2015 at 8:24 PM, Marek Olšák wrote: >> On Thu, Oct 15, 2015 at 2:28 PM, Emil Velikov >> wrote: >>> On 3 October 2015 at 12:19, Emil Velikov wrote: On 3 October 2015 at 02:12, Marek Olšák wrote: > I'm not sure if this is

Re: [Mesa-dev] [PATCH] vbo: fix another GL_LINE_LOOP bug

2015-11-07 Thread Emil Velikov
On 6 November 2015 at 17:50, Brian Paul wrote: > On 11/06/2015 09:40 AM, Emil Velikov wrote: >> >> Hi Brian, >> >> On 31 October 2015 at 13:38, Brian Paul wrote: >>> >>> Very long line loops which spanned 3 or more vertex buffers were not >>> handled correctly and could result in stray lines. >>>

[Mesa-dev] Mesa 11.1.0 release plan

2015-11-07 Thread Emil Velikov
Hi all, It's time to get the idea of where were are wrt the next Mesa release - 11.1.0. As usual here is the normal plan, although everyone interested in more than welcome to chime in November 20th 2015 - Feature freeze/Release candidate 1 November 27th 2015 - Release candidate 2 December 04th 20

[Mesa-dev] New stable-branch 11.0 candidate pushed

2015-11-07 Thread Emil Velikov
Hello list, The candidate for the Mesa 11.0.5 is now available. Currently we have: - 31 queued - 13 nominated (outstanding) - and 6 rejected/obsolete patches Currently we have mostly driver related fixes - some in i965 and nouveau, a few llvm related, the odd bugfix in the VA state-tracker. Ad

Re: [Mesa-dev] [PATCH 6/7] nir: fix missing increments of num_inputs/num_outputs

2015-11-07 Thread Rob Clark
On Sat, Nov 7, 2015 at 10:59 AM, Jason Ekstrand wrote: > On Sat, Nov 7, 2015 at 5:21 AM, Rob Clark wrote: >> On Fri, Nov 6, 2015 at 10:20 PM, Jason Ekstrand wrote: >>> On Fri, Nov 6, 2015 at 5:10 PM, Rob Clark wrote: On Fri, Nov 6, 2015 at 6:39 PM, Rob Clark wrote: > On Fri, Nov 6, 20

Re: [Mesa-dev] [PATCH] i965/skl/gt4: Fix URB programming restriction.

2015-11-07 Thread Ben Widawsky
On Fri, Nov 06, 2015 at 07:29:18PM -0800, Kenneth Graunke wrote: > On Friday, November 06, 2015 06:12:27 PM Ben Widawsky wrote: > > The comment in the code details the restriction. Thanks to Ken for having a > > very > > helpful conversation with me, and spotting the blurb in the link I sent him

Re: [Mesa-dev] [PATCH] gallium/swrast: fix front buffer blitting. (v2)

2015-11-07 Thread Emil Velikov
Hi Dave, On 9 October 2015 at 01:38, Dave Airlie wrote: > From: Dave Airlie > > So I've known this was broken before, cogl has a workaround > for it from what I know, but with the gallium based swrast > drivers BlitFramebuffer from back to front or vice-versa > was pretty broken. > > The legacy

[Mesa-dev] [PATCH] egl/wayland: Ignore rects from SwapBuffersWithDamage

2015-11-07 Thread Daniel Stone
eglSwapBuffersWithDamage accepts damage-region rectangles to hint the compositor that it only needs to redraw certain areas, which was passed through the wl_surface_damage request, as designed. Wayland also offers a buffer transformation interface, e.g. to allow users to render pre-rotated buffers

Re: [Mesa-dev] New stable-branch 11.0 candidate pushed

2015-11-07 Thread Kenneth Graunke
On Saturday, November 07, 2015 04:37:05 PM Emil Velikov wrote: > Jason, Kenneth, > > I had to pick a few extra commits as prerequirements to the "nir: > Properly invalidate metadata in nir_foo" patches. Can you let me know > if any of these should not be in 11.0. Thanks ! > > commit 800217a1654ab

[Mesa-dev] [PATCH 1/2] nir/types: Add an is_vector_or_scalar helper

2015-11-07 Thread Jason Ekstrand
--- src/glsl/nir/nir_types.cpp | 6 ++ src/glsl/nir/nir_types.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index 965f423..135591a 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -144,6 +144,12 @@ g

[Mesa-dev] [PATCH 0/2] A couple of patches to fix the build

2015-11-07 Thread Jason Ekstrand
These are pretty trivial fixes. I pushed a patch that I'd pulled of another branch and forgot I had these in it. Jason Ekstrand (2): nir/types: Add an is_vector_or_scalar helper nir: Add a nir_deref_tail helper src/glsl/nir/nir.h | 9 + src/glsl/nir/nir_lower_var_c

[Mesa-dev] [PATCH 2/2] nir: Add a nir_deref_tail helper

2015-11-07 Thread Jason Ekstrand
--- src/glsl/nir/nir.h | 9 + src/glsl/nir/nir_lower_var_copies.c | 15 ++- src/glsl/nir/nir_split_var_copies.c | 12 ++-- 3 files changed, 13 insertions(+), 23 deletions(-) diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index ef39df5..2559ef2 1

Re: [Mesa-dev] [PATCH 0/2] A couple of patches to fix the build

2015-11-07 Thread Connor Abbott
Both are r-b me, go ahead and push them. On Sat, Nov 7, 2015 at 3:03 PM, Jason Ekstrand wrote: > These are pretty trivial fixes. I pushed a patch that I'd pulled of > another branch and forgot I had these in it. > > Jason Ekstrand (2): > nir/types: Add an is_vector_or_scalar helper > nir: Ad

Re: [Mesa-dev] [PATCH] gallium/swrast: fix front buffer blitting. (v2)

2015-11-07 Thread Dave Airlie
On 8 November 2015 at 02:47, Emil Velikov wrote: > Hi Dave, > > On 9 October 2015 at 01:38, Dave Airlie wrote: >> From: Dave Airlie >> >> So I've known this was broken before, cogl has a workaround >> for it from what I know, but with the gallium based swrast >> drivers BlitFramebuffer from back

Re: [Mesa-dev] [Mesa-stable] New stable-branch 11.0 candidate pushed

2015-11-07 Thread Mark Janes
Hi Emil, I get this regression testing the new branch: piglit.spec.oes_compressed_paletted_texture.basic api /tmp/build_root/m64/lib/piglit/bin/oes_compressed_paletted_texture-api -auto -fbo Trying glTexImage2D... Trying glCompressedTexImage2D... Unexpected GL error: GL_INVALID_ENUM 0x500 (Erro

[Mesa-dev] [PATCH] freedreno/a3xx: add missing formats to enable ARB_vertex_type_2_10_10_10_rev

2015-11-07 Thread Ilia Mirkin
The previously RE'd formats were from an ES driver implementing OES_vertex_type_10_10_10_2 and thus backwards. A future change could add the 2_10_10_10 support. Signed-off-by: Ilia Mirkin --- docs/relnotes/11.1.0.html | 1 + src/gallium/drivers/freedreno/a3xx/a3xx.xml.h |

[Mesa-dev] [PATCH] freedreno/a3xx: add fake RGTC support (required for GL3)

2015-11-07 Thread Ilia Mirkin
Also throw in LATC while we're at it (same exact format). This could be made more efficient by keeping a shadow compressed texture to use for returning at map time. However... it's not worth it for now... presumably compressed textures are not updated often. Signed-off-by: Ilia Mirkin --- docs/r

[Mesa-dev] [PATCH v3] gallium/hud: control visibility at startup and runtime.

2015-11-07 Thread Jimmy Berry
- env GALLIUM_HUD_VISIBLE: control default visibility - env GALLIUM_HUD_SIGNAL_TOGGLE: toggle visibility via signal --- docs/envvars.html | 6 ++ src/gallium/auxiliary/hud/hud_context.c | 28 2 files changed, 34 insertions(+) diff --git a/do

Re: [Mesa-dev] [PATCH v3] gallium/hud: control visibility at startup and runtime.

2015-11-07 Thread Ilia Mirkin
On Sat, Nov 7, 2015 at 11:05 PM, Jimmy Berry wrote: > - env GALLIUM_HUD_VISIBLE: control default visibility > - env GALLIUM_HUD_SIGNAL_TOGGLE: toggle visibility via signal > --- > docs/envvars.html | 6 ++ > src/gallium/auxiliary/hud/hud_context.c | 28 +

[Mesa-dev] [PATCH v4] gallium/hud: control visibility at startup and runtime.

2015-11-07 Thread Jimmy Berry
- env GALLIUM_HUD_VISIBLE: control default visibility - env GALLIUM_HUD_SIGNAL_TOGGLE: toggle visibility via signal --- per imirkin's comments: - long to unsigned - ignore signal value of 0 rather than always printing error message (oversight) docs/envvars.html | 6 ++

Re: [Mesa-dev] [PATCH v4] gallium/hud: control visibility at startup and runtime.

2015-11-07 Thread Ilia Mirkin
On Sat, Nov 7, 2015 at 11:42 PM, Jimmy Berry wrote: > - env GALLIUM_HUD_VISIBLE: control default visibility > - env GALLIUM_HUD_SIGNAL_TOGGLE: toggle visibility via signal > --- > > per imirkin's comments: > - long to unsigned > - ignore signal value of 0 rather than always printing error message

[Mesa-dev] [PATCH 1/4] i965/brw_reg: Add a brw_VxH_indirect helper

2015-11-07 Thread Kenneth Graunke
From: Jason Ekstrand Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_reg.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h index 083c46a..c3f77c0 100644 --- a/src/mesa/drivers/dri/i965/brw

[Mesa-dev] [PATCH 2/4] i965: Introduce a INDIRECT_THREAD_PAYLOAD_MOV opcode.

2015-11-07 Thread Kenneth Graunke
The geometry and tessellation control shader stages both read from multiple URB entries (one per vertex). The thread payload contains several URB handles which reference these separate memory segments. In GLSL, these inputs are represented as per-vertex arrays; the outermost array index selects w

[Mesa-dev] [PATCH 4/4] i965: Allow indirect GS input indexing in the scalar backend.

2015-11-07 Thread Kenneth Graunke
This allows arbitrary non-constant indices on GS input arrays, both for the vertex index, and any array offsets beyond that. All indirects are handled via the pull model. We could potentially handle indirect addressing of pushed data as well, but it would add additional code complexity, and we us

[Mesa-dev] [PATCH 3/4] i965: Add a SHADER_OPCODE_URB_READ_SIMD8_PER_SLOT opcode.

2015-11-07 Thread Kenneth Graunke
We need to use per-slot offsets when there's non-uniform indexing, as each SIMD channel could have a different index. We want to use them for any non-constant index (even if uniform), as it lives in the message header instead of the descriptor, allowing us to set offsets in GRFs rather than immedi

[Mesa-dev] [PATCH v5] gallium/hud: control visibility at startup and runtime.

2015-11-07 Thread Jimmy Berry
- env GALLIUM_HUD_VISIBLE: control default visibility - env GALLIUM_HUD_SIGNAL_TOGGLE: toggle visibility via signal --- Added static to sig_handled as it should have been. docs/envvars.html | 6 ++ src/gallium/auxiliary/hud/hud_context.c | 28 ++

[Mesa-dev] [PATCH] freedreno: add support for conditional rendering, required for GL3.0

2015-11-07 Thread Ilia Mirkin
A smarter implementation would make it possible to attach this to emit state for the BY_REGION versions to avoid breaking the tiling. But this is a start. Signed-off-by: Ilia Mirkin --- docs/relnotes/11.1.0.html | 1 + src/gallium/drivers/freedreno/freedreno_context.h

[Mesa-dev] [PATCH] freedreno: expose GLSL 140 and fake MSAA for GL3.0/3.1 support

2015-11-07 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/freedreno/freedreno_screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 8529f86..9d2cd31 100644 --- a/src/gall

Re: [Mesa-dev] [PATCH 1/3] glsl: Parse shared keyword for compute shader variables

2015-11-07 Thread Jordan Justen
On 2015-11-06 19:33:38, Timothy Arceri wrote: > On Fri, 2015-11-06 at 17:56 -0800, Jordan Justen wrote: > > Signed-off-by: Jordan Justen > > --- > > > > Notes: > > git://people.freedesktop.org/~jljusten/mesa cs-parse-shared-vars-v1 > > http://patchwork.freedesktop.org/bundle/jljusten/cs-p

[Mesa-dev] [PATCH shader-db 1/3] split-to-files: deal with minimum versions, other shader types

2015-11-07 Thread Ilia Mirkin
--- split-to-files.py | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/split-to-files.py b/split-to-files.py index 4a02b02..151681e 100755 --- a/split-to-files.py +++ b/split-to-files.py @@ -68,17 +68,33 @@ def write_shader_test(filename, shaders):

[Mesa-dev] [PATCH shader-db 3/3] nv-report: initial checkin for nouveau

2015-11-07 Thread Ilia Mirkin
--- nv-report.py | 108 +++ 1 file changed, 108 insertions(+) create mode 100644 nv-report.py diff --git a/nv-report.py b/nv-report.py new file mode 100644 index 000..b97f4a1 --- /dev/null +++ b/nv-report.py @@ -0,0 +1,108 @@ +#!/usr/bi

[Mesa-dev] [PATCH shader-db 2/3] run: work with tessellation shaders

2015-11-07 Thread Ilia Mirkin
--- run.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/run.c b/run.c index de85665..2c2a810 100644 --- a/run.c +++ b/run.c @@ -80,6 +80,8 @@ get_shaders(const struct context_info *core, const struct context_info *compat, static const char *gs = "geometry shader]\n"; s