[Mesa-dev] [PATCH 10/14] mesa: reduce gl_colorbuffer_attrib and gl_fog_attrib

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com These 392-388 and 72-68. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 42075aa..4e1b468 100644

[Mesa-dev] [PATCH 07/14] mesa: reorder gl_transform_feedback_object

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Reduces size from 184 to 176 bytes. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 72db275

[Mesa-dev] [PATCH 06/14] mesa: reorder prog_instruction

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com reduces size from 64 to 56 bytes. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/program/prog_instruction.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program

[Mesa-dev] [PATCH 03/14] mesa: reorder gl_texture_unit

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com drops size from 520 - 512 bytes, which then makes gl_texture_attrib go from 99984 to 98440. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/main

[Mesa-dev] [PATCH 05/14] mesa: reorder gl_array_attrib

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com drops 80 bytes to 72. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 627c144..72db275 100644 --- a/src

[Mesa-dev] [PATCH 13/14] mesa: reorder gl_framebuffer

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this reduces it from 1088 - 1080 bytes Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index

[Mesa-dev] [PATCH 02/14] mesa: reorder gl_point_attrib

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this drops the size from 52 bytes to 48 bytes. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a428a59..d9f0086

[Mesa-dev] [PATCH 01/14] mesa: reorder gl_multisample_attrib

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com drops size from 28 bytes to 20. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index c43c6ac..a428a59 100644

[Mesa-dev] [PATCH 14/14] mesa: reorder gl_light_attrib

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com reduces from 2664-2656. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index e77c4f0..1b45494 100644

[Mesa-dev] [PATCH 12/14] mesa: fix hole in vertex_array_object

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this just removes 4 bytes from this object. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 587507b..68a5d5c

[Mesa-dev] [PATCH 04/14] mesa: reorder gl_client_array

2015-03-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com drops from 56 to 48 bytes, drops gl_vertex_array_object from 4584 to 4320 bytes Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa

Re: [Mesa-dev] mesa vs pahole

2015-03-20 Thread Dave Airlie
On 21 March 2015 at 00:13, Brian Paul bri...@vmware.com wrote: On 03/20/2015 01:29 AM, Dave Airlie wrote: I started running pahole on stuff today and mesa had a bunch of low hanging fruit all over the types, the main thing all of this does is reduce the mesa context size considerably

Re: [Mesa-dev] GL/GLSL tests for GL 4.0 and newer

2015-03-11 Thread Dave Airlie
On 12 March 2015 at 08:07, Ian Romanick i...@freedesktop.org wrote: On 03/09/2015 12:18 AM, Ishara Abeysekera wrote: /I am interested on write tests for OpenGL 4.0 /GLSL 4.00 . / /But can you be more specify what areas you are expecting to be tested, I haven't examined the API side very

[Mesa-dev] [PATCH] st/mesa: drop unused texture function

2015-03-08 Thread Dave Airlie
This has no users. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_texture.c | 40 - src/mesa/state_tracker/st_texture.h | 10 -- 2 files changed, 50 deletions(-) diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa

Re: [Mesa-dev] [PATCH] st/mesa: remove copy-propagation pass

2015-03-25 Thread Dave Airlie
On 26 March 2015 at 06:07, Ilia Mirkin imir...@alum.mit.edu wrote: So what do you do when someone goes to shadertoy.com which on average uses 1000 temps? Fall over in a heap, like every other driver on shadertoy, This would be raelly bad for r600g in its present state, since it doesn't go

[Mesa-dev] [PATCH] st_glsl_to_tgsi: only do mov copy propagation on temps (v2)

2015-03-25 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Don't propagate ARRAYs This should fix: https://bugs.freedesktop.org/show_bug.cgi?id=89759 v2: just specify arrays so we get input propagation Signed-off-by: Dave Airlie airl...@redhat.com Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker

[Mesa-dev] [PATCH] st_glsl_to_tgsi: only do mov copy propogation on temps

2015-03-25 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Don't propoate ARRAY This should fix: https://bugs.freedesktop.org/show_bug.cgi?id=89759 Signed-off-by: Dave Airlie airl...@redhat.com Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + 1 file changed, 1 insertion

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

2015-03-30 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com 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 EGL_MESA_drm_image, to return a dma-buf file

[Mesa-dev] [PATCH] r600g: fix op3 abs issue

2015-03-30 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This code to handle absolute values on op3 srcs was a bit too simple, it really needs a temp reg per src, not one per channel, make it easier and let sb clean up the mess. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89831 Signed-off-by: Dave

Re: [Mesa-dev] [PATCH excerpt] mesa: Wrap unlikely() around conditions leading to _mesa_error().

2015-03-02 Thread Dave Airlie
On 3 March 2015 at 10:37, Brian Paul bri...@vmware.com wrote: On 03/02/2015 04:03 PM, Eric Anholt wrote: Kenneth Graunke kenn...@whitecape.org writes: Generated by the following Coccinelle semantic patch: @@ expression E; @@ if ( -E +unlikely(E) ) { ... _mesa_error(...) ... }

Re: [Mesa-dev] egl dma-buf export extension again

2015-03-02 Thread Dave Airlie
On 3 March 2015 at 13:57, Dave Airlie airl...@gmail.com wrote: Okay I've revised this to add some more info to the interface, essentially I need to get the fourcc back so I can later pass it across the wire to the EGL_EXT_image_dma_buf_import, also the number of planes (though for my usecase

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

2015-03-02 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com (just resending with some cleanups/updates). 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

[Mesa-dev] egl dma-buf export extension again

2015-03-02 Thread Dave Airlie
Okay I've revised this to add some more info to the interface, essentially I need to get the fourcc back so I can later pass it across the wire to the EGL_EXT_image_dma_buf_import, also the number of planes (though for my usecase I don't care so much). The problem with EGL_MESA_drm_image is that

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

2015-03-02 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com 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 EGL_MESA_drm_image, to return a dma-buf file

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

2015-03-03 Thread Dave Airlie
On 4 March 2015 at 05:06, Chad Versace chad.vers...@intel.com wrote: On 03/03/2015 11:01 AM, Daniel Stone wrote: Hi, On 3 March 2015 at 18:40, Chad Versace chad.vers...@intel.com wrote: On 03/03/2015 12:13 AM, Daniel Stone wrote: On Tuesday, March 3, 2015, Dave Airlie airl...@gmail.com

[Mesa-dev] [PATCH] mesa/st: remove unused TexData

2015-03-04 Thread Dave Airlie
this isn't hooked up to anything at all from what I can see. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_cb_texture.c | 21 - src/mesa/state_tracker/st_texture.h| 6 -- 2 files changed, 27 deletions(-) diff --git a/src/mesa

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

2015-03-03 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com 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 EGL_MESA_drm_image, to return a dma-buf file

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

2015-03-03 Thread Dave Airlie
On 4 March 2015 at 05:23, Chad Versace chad.vers...@intel.com wrote: On 03/03/2015 11:13 AM, Dave Airlie wrote: On 4 March 2015 at 05:06, Chad Versace chad.vers...@intel.com wrote: On 03/03/2015 11:01 AM, Daniel Stone wrote: Hi, On 3 March 2015 at 18:40, Chad Versace chad.vers...@intel.com

Re: [Mesa-dev] [PATCH] draw: fix division-by-zero for empty geometry shaders

2015-03-01 Thread Dave Airlie
On 2 March 2015 at 01:23, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Reviewed-by: Dave Airlie airl...@redhat.com Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89372 --- src/gallium/auxiliary/draw/draw_pt_emit.c | 7 +-- 1 file changed, 5

Re: [Mesa-dev] [PATCH v2] glsl: add double support for packing varyings

2015-02-22 Thread Dave Airlie
and it seems like the best way to get double varying packing working. Reviewed-by: Dave Airlie airl...@redhat.com Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Packing *all* doubles is a bit of a hack... we shouldn't need to do it for dvec2/dvec4. And yet, here we are. This means

Re: [Mesa-dev] [PATCH] st/mesa: update arrays when the current attrib has been updated

2015-03-26 Thread Dave Airlie
Signed-off-by: Ilia Mirkin imir...@alum.mit.edu Seems sane, Reviiewed-by: Dave Airlie airl...@redhat.com Dave. --- src/mesa/state_tracker/st_atom_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker

[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

[Mesa-dev] [PATCH] mesa: finish implementing ARB_texture_stencil8 (v5)

2015-04-21 Thread Dave Airlie
. (Ilia) Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/extensions.c | 1 + src/mesa/main/fbobject.c| 9 +--- src/mesa/main/texgetimage.c | 50 - src/mesa/main/teximage.c| 3 ++- 4 files changed, 58 insertions(+), 5 deletions

[Mesa-dev] [PATCH 3/4] docs: mark off texture_stencil8 (v2.1)

2015-04-21 Thread Dave Airlie
copy drivers from the stencil_texturing list, softpipe is definitely broken for stencil texturing since it uses float, but I'll look at that later. v2.1: update relnotes Signed-off-by: Dave Airlie airl...@redhat.com --- docs/GL3.txt | 2 +- docs/relnotes/10.6.0.html | 1 + 2 files

[Mesa-dev] [PATCH 2/4] st/mesa: add ARB_texture_stencil8 support (v4)

2015-04-21 Thread Dave Airlie
to use a stencil only format for picking the format for the texture view. v3: hit fallback for getteximage v4: put s8 back in front, it shouldn't get picked now (Ilia) Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_atom_texture.c | 14 ++ src/mesa

[Mesa-dev] [PATCH 4/4] mesa/teximage: use correct extension for accept stencil texture.

2015-04-21 Thread Dave Airlie
This was using the wrong extension, ARB_stencil_texturing doesn't mention any changes in this area. (This should only be pushed once Intel supports stencil8 and fixes meta.) Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1

[Mesa-dev] ARB_texture_stencil8 repost

2015-04-21 Thread Dave Airlie
This has some fixups since last version, I've moved the teximage patch to the end someone from Intel can fix that up once they add stencil8 to i965 and test it. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH 1/4] mesa: finish implementing ARB_texture_stencil8 (v4)

2015-04-21 Thread Dave Airlie
Parts of this were implemented previously, so finish it off. v2: fix getteximage falling into the integer check add fixes for the FBO paths, (fbo-stencil8 test). v3: fix getteximage path harder. v4: remove swapbytes from getteximage path (Ilia) Signed-off-by: Dave Airlie airl...@redhat.com

Re: [Mesa-dev] [PATCH] st/mesa: update stencil surface if it comes from texture

2015-04-25 Thread Dave Airlie
On 25 April 2015 at 09:18, Ilia Mirkin imir...@alum.mit.edu wrote: Now that ARB_texture_stencil8 is supported, this might happen. Seems logical, would be nice to have a piglit for it, Reviewed-by: Dave Airlie airl...@redhat.com ___ mesa-dev mailing

[Mesa-dev] [PATCH] softpipe: fix stencil write to use an integer value

2015-04-22 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes a number of regressions since 61393bdcdc3b63624bf6e9730444f5e9deeedfc8 u_tile: fix stencil texturing tests under softpipe should fix: https://bugs.freedesktop.org/show_bug.cgi?id=89960 Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium

[Mesa-dev] [PATCH 06/23] glsl: Make `subroutine` a reserved keyword

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/glsl/glsl_lexer.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll index 2785ed1..febf2d2 100644 --- a/src/glsl/glsl_lexer.ll +++

[Mesa-dev] [PATCH 17/23] mesa/mtypes: add gl_subroutine_function and uniform storage to shader

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the necessary storage for subroutine info to gl_shader. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/mtypes.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h

[Mesa-dev] [PATCH 12/23] mesa: add inline conversion functions for ARB_shader_subroutine

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This handles converting the shader stages to the internal prefix along with the program resource interfaces. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/shaderobj.h | 84 +++ 1 file changed, 84

[Mesa-dev] [PATCH 02/23] glapi: Add ARB_shader_subroutine functions and enums

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/mapi/glapi/gen/ARB_shader_subroutine.xml | 84 src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml| 6 +- 3 files changed, 90

[Mesa-dev] [PATCH 07/23] glsl: Add production for subroutine qualifier

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz This covers two of the three uses of 'subroutine': - Subroutine type declarations - Subroutine uniform declarations Support for the `subroutine (type, ...)` form will be added in a later commit. Signed-off-by: Chris Forbes chr...@ijw.co.nz ---

[Mesa-dev] [PATCH 05/23] glsl: Add extension plumbing and define for ARB_shader_subroutine

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ src/glsl/standalone_scaffolding.cpp | 1 + 4 files changed, 7 insertions(+)

[Mesa-dev] [PATCH 10/23] glsl: Disallow 'subroutine' as a general type qualifier

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/glsl/ast_to_hir.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 7836936..90b732c 100644 --- a/src/glsl/ast_to_hir.cpp +++

[Mesa-dev] [PATCH 09/23] glsl: Exclude 'subroutine' from has_qualifier()

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/glsl/ast_type.cpp | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp index b596cd5..74b1ab5 100644 --- a/src/glsl/ast_type.cpp +++

[Mesa-dev] [PATCH 16/23] glsl/ir: add subroutine lowering pass

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This lowers the enhanced ir_call using the lookaside table of subroutines into an if ladder. This initially was done at the AST level but it caused some ordering issues so a separate pass was required. Signed-off-by: Dave Airlie airl...@redhat.com --- src

[Mesa-dev] [PATCH 21/23] mesa: fill out the ARB_shader_subroutine APIs

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fleshes out the APIs, using the program resource APIs where they should match. It also sets the default values to valid subroutines. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/shaderapi.c | 430

[Mesa-dev] [PATCH 18/23] glsl: add uniform and program resource support

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds linker support for subroutine uniforms, they have some subtle differences from real uniforms, we also hide them and they are given internal uniform names. This also adds the subroutine locations and subroutine uniforms to the program resource

[Mesa-dev] [PATCH 15/23] glsl: add ast/parser support for subroutine parsing storage

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is the guts of the GLSL parser and AST support for shader subroutines. The code creates a subroutine type in the parser, and uses that there to validate the identifiers. The parser also distinguishes between subroutine types/function prototypes /uniforms

[Mesa-dev] [PATCH 03/23] mesa: Add extension tracking for arb_shader_subroutine

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 3d4965c..dfb1a9d 100644 ---

[Mesa-dev] [PATCH 01/23] mesa: Add stubs for ARB_shader_subroutine entrypoints

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/mesa/main/shaderapi.c | 63 +++ src/mesa/main/shaderapi.h | 35 ++ 2 files changed, 98 insertions(+) diff --git

[Mesa-dev] [PATCH 23/23] st/mesa: enable shader subroutine

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com I'm not sure if we shouldn't enable this everywhere and rip out the API checks, discuss, Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker

[Mesa-dev] [PATCH 04/23] mesa: Add glGet support for ARB_shader_subroutine implementation limits

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/mesa/main/config.h | 6 ++ src/mesa/main/get.c | 1 + src/mesa/main/get_hash_params.py | 4 src/mesa/main/tests/enum_strings.cpp | 9 + 4 files changed, 20

[Mesa-dev] ARB_shader_subroutine - first try

2015-04-23 Thread Dave Airlie
Hey, This is my first submission of ARB_shader_subroutine, it's been through a few internal revisions in my brain, and its based on some parser work from Chris, but I may merge that stuff into mine as I change his stuff heavily. I implemented this by extending ir_call in the end and adding a

[Mesa-dev] [PATCH 11/23] glsl/types: add new subroutine type

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This type will be used to store the name of subroutine types as in subroutine void myfunc(void); will store myfunc into a subroutine type. This is required to the parser can identify a subroutine type in a uniform decleration as a valid type, and also

[Mesa-dev] [PATCH 13/23] glsl/ir: add subroutine information storage to ir_function

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com We need to store two sets of info into the ir_function, if this is a function definition with a subroutine list (subroutine_def) or if it a subroutine prototype. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ir.cpp | 4 src

[Mesa-dev] [PATCH 14/23] glsl/ir: allow ir_call to handle subroutine calling

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds a ir_variable which contains the subroutine uniform and an array rvalue for the deref of that uniform, these are stored in the ir_call and lowered later. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ir.h | 21 - 1

[Mesa-dev] [PATCH 08/23] glsl: Add production for subroutine qualifier with type list

2015-04-23 Thread Dave Airlie
From: Chris Forbes chr...@ijw.co.nz Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/glsl/glsl_parser.yy | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 743cf26..97507eb 100644 --- a/src/glsl/glsl_parser.yy +++

[Mesa-dev] [PATCH 22/23] st/mesa: add subroutine bits

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just add support for the subroutine type to the glsl-tgsi convertor. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker

[Mesa-dev] [PATCH 19/23] program_resource: add subroutine support

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fleshes out the ARB_program_query support for the APIs that ARB_shader_subroutine introduces, leaving some TODOs for later addition. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/shader_query.cpp | 46

[Mesa-dev] [PATCH 20/23] program: add subroutine uniform support

2015-04-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Add support for the subroutine uniform type ir-mesa.cpp Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/program/ir_to_mesa.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp

[Mesa-dev] [PATCH 4/8] glsl: add ARB_vertex_attrib_64bit support.

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just more boilerplate stuff. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ast_to_hir.cpp | 3 +++ src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ 4 files changed, 9

[Mesa-dev] [PATCH 7/8] mesa/vbo: add support for 64-bit vertex attributes. (v1)

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds support in the vbo and array code to handle double vertex attributes. v0.2: merge code to handle doubles in vbo layer. v1: don't use v0, merge api_array elt code. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/api_arrayelt.c

[Mesa-dev] [PATCH 6/8] glsl: check total count of multi-slot double vertex attribs

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The spec is vague all over the place about this, but this seems to be the intent, we can probably make this optional later if someone makes hw that cares and writes a driver. Basically we need to double count some of the d types but only for totalling

[Mesa-dev] [PATCH 8/8] st/mesa: add double input support including lowering (v3)

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This takes a different approach to previously, we cannot index into the inputMapping with anything but the mesa attribute index, so we can't use the just add one to index trick, we need more info to add one to it after we've mapped the input. (Fixed copy

[Mesa-dev] [PATCH 5/8] glsl: track which program inputs are doubles

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com instead of doing the attempts at dual slot handling here, let the backend do it. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ir_set_program_inouts.cpp | 14 ++ src/mesa/main/mtypes.h | 1 + 2 files changed, 3

[Mesa-dev] [PATCH 2/8] mapi: add GL_ARB_vertex_attrib_64bit support

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the glapi bits. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml | 70 ++ src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml

[Mesa-dev] [PATCH 3/8] mesa: add ARB_vertex_attrib_64bit to extensions. (v2)

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just add the boilerplate bits. v2: add to version.c Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + src/mesa/main/version.c| 2 +- 3 files changed, 3 insertions(+), 1 deletion

[Mesa-dev] [PATCH 1/8] st/glsl_to_tgsi: fix ir_assignment hack doing bad things for doubles

2015-04-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This hack for fixing gl_FragDepth apparantly caused a GLSL shader outputting a single double to try and output a dvec4, but we hadn't assigned outputs for the secondary bit. This avoids going into the hack code for scalar doubles. Signed-off-by: Dave Airlie

[Mesa-dev] ARB_vertex_attrib_64bit support (2nd posting I think)

2015-04-29 Thread Dave Airlie
The biggest change in this series is the attribute slot counting code in patch 6, and some cleanups in patch 8. I think this isn't going to improve itself much more out of tree, Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

Re: [Mesa-dev] [PATCH] softpipe: fix another stencil-as-float issue

2015-04-27 Thread Dave Airlie
On 26 April 2015 at 06:17, srol...@vmware.com wrote: From: Roland Scheidegger srol...@vmware.com Oh indeed, thanks, Reviewed-by: Dave Airlie airl...@redhat.com Hopefully this is the last one now (for texture X32_S8X24_UINT views). +4 piglits. Bugzilla: https://bugs.freedesktop.org

Re: [Mesa-dev] [PATCH 4/8] glsl: add ARB_vertex_attrib_64bit support.

2015-05-04 Thread Dave Airlie
On 5 May 2015 at 09:40, Ian Romanick i...@freedesktop.org wrote: On 04/29/2015 06:13 PM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com Just more boilerplate stuff. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ast_to_hir.cpp | 3 +++ src/glsl/glcpp/glcpp

Re: [Mesa-dev] [PATCH 6/8] glsl: check total count of multi-slot double vertex attribs

2015-05-04 Thread Dave Airlie
On 5 May 2015 at 09:47, Ian Romanick i...@freedesktop.org wrote: On 04/29/2015 06:14 PM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com The spec is vague all over the place about this, but this seems to be the intent, we can probably make this optional later if someone makes hw

Re: [Mesa-dev] [PATCH 5/8] glsl: track which program inputs are doubles

2015-05-04 Thread Dave Airlie
On 5 May 2015 at 09:53, Ian Romanick i...@freedesktop.org wrote: On 04/29/2015 06:14 PM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com instead of doing the attempts at dual slot handling here, let the backend do it. Just curious... why? It seems like everyone wants the same

Re: [Mesa-dev] [PATCH 2/9] doc/egl: Remove depreciated EGL_SOFTWARE

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: EGL_SOFTWARE is not supported anywhere in the code, whereas LIBGL_ALWAYS_SOFTWARE is. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Dave Airlie airl...@redhat.com --- docs/egl.html | 8 1 file changed, 8 deletions

Re: [Mesa-dev] [PATCH 1/9] egl/wayland: properly destroy wayland objects

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: the wl_registry and the wl_queue allocated weren't destroyed. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Dave Airlie airl...@redhat.com --- src/egl/drivers/dri2/egl_dri2.c | 2 ++ src/egl/drivers/dri2

Re: [Mesa-dev] [PATCH 3/9] glx/dri3: Add additional check for gpu offloading case

2015-05-05 Thread Dave Airlie
-by: Axel Davy axel.d...@ens.fr Reviewed-by: Dave Airlie airl...@redhat.com --- src/glx/dri3_glx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 1ddc723..fa38513 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -1985,6 +1985,11

Re: [Mesa-dev] [PATCH 4/9] egl/wayland: Add support for render-nodes

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: It is possible the server advertises a render-node. In that case no authentication is needed, and Gem names are forbidden. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Dave Airlie airl...@redhat.com

[Mesa-dev] [resend] one of the vertex_attrib_64bit patches

2015-05-05 Thread Dave Airlie
Mainly for Ian, this is the fix to the outstanding patch, with an R-b on this I think they due a push. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] glsl: add ARB_vertex_attrib_64bit support. (v2)

2015-05-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just more boilerplate stuff. v2: bad fallthrough on versioning, this is my ugly but self contained solution (Ian) Reviewed-by: Ilia Mirkin imir...@alum.mit.edu Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ast_to_hir.cpp | 3 +++ src

Re: [Mesa-dev] [PATCH 7/9] egl/wayland: assume EGL_WINDOW_BIT

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: Only EGL_WINDOW_BIT is supported. Remove tests related. Is this there no plans to support pixmap/pbuffer/ or any of the other bits? Seems like a step in the wrong direction if we really should be supporting other things than WINDOW_BIT

Re: [Mesa-dev] [PATCH 5/9] egl/wayland: Implement DRI_PRIME support

2015-05-05 Thread Dave Airlie
. Copy the content at every swap to a buffer with no tiling that we share with the server. This is similar to the glx dri3 DRI_PRIME implementation. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Dave Airlie airl...@redhat.com ___ mesa-dev

[Mesa-dev] [PATCH] glsl/ast: don't implicit convert from double to float

2015-05-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Implicit conversion can only happen the other way. This fixes a bug I just saw from writing an incorrect test. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/ast_to_hir.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glsl

Re: [Mesa-dev] [PATCH 8/9] egl/wayland: Implement swrast support

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: Signed-off-by: Axel Davy axel.d...@ens.fr I think I'd like to see the os-compatibility ported code be in a separate file, I wonder if any of it would be useful in other places, But even that isn't a major problem, Reviewed-by: Dave

Re: [Mesa-dev] [PATCH 9/9] egl/swrast: enable config extension for swrast

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy axel.d...@ens.fr wrote: Enables to use dri config for swrast, like vblank_mode. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Dave Airlie airl...@redhat.com --- src/egl/drivers/dri2/egl_dri2.c| 21 ++--- src/gallium

[Mesa-dev] [PATCH] r600: use pipe-hw prim convert from radeonsi

2015-05-10 Thread Dave Airlie
This avoids future addition to PIPE_PRIM_ from causing regressions on r600g. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/drivers/r600/r600_state_common.c | 31 ++-- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/gallium/drivers/r600

Re: [Mesa-dev] [PATCH 8/8] st/mesa: add double input support including lowering (v3)

2015-05-04 Thread Dave Airlie
On 30 April 2015 at 13:23, Ilia Mirkin imir...@alum.mit.edu wrote: On Wed, Apr 29, 2015 at 9:14 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This takes a different approach to previously, we cannot index into the inputMapping with anything but the mesa

Re: [Mesa-dev] [PATCH 1/3] gallium/util: fix blitter sampler view target initialization

2015-05-12 Thread Dave Airlie
On 13 May 2015 at 12:36, srol...@vmware.com wrote: From: Roland Scheidegger srol...@vmware.com This was missing, and drivers relying on the target in the view could get into quite some trouble. Missing signoff, otherwise Reviewed-by: Dave Airlie airl...@redhat.com --- src/gallium

[Mesa-dev] [PATCH] i965/cs: drop explicit initialisers in C++ file

2015-05-12 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com gcc 4.4.7 really doesn't like them, and they aren't standard C++, they seem to be a gcc extension. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/drivers/dri/i965/brw_cs.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [Mesa-dev] [PATCH 00/15] Make ARB_direct_state_access exclusive to core profile

2015-05-18 Thread Dave Airlie
On 19 May 2015 at 11:02, Ian Romanick i...@freedesktop.org wrote: On 05/18/2015 05:35 PM, Ian Romanick wrote: On 05/18/2015 02:34 PM, Dave Airlie wrote: On 19 May 2015 at 07:28, Ian Romanick i...@freedesktop.org wrote: With the patches already on the piglit list, the only change

Re: [Mesa-dev] [PATCH 00/15] Make ARB_direct_state_access exclusive to core profile

2015-05-18 Thread Dave Airlie
On 19 May 2015 at 07:28, Ian Romanick i...@freedesktop.org wrote: With the patches already on the piglit list, the only change is gettextureimage-formats, gettextureimage-formats init-by-rendering, and gettextureimage-luminance change from pass to skip. This might be a naive question, with

[Mesa-dev] software tessellator

2015-05-17 Thread Dave Airlie
don't suppose anyone ever wrote one that we could reuse for softpipe? Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] st/mesa: add a debug option to compile shaders at link time

2015-04-14 Thread Dave Airlie
On 14 April 2015 at 22:36, Marek Olšák mar...@gmail.com wrote: Ping. This is required for shader-db. Marek Reviewed-by: Dave Airlie airl...@redhat.com Only one question, could we pick a better key than all 0? Dave. ___ mesa-dev mailing list mesa

[Mesa-dev] [PATCH] u_tile: fix stencil texturing tests under softpipe

2015-04-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com arb_stencil_texturing-draw failed under softpipe because we got a float back from the texturing function, and then tried to U2F it, stencil texturing returns ints, so we should fix the tiling to retrieve the stencil values as integers not floats. Signed-off

Re: [Mesa-dev] [PATCH v2] r600g/sb: Enable SB for geometry shaders

2015-04-06 Thread Dave Airlie
them. Enable only for evergreen/cayman as there are a few unexplained GS piglit regressions on R6xx/R7xx with SB enabled otherwise. Signed-off-by: Glenn Kennard glenn.kenn...@gmail.com yay looks good! Reviewed-by: Dave Airlie airl...@redhat.com

Re: [Mesa-dev] [PATCH] st/mesa: improve ARB_texture_stencil8 support

2015-04-05 Thread Dave Airlie
On 5 April 2015 at 21:42, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com 1) Try selecting X24S8 and S8X24 first. 2) Make sure depth-stencil formats are always renderable. Does any hw support S8 for rendering at all do you know? (anyone else) I'd assume you'd want

[Mesa-dev] [PATCH 1/4] mesa/teximage: use correct extension for accept stencil texture.

2015-04-05 Thread Dave Airlie
This was using the wrong extension, ARB_stencil_texturing doesn't mention any changes in this area. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c

<    6   7   8   9   10   11   12   13   14   15   >