[Mesa-dev] [PATCH 2/7] glsl/glsl_parser.yy: vs12 doesn't have strcasecmp, use _stricmp instead

2014-07-22 Thread Alon Levy
Signed-off-by: Alon Levy --- src/glsl/glsl_parser.yy | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index faaf438..25370cd 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -26,6 +26,10 @@ #include #include

[Mesa-dev] [PATCH 4/7] u_math.h: fix 64 to 32 bit truncation warning

2014-07-22 Thread Alon Levy
Signed-off-by: Alon Levy --- This file is common so this warning comes up a lot. src/gallium/auxiliary/util/u_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 60995d7..7c1ac4a 100644 --- a

[Mesa-dev] [PATCH 3/7] gallium/u_debug_flush.c: fix build error for vs12

2014-07-22 Thread Alon Levy
use util_snprintf that is already defined in other systems by u_string.h to as snprintf, so to not change behavior in other systems. Signed-off-by: Alon Levy --- src/gallium/auxiliary/util/u_debug_flush.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 0/7] vs12 cleanup patches

2014-07-22 Thread Alon Levy
2.dll) scons 2.3.2 seems broken wrt def files, I opened issue http://scons.tigris.org/issues/show_bug.cgi?id=2966 and used the patch included there to successfully build the dll. Alon Alon Levy (7): gallium/u_math.h: don't redefine INFINITY and NAN in VS2013 glsl/glsl_parser.yy: vs12 do

[Mesa-dev] [PATCH 1/7] gallium/u_math.h: don't redefine INFINITY and NAN in VS2013

2014-07-22 Thread Alon Levy
Under VS2013 compiler that is distinguished by _MSC_VER of 1800 those two are already defined, use the SDK definition. Another option would have been to undef and use the definitions here - I'm not sure which is better. --- This removes warnings, this patch is not actually required to build. src

[Mesa-dev] [PATCH 6/7] glsl: fix inconsistent struct/class warning in vs12

2014-07-22 Thread Alon Levy
Remove incorrect struct prefix, ir_variable is a class Signed-off-by: Alon Levy --- src/glsl/opt_dead_builtin_varyings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/opt_dead_builtin_varyings.cpp b/src/glsl/opt_dead_builtin_varyings.cpp index c2a306e..f98a21f

[Mesa-dev] [PATCH 5/7] wgl: stw_pixelformat_get_info: correct type for index variable

2014-07-22 Thread Alon Levy
Signed-off-by: Alon Levy --- src/gallium/state_trackers/wgl/stw_pixelformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c index 1ef302d..7e5561b 100644 --- a/src/gallium

[Mesa-dev] [PATCH 7/7] mesa/shaderimage.c: fix inconsistent sign warning

2014-07-22 Thread Alon Levy
Signed-off-by: Alon Levy --- src/mesa/main/shaderimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c index d1e752d..298ede2 100644 --- a/src/mesa/main/shaderimage.c +++ b/src/mesa/main/shaderimage.c @@ -383,7

[Mesa-dev] [PATCH] mesa/imports.h: VS2013 doesn't provide strcasecmp

2014-07-24 Thread Alon Levy
From: Alon Levy Fixed build error at glsl_parser.yy for Visual Studio 2013 Signed-off-by: Alon Levy --- Thanks for the review. I verified and VS2013 (vs12) doesn't include strcasecmp, I corrected the file you mentioned, here is a better patch. (this supercedes the previous patch) src

Re: [Mesa-dev] [PATCH] mesa/imports.h: VS2013 doesn't provide strcasecmp

2014-07-24 Thread Alon Levy
On 07/24/2014 02:12 PM, Alon Levy wrote: > From: Alon Levy Forgot to add Ian as cc. > > Fixed build error at glsl_parser.yy for Visual Studio 2013 > > Signed-off-by: Alon Levy > --- > Thanks for the review. I verified and VS2013 (vs12) doesn't include > strca

Re: [Mesa-dev] [PATCH 2/7] glsl/glsl_parser.yy: vs12 doesn't have strcasecmp, use _stricmp instead

2014-07-24 Thread Alon Levy
On 07/24/2014 07:50 PM, Emil Velikov wrote: > On 24/07/14 17:07, Matt Turner wrote: >> On Thu, Jul 24, 2014 at 5:44 AM, Emil Velikov >> wrote: >>> On 23/07/14 22:16, Ian Romanick wrote: >>>> On 07/22/2014 02:07 PM, Alon Levy wrote: >>>>>

Re: [Mesa-dev] [PATCH] mesa/imports.h: VS2013 doesn't provide strcasecmp

2014-07-28 Thread Alon Levy
On 07/24/2014 02:12 PM, Alon Levy wrote: > From: Alon Levy > > Fixed build error at glsl_parser.yy for Visual Studio 2013 > > Signed-off-by: Alon Levy Not required, my bad, I was looking at an old master, patch 8c879ac1977a265ae513a5569ee3af35dbc6b1aa already does this > --

Re: [Mesa-dev] [PATCH 1/7] gallium/u_math.h: don't redefine INFINITY and NAN in VS2013

2014-07-28 Thread Alon Levy
On 07/28/2014 07:13 PM, Brian Paul wrote: > On 07/22/2014 03:07 PM, Alon Levy wrote: >> Under VS2013 compiler that is distinguished by _MSC_VER of 1800 those two >> are already defined, use the SDK definition. >> >> Another option would have been to undef and use th

[Mesa-dev] [RFC 0/3] Fix several segmentation faults related to depth buffer

2011-09-05 Thread Alon Levy
ll, didn't reproduce): 734183 - [abrt] gnome-shell-3.1.4-2.gite7b9933.fc16: prepare_depthbuffer 717140 -[abrt] compiz-0.9.4-2.fc15: prepare_depthbuffer Alon Levy (3): i965: prepare_depthbuffer: fix segfault, rhbz#735794 i965: prepare_depthbuffer: don't update NULL region'ed

[Mesa-dev] [RFC 1/3] i965: prepare_depthbuffer: fix segfault, rhbz#735794

2011-09-05 Thread Alon Levy
Also fixes a segfault immediatelly after in the same case, i.e. srb->region is also NULL in the run of virtualbox described in the bug report in the subject. Signed-off-by: Alon Levy --- src/mesa/drivers/dri/i965/brw_misc_state.c |4 ++-- 1 files changed, 2 insertions(+), 2 deleti

[Mesa-dev] [RFC 2/3] i965: prepare_depthbuffer: don't update NULL region'ed surface, rhbz#735794

2011-09-05 Thread Alon Levy
--- src/mesa/drivers/dri/i965/brw_wm_surface_state.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index ad90978..abaed60 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_

[Mesa-dev] [RFC 3/3] i965: emit_depthbuffer: fix segfault, rhbz#735794

2011-09-05 Thread Alon Levy
Signed-off-by: Alon Levy --- src/mesa/drivers/dri/i965/brw_misc_state.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 479cf82..f102bc6 100644 --- a/src/mesa/drivers/dri

Re: [Mesa-dev] [RFC 0/3] Fix several segmentation faults related to depth buffer

2011-09-12 Thread Alon Levy
On Tue, Sep 06, 2011 at 03:11:25PM -0300, Eugeni Dodonov wrote: > On Mon, Sep 5, 2011 at 16:37, Alon Levy wrote: > > > Fixes three segmentation faults where it is wrongly assumed the depth > > buffer's > > renderbuffer's region is not NULL. > > > >

Re: [Mesa-dev] X/Graphics DevRoom at FOSDEM 2012? (4-5 February)

2011-09-20 Thread Alon Levy
On Tue, Sep 13, 2011 at 10:49:33PM +0200, Luc Verhaegen wrote: > (after my short talk here at XDC chicago, let's get this out to > everyone) > > It's time again to start planning for the next FOSDEM. After our poor > showing in 2010 (where in the end openmoko got given half our time, as > we ha

Re: [Mesa-dev] X/Graphics DevRoom at FOSDEM 2012? (4-5 February)

2011-09-20 Thread Alon Levy
On Tue, Sep 20, 2011 at 12:32:21PM +0200, Luc Verhaegen wrote: > On Tue, Sep 20, 2011 at 12:18:15PM +0300, Alon Levy wrote: > > On Tue, Sep 13, 2011 at 10:49:33PM +0200, Luc Verhaegen wrote: > > > ... > > > deliver. So, with a deadline of oktober 1st, i am now

[Mesa-dev] [PATCH] gallium/test/trivial: make it build

2011-06-22 Thread Alon Levy
Signed-off-by: Alon Levy --- src/gallium/tests/trivial/Makefile |9 +++-- src/gallium/tests/trivial/quad-tex.c |4 ++-- src/gallium/tests/trivial/tri.c |4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/gallium/tests/trivial/Makefile b/src