Re: [Mesa-dev] [PATCH] glsl parser: Select typelist as early as possible.

2012-04-13 Thread Kenneth Graunke
On 04/13/2012 02:45 PM, Eric Anholt wrote: On Wed, 11 Apr 2012 10:56:51 +0200, Olivier Galibert wrote: Type selection must be extended w.r.t version and extension lines as soon as it is possible, and in any case before the lookahead is done to check the nature of the next line. Otherwise code

Re: [Mesa-dev] [PATCH 01/11] gtest: Don't actually install a library.

2012-04-13 Thread Kenneth Graunke
On 04/13/2012 04:38 PM, Eric Anholt wrote: The whole point of importing it was that you're not supposed to install this library. --- src/gtest/Makefile.am |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtest/Makefile.am b/src/gtest/Makefile.am index 149de6e..3824d71

Re: [Mesa-dev] [PATCH 10/11] docs: Update GL3.0 things that got done.

2012-04-13 Thread Kenneth Graunke
On 04/13/2012 11:27 PM, Dave Airlie wrote: On Sat, Apr 14, 2012 at 12:38 AM, Eric Anholt wrote: --- docs/GL3.txt |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 07c6cd9..4393b22 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -23,

Re: [Mesa-dev] [PATCH 06/11] glsl: Add remaining *sampler2DRect* texture functions.

2012-04-13 Thread Kenneth Graunke
On 04/13/2012 04:38 PM, Eric Anholt wrote: Fixes the new piglit texelFetch() tests on these. Note that the rest of the new functions are not tested (same as the non-2DRect versions of most of them). --- src/glsl/builtins/profiles/140.frag | 68 +++ src/glsl/b

Re: [Mesa-dev] [PATCH 10/11] docs: Update GL3.0 things that got done.

2012-04-13 Thread Dave Airlie
On Sat, Apr 14, 2012 at 12:38 AM, Eric Anholt wrote: > --- >  docs/GL3.txt |    5 ++--- >  1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/docs/GL3.txt b/docs/GL3.txt > index 07c6cd9..4393b22 100644 > --- a/docs/GL3.txt > +++ b/docs/GL3.txt > @@ -23,7 +23,7 @@ GL_EXT_texture_share

Re: [Mesa-dev] [PATCH 01/11] gtest: Don't actually install a library.

2012-04-13 Thread Matt Turner
On Fri, Apr 13, 2012 at 7:38 PM, Eric Anholt wrote: > The whole point of importing it was that you're not supposed to > install this library. > --- >  src/gtest/Makefile.am |    2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gtest/Makefile.am b/src/gtest/Makefile.am > i

Re: [Mesa-dev] [PATCH 4/6] glsl: Make a little tracking class for emitting IR lists.

2012-04-13 Thread Eric Anholt
On Mon, 09 Apr 2012 23:29:09 -0700, Kenneth Graunke wrote: > On 04/09/2012 02:22 PM, Eric Anholt wrote: > > @@ -1346,11 +1325,10 @@ emit_instructions(struct texenv_fragment_program *p) > > static struct gl_shader_program * > > create_new_program(struct gl_context *ctx, struct state_key *key)

[Mesa-dev] [PATCH 06/11] glsl: Add remaining *sampler2DRect* texture functions.

2012-04-13 Thread Eric Anholt
Fixes the new piglit texelFetch() tests on these. Note that the rest of the new functions are not tested (same as the non-2DRect versions of most of them). --- src/glsl/builtins/profiles/140.frag | 68 +++ src/glsl/builtins/profiles/140.vert | 68 ++

[Mesa-dev] [PATCH 09/11] docs: Update that ARB_draw_instanced is on in i965.

2012-04-13 Thread Eric Anholt
--- docs/GL3.txt |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 6621e75..07c6cd9 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -43,11 +43,11 @@ GLX_ARB_create_context (GLX 1.4 is required) DONE GL 3.1: GLSL 1.40

[Mesa-dev] [PATCH 11/11] docs: Update GLSL 1.40 status.

2012-04-13 Thread Eric Anholt
--- docs/GL3.txt |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 4393b22..a4f8ce7 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -41,7 +41,8 @@ GLX_ARB_create_context (GLX 1.4 is required) DONE GL 3.1: -GLSL 1.40

[Mesa-dev] [PATCH 10/11] docs: Update GL3.0 things that got done.

2012-04-13 Thread Eric Anholt
--- docs/GL3.txt |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 07c6cd9..4393b22 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -23,7 +23,7 @@ GL_EXT_texture_shared_exponentDONE (i965, r600, swrast) Float dep

[Mesa-dev] [PATCH 07/11] glsl: Refuse to link GLSL 1.40+ shaders that would use fixed function.

2012-04-13 Thread Eric Anholt
--- src/glsl/linker.cpp | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 6ba2972..5f8e883 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2225,6 +2225,20 @@ link_shaders(struct gl_context *ctx, struct gl_shader_pr

[Mesa-dev] [PATCH 08/11] docs: Update TBO support.

2012-04-13 Thread Eric Anholt
All I know of that needs finishing in Mesa is to enable the extension in a GL3.1 core context on i965 -- we're not going to expose it in non-3.1 core contexts. --- docs/GL3.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 3e0b25e..6621e75

[Mesa-dev] [PATCH 03/11] glsl: Fix comment typo in 1.40 work.

2012-04-13 Thread Eric Anholt
--- src/glsl/builtin_types.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/builtin_types.h b/src/glsl/builtin_types.h index 890c121..8c136e4 100644 --- a/src/glsl/builtin_types.h +++ b/src/glsl/builtin_types.h @@ -260,7 +260,7 @@ const glsl_type *const glsl_type::

[Mesa-dev] [PATCH 04/11] glsl: Add textureSize(*samplerBuffer) support.

2012-04-13 Thread Eric Anholt
Fixes the corresponding new tests in piglit. --- src/glsl/builtins/profiles/140.frag |4 src/glsl/builtins/profiles/140.vert |4 src/glsl/builtins/tools/texture_builtins.py |1 + 3 files changed, 9 insertions(+) diff --git a/src/glsl/builtins/profiles/140.fra

[Mesa-dev] [PATCH 02/11] mesa: Remove dead _mesa_sizeof_glsl_type().

2012-04-13 Thread Eric Anholt
--- src/mesa/main/shaderapi.c | 60 - src/mesa/main/shaderapi.h |3 --- 2 files changed, 63 deletions(-) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index e0f20b6..fd793a7 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mes

[Mesa-dev] [PATCH 05/11] glsl: Mark [iu]sampler{Buffer, 2DRect}as reserved in GLSL 1.40.

2012-04-13 Thread Eric Anholt
The non-integer versions were already reserved in 1.30, but apparently these were forgotten. Fixes piglit glsl-1.40/compiler/reserved/ --- src/glsl/glsl_lexer.ll |6 ++ src/glsl/glsl_parser.yy | 10 -- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/glsl/gls

[Mesa-dev] [PATCH 01/11] gtest: Don't actually install a library.

2012-04-13 Thread Eric Anholt
The whole point of importing it was that you're not supposed to install this library. --- src/gtest/Makefile.am |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtest/Makefile.am b/src/gtest/Makefile.am index 149de6e..3824d71 100644 --- a/src/gtest/Makefile.am +++ b/src/g

Re: [Mesa-dev] GLSL 1.40 and fixed function

2012-04-13 Thread Ian Romanick
On 04/13/2012 02:35 PM, Eric Anholt wrote: On Tue, 27 Mar 2012 10:41:09 -0700, Kenneth Graunke wrote: On 03/27/2012 10:31 AM, Ian Romanick wrote: On 03/26/2012 01:35 PM, Eric Anholt wrote: I've got a question for GLSL 1.40 that could use some interpretation: Section 1.2.5 in the spec says:

Re: [Mesa-dev] GLSL 1.40 and fixed function

2012-04-13 Thread Eric Anholt
On Tue, 27 Mar 2012 10:41:09 -0700, Kenneth Graunke wrote: > On 03/27/2012 10:31 AM, Ian Romanick wrote: > > On 03/26/2012 01:35 PM, Eric Anholt wrote: > >> I've got a question for GLSL 1.40 that could use some interpretation: > >> > >> Section 1.2.5 in the spec says: > >> "The following features

Re: [Mesa-dev] [PATCH] glsl parser: Select typelist as early as possible.

2012-04-13 Thread Eric Anholt
On Wed, 11 Apr 2012 10:56:51 +0200, Olivier Galibert wrote: > Type selection must be extended w.r.t version and extension lines as > soon as it is possible, and in any case before the lookahead is done > to check the nature of the next line. Otherwise code such as: > > #version 400 > > dmat

[Mesa-dev] [PATCH 10/10] gallium/u_gen_mipmap: don't release vertex buffer at end of frame / in glFlush

2012-04-13 Thread Marek Olšák
There's no reason to do that. The buffer being used for rendering is always mapped as unsynchronized. --- src/gallium/auxiliary/util/u_gen_mipmap.c | 17 - src/gallium/auxiliary/util/u_gen_mipmap.h |6 -- src/mesa/state_tracker/st_cb_flush.c |4 3 files chan

[Mesa-dev] [PATCH 09/10] gallium/u_blit: don't release vertex buffer at end of frame / in glFlush

2012-04-13 Thread Marek Olšák
There's no reason to do that. The buffer being used for rendering is always mapped as unsynchronized. --- src/gallium/auxiliary/util/u_blit.c | 17 - src/gallium/auxiliary/util/u_blit.h |5 - src/mesa/state_tracker/st_cb_flush.c |1 - 3 files changed, 4 insertions(+

[Mesa-dev] [PATCH 08/10] gallium: remove PIPE_TRANSFER_NOOVERWRITE, use equivalent UNSYNCHRONIZED

2012-04-13 Thread Marek Olšák
--- src/gallium/auxiliary/util/u_inlines.h |2 +- src/gallium/include/pipe/p_defines.h |1 - .../state_trackers/d3d1x/gd3d11/d3d11_context.h|2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/

[Mesa-dev] [PATCH 07/10] st/mesa: write vertices directly into the buffer for glClear fallback

2012-04-13 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_clear.c | 40 + src/mesa/state_tracker/st_context.h |1 - 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index f0c30b6..3cd8756 100

[Mesa-dev] [PATCH 06/10] st/mesa: use u_upload_mgr to upload vertices for glClear fallback

2012-04-13 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_clear.c | 71 + src/mesa/state_tracker/st_cb_clear.h |3 - src/mesa/state_tracker/st_cb_flush.c |1 - src/mesa/state_tracker/st_context.h |2 - 4 files changed, 11 insertions(+), 66 deletions(-) diff --git a/src/mesa/

[Mesa-dev] [PATCH 05/10] st/mesa: write vertices directly into the buffer in glDrawPixels

2012-04-13 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_drawpixels.c | 32 +--- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 5229cce..5e078a8 100644 --- a/src/mesa/state_tracker/st_c

[Mesa-dev] [PATCH 04/10] st/mesa: use u_upload_mgr to upload vertices for glDrawPixels

2012-04-13 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_drawpixels.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 18d0e53..5229cce 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.

[Mesa-dev] [PATCH 03/10] st/mesa: use u_upload_mgr to upload vertices for glDrawTexOES

2012-04-13 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_drawtex.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawtex.c b/src/mesa/state_tracker/st_cb_drawtex.c index 6144eb9..d57e629 100644 --- a/src/mesa/state_tracker/st_cb_drawtex.c

[Mesa-dev] [PATCH 02/10] st/mesa: write vertices directly into the buffer for glBitmap

2012-04-13 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_bitmap.c | 61 +--- src/mesa/state_tracker/st_context.h |1 - 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index c60a6fc..09152c7

[Mesa-dev] [PATCH 01/10] st/mesa: use u_upload_mgr to upload vertices for glBitmap

2012-04-13 Thread Marek Olšák
instead of recreating the vertex buffer for each draw_vbo call. --- src/mesa/state_tracker/st_cb_bitmap.c | 75 - src/mesa/state_tracker/st_context.c |3 + src/mesa/state_tracker/st_context.h |4 +- 3 files changed, 23 insertions(+), 59 deletions(-) d

[Mesa-dev] Proof-of-concept: Running Piglit on Wayland and X11/EGL

2012-04-13 Thread Chad Versace
I have been working for several weeks to enable Piglit to run on more platforms (Wayland, X11/EGL, Android) and to make OpenGL ES tests first-class citizens in Piglit. (For the Wayland folks, Piglit is Mesa's OpenGL test suite). There's still much work to do, but I wanted to announce this early be

Re: [Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

2012-04-13 Thread Dan Nicholson
On 4/13/12, Olivier Galibert wrote: > On Fri, Apr 13, 2012 at 11:06:18AM -0700, Ian Romanick wrote: >> On 04/13/2012 08:47 AM, nobled wrote: >> > Prevents this error with Automake 1.9: >> > >> > src/gallium/drivers/Makefile.am: C objects in subdir but >> > `AM_PROG_CC_C_O' not in `configure.ac' >>

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-13 Thread Marek Olšák
On Fri, Apr 13, 2012 at 8:24 PM, Jose Fonseca wrote: > Francisco, > > Sorry for the delay reviewing this, but I  haven't been able to dedicate some > time until now. > > Overall, it's a great piece of work! Just a few relatively minor > comments/requests. > > - Original Message - >> This

Re: [Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

2012-04-13 Thread Olivier Galibert
On Fri, Apr 13, 2012 at 11:06:18AM -0700, Ian Romanick wrote: > On 04/13/2012 08:47 AM, nobled wrote: > > Prevents this error with Automake 1.9: > > > > src/gallium/drivers/Makefile.am: C objects in subdir but > > `AM_PROG_CC_C_O' not in `configure.ac' > > autoreconf: automake failed with exit stat

[Mesa-dev] [PATCH] r600g: Use automake to generate Makefile

2012-04-13 Thread Tom Stellard
--- configure.ac |1 + src/gallium/drivers/r600/Makefile| 17 - src/gallium/drivers/r600/Makefile.am | 17 + 3 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 src/gallium/drivers/r600/Makefile create mode 100

Re: [Mesa-dev] [PATCH 1/9] glsl: consolidate code

2012-04-13 Thread Kenneth Graunke
On 04/13/2012 08:51 AM, nobled wrote: This function is about to get longer. --- src/glsl/glsl_parser_extras.cpp | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index ae7a365

Re: [Mesa-dev] [PATCH 1/9] glsl: consolidate code

2012-04-13 Thread Ian Romanick
On 04/13/2012 08:51 AM, nobled wrote: This just occurred to me... Wouldn't it be easier to push all the compiler / linker error messages into the debug log in one shot *after* compilation (or linking) is done? Since the messages all start with either warning: or error: and end with a \n, they

Re: [Mesa-dev] [PATCH] glsl parser: Select typelist as early as possible.

2012-04-13 Thread Ian Romanick
On 04/11/2012 01:56 AM, Olivier Galibert wrote: Type selection must be extended w.r.t version and extension lines as soon as it is possible, and in any case before the lookahead is done to check the nature of the next line. Otherwise code such as: #version 400 dmat2 function inverse(dmat

Re: [Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

2012-04-13 Thread Kenneth Graunke
On 04/13/2012 11:06 AM, Ian Romanick wrote: On 04/13/2012 08:47 AM, nobled wrote: Prevents this error with Automake 1.9: src/gallium/drivers/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac' autoreconf: automake failed with exit status: 1 What the heck is the differe

[Mesa-dev] [Bug 48535] Spurious GL_INVALID_OPERATION error generated by glColor()

2012-04-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48535 --- Comment #7 from Ian Romanick 2012-04-13 11:46:51 PDT --- I did a little poking at the sample case. It appears that the issue is related to display lists. Commenting out all of the glNewList and glEndList calls make the error stop occurring

Re: [Mesa-dev] [PATCH 1/2] glsl: Support GL_ARB_shading_language_include internally.

2012-04-13 Thread Eric Anholt
On Wed, 11 Apr 2012 10:46:51 +0200, Olivier Galibert wrote: > No hookup with GL yet. Planned to be used to simplify profiles. This is pretty cool. The payoff in patch 2 is huge. I'd just been thinking about how to get that sort of win, with just having a common file for each version along with

Re: [Mesa-dev] [PATCH 7/9] glcpp: pass gl_context to preprocess()

2012-04-13 Thread Carl Worth
On Fri, 13 Apr 2012 11:04:16 -0700, Ian Romanick wrote: > As a side comment, we should probably get the glcpp unit tests wired > into 'make check'. This did happen at one point. Oh, but was that removed again as part of de-automake-ification perhaps? I totally agree it would be very useful to

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-13 Thread Jose Fonseca
Francisco, Sorry for the delay reviewing this, but I haven't been able to dedicate some time until now. Overall, it's a great piece of work! Just a few relatively minor comments/requests. - Original Message - > This patch series is part of the ongoing work to put together a > compute

Re: [Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

2012-04-13 Thread Eric Anholt
On Fri, 13 Apr 2012 11:47:41 -0400, nobled wrote: > Prevents this error with Automake 1.9: > > src/gallium/drivers/Makefile.am: C objects in subdir but > `AM_PROG_CC_C_O' not in `configure.ac' > autoreconf: automake failed with exit status: 1 Reviewed-by: Eric Anholt pgp27MCZDDZWA.pgp Descrip

Re: [Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

2012-04-13 Thread Ian Romanick
On 04/13/2012 08:47 AM, nobled wrote: Prevents this error with Automake 1.9: src/gallium/drivers/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac' autoreconf: automake failed with exit status: 1 What the heck is the difference between AM_PROG_CC_C_0 and AC_PROG_CC? A

Re: [Mesa-dev] [PATCH 8/9] glcpp: add gl_context to glcpp_parser_t

2012-04-13 Thread Ian Romanick
On 04/13/2012 08:52 AM, nobled wrote: --- src/glsl/glcpp/glcpp-parse.y |5 - src/glsl/glcpp/glcpp.h |5 ++--- src/glsl/glcpp/pp.c |3 +-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y

Re: [Mesa-dev] [PATCH 7/9] glcpp: pass gl_context to preprocess()

2012-04-13 Thread Ian Romanick
On 04/13/2012 08:52 AM, nobled wrote: --- src/glsl/glcpp/glcpp.c|2 +- src/glsl/glcpp/glcpp.h|4 +++- src/glsl/glcpp/pp.c |3 ++- src/glsl/glsl_parser_extras.h |2 +- src/glsl/linker.cpp |2 -- src/glsl/main.cpp |2 +-

Re: [Mesa-dev] [PATCH 4/9] glsl: report errors via GL_ARB_debug_output

2012-04-13 Thread Ian Romanick
On 04/13/2012 08:51 AM, nobled wrote: --- src/glsl/glsl_parser_extras.cpp | 14 ++ src/glsl/standalone_scaffolding.cpp |6 ++ src/glsl/standalone_scaffolding.h |4 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/glsl/glsl_parser_extras

[Mesa-dev] [PATCH 9/9] glcpp: report errors via GL_ARB_debug_output

2012-04-13 Thread nobled
--- src/glsl/glcpp/glcpp.c |7 +++ src/glsl/glcpp/pp.c| 14 ++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/glsl/glcpp/glcpp.c b/src/glsl/glcpp/glcpp.c index bd6344b..3f20b2b 100644 --- a/src/glsl/glcpp/glcpp.c +++ b/src/glsl/glcpp/glcpp.c @@ -25,6

[Mesa-dev] [PATCH 8/9] glcpp: add gl_context to glcpp_parser_t

2012-04-13 Thread nobled
--- src/glsl/glcpp/glcpp-parse.y |5 - src/glsl/glcpp/glcpp.h |5 ++--- src/glsl/glcpp/pp.c |3 +-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 47ba54d..dd90a34 100644 --- a/src/glsl

[Mesa-dev] [PATCH 7/9] glcpp: pass gl_context to preprocess()

2012-04-13 Thread nobled
--- src/glsl/glcpp/glcpp.c|2 +- src/glsl/glcpp/glcpp.h|4 +++- src/glsl/glcpp/pp.c |3 ++- src/glsl/glsl_parser_extras.h |2 +- src/glsl/linker.cpp |2 -- src/glsl/main.cpp |2 +- src/glsl/test_optpass.cpp |2 +- 7 fi

[Mesa-dev] [PATCH 6/9] glsl: consolidate error/warning code

2012-04-13 Thread nobled
--- src/glsl/linker.cpp | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 49b6b8f..e2a5ef9 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -172,14 +172,23 @@ private: }; +static void +linker_ms

[Mesa-dev] [PATCH 5/9] glcpp: consolidate error/warning code

2012-04-13 Thread nobled
--- src/glsl/glcpp/pp.c | 33 +++-- 1 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/glsl/glcpp/pp.c b/src/glsl/glcpp/pp.c index 3640896..b0afed4 100644 --- a/src/glsl/glcpp/pp.c +++ b/src/glsl/glcpp/pp.c @@ -27,21 +27,32 @@ #include "glcpp.h" #i

[Mesa-dev] [PATCH 4/9] glsl: report errors via GL_ARB_debug_output

2012-04-13 Thread nobled
--- src/glsl/glsl_parser_extras.cpp | 14 ++ src/glsl/standalone_scaffolding.cpp |6 ++ src/glsl/standalone_scaffolding.h |4 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index

[Mesa-dev] [PATCH 3/9] glsl: add gl_context member

2012-04-13 Thread nobled
--- src/glsl/glsl_parser_extras.cpp |3 ++- src/glsl/glsl_parser_extras.h |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index d14124f..aade2e1 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src

[Mesa-dev] [PATCH 2/9] mesa: add _mesa_shader_error()

2012-04-13 Thread nobled
--- src/mesa/main/errors.c | 19 +++ src/mesa/main/errors.h |4 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index fcf873f..f03ebd3 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -106

[Mesa-dev] [PATCH 1/9] glsl: consolidate code

2012-04-13 Thread nobled
This function is about to get longer. --- src/glsl/glsl_parser_extras.cpp | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index ae7a365..d14124f 100644 --- a/src/glsl/glsl_parse

[Mesa-dev] [PATCH] autoconf: add AM_PROG_CC_C_O

2012-04-13 Thread nobled
Prevents this error with Automake 1.9: src/gallium/drivers/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac' autoreconf: automake failed with exit status: 1 --- configure.ac |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure

Re: [Mesa-dev] [PATCH] egl_dri2: drm: make sure back buffer is validated before making current

2012-04-13 Thread Mandeep Baines
On Fri, Apr 13, 2012 at 7:36 AM, Mandeep Singh Baines wrote: > Guarantee that the back buffer is validated by calling flush before > assigning the back buffer to current. > Attached is an app which reproduces the bug. > Signed-off-by: Mandeep Singh Baines > Cc: Ander Conselvan de Oliveira > Cc

[Mesa-dev] [PATCH] egl_dri2: drm: make sure back buffer is validated before making current

2012-04-13 Thread Mandeep Singh Baines
Guarantee that the back buffer is validated by calling flush before assigning the back buffer to current. Signed-off-by: Mandeep Singh Baines Cc: Ander Conselvan de Oliveira Cc: Benjamin Franzke Cc: Kristian Hogsberg Cc: David Reveman Cc: Stephane Marchesin --- src/egl/drivers/dri2/platform