[Mesa-dev] [PATCH] glsl: fix structure splitting for ir_texture

2012-01-21 Thread Morgan Armand
This patch fix an assertion in in-parameter-struct and normal-parameter-struct. However, both tests still fail because _mesa_get_sampler_uniform_value handles global uniform samplers only. Looking at the specification, it's not really clear that sampler*D are valid as a structure member. >From

[Mesa-dev] [PATCH] softpipe: remove the 32bits limitation on depth(-stencil) formats

2011-12-07 Thread Morgan Armand
This patch remove the 32bits limitation. As a side effect, it bring the support for the GL_ARB_depth_buffer_float extension. No regression have been found on piglit, and all tests for GL_ARB_depth_buffer_float pass successfully. --- src/gallium/auxiliary/util/u_tile.c | 28 +

Re: [Mesa-dev] [PATCH] softpipe: fix clamping when using unormalized coordinates

2011-11-14 Thread Morgan Armand
On 11/14/2011 6:40 PM, Brian Paul wrote: > On 11/14/2011 10:24 AM, Morgan Armand wrote: >> On 11/14/2011 3:44 PM, Brian Paul wrote: >>> On 11/13/2011 03:24 AM, Morgan Armand wrote: >>>> --- >>>>src/gallium/drivers/softpipe/sp_tex_sample.c |7 +++

Re: [Mesa-dev] [PATCH] softpipe: fix clamping when using unormalized coordinates

2011-11-14 Thread Morgan Armand
On 11/14/2011 3:44 PM, Brian Paul wrote: > On 11/13/2011 03:24 AM, Morgan Armand wrote: >> --- >> src/gallium/drivers/softpipe/sp_tex_sample.c |7 --- >> 1 files changed, 4 insertions(+), 3 deletions(-) >> >> diff --git a/src/gallium/drivers/softpipe/

[Mesa-dev] [PATCH] softpipe: fix clamping when using unormalized coordinates

2011-11-13 Thread Morgan Armand
--- src/gallium/drivers/softpipe/sp_tex_sample.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 72629a0..9b0e54e1 100644 --- a/src/gallium/drivers/softpipe/sp_tex_samp

[Mesa-dev] [PATCH] glcpp: Add GL_ARB_draw_instanced #define.

2011-11-11 Thread Morgan Armand
--- src/glsl/glcpp/glcpp-parse.y |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 1b17ff4..c0457b0 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -1132,6 +1132,9 @@ glcpp_pa

[Mesa-dev] [PATCH] softpipe: fix incorrect front-facing value.

2011-11-10 Thread Morgan Armand
Because the type of the facing attribute is unsigned, the whole computation was done in the unsigned range. Fixes fbo-fragcoord2, glsl1-gl_FrontFacing var (2) and glsl-fs-frontfacing tests. --- src/gallium/drivers/softpipe/sp_fs_exec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Re: [Mesa-dev] [PATCH] softpipe: don't clamp or do logical operations on floating-point buffers.

2011-11-07 Thread Morgan Armand
ng all or no color channels are normalized: */ bqs->clamp[i] = desc->channel[0].normalized; + bqs->format_type[i] = desc->channel[0].type; if (util_format_is_intensity(format)) bqs->base_format[i] = INTENSITY; -- 1.7.7.1.msysgit.0 On 11/7/2011 4:

[Mesa-dev] [PATCH 3/3] st/mesa: fix memory leaks

2011-11-07 Thread Morgan Armand
--- src/mesa/state_tracker/st_cb_drawpixels.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 8c49f8d..5714d34 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/m

[Mesa-dev] [PATCH 2/3] st/mesa: fix indentation

2011-11-07 Thread Morgan Armand
--- src/mesa/state_tracker/st_atom_texture.c | 11 +-- src/mesa/state_tracker/st_cb_drawpixels.c |6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index 3115a25..008e9bd 1006

[Mesa-dev] [PATCH 1/3] softpipe: fix memory leaks

2011-11-07 Thread Morgan Armand
This series of patches is a splitted version of my previous one, as suggested by Brian. --- src/gallium/drivers/softpipe/sp_state_derived.c |5 - src/gallium/drivers/softpipe/sp_state_shader.c |3 +++ 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers

[Mesa-dev] [PATCH] Fix memory leaks and some bad indentation

2011-11-06 Thread Morgan Armand
--- src/gallium/drivers/softpipe/sp_state_derived.c |5 - src/gallium/drivers/softpipe/sp_state_shader.c |3 +++ src/mesa/state_tracker/st_atom_texture.c| 11 +-- src/mesa/state_tracker/st_cb_drawpixels.c | 10 +- 4 files changed, 17 insertions(+), 12

Re: [Mesa-dev] [PATCH] softpipe: don't clamp or do logical operations on floating-point buffers.

2011-11-06 Thread Morgan Armand
ng from a mobile, pardon my terseness. ~ C. > > On Nov 6, 2011 4:31 AM, "Morgan Armand" <mailto:morgan.de...@gmail.com>> wrote: > > --- > src/gallium/drivers/softpipe/sp_quad_blend.c | 78 > ++--- > 1 files changed, 56 inser

[Mesa-dev] [PATCH] softpipe: don't clamp or do logical operations on floating-point buffers.

2011-11-06 Thread Morgan Armand
--- src/gallium/drivers/softpipe/sp_quad_blend.c | 78 ++--- 1 files changed, 56 insertions(+), 22 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_quad_blend.c b/src/gallium/drivers/softpipe/sp_quad_blend.c index 598df26..4813ada 100644 --- a/src/gallium/drivers/s

[Mesa-dev] [PATCH] wglSetPixelFormat should ignore the ppfd parameter

2011-11-02 Thread Morgan Armand
fd->nSize != sizeof(PIXELFORMATDESCRIPTOR)) { +(void) ppfd; + +if(iPixelFormat < 1 || iPixelFormat > npfd) { SetLastError(0); return(FALSE); } -- 1.7.7.1.msysgit.0 >From 82313b22a319d04163113030b740268ef9e06e09 Mon Sep 17 00:00:00 2001 From: Morgan Armand Date: Wed

Re: [Mesa-dev] [PATCH] Mesa-demos: add wglcontext to test the creation of a context through WGL_ARB_create_context

2011-11-02 Thread Morgan Armand
wgl_sharedtex_mt wglinfo DESTINATION > > wgl) > > diff --git a/src/wgl/wglcontext.c b/src/wgl/wglcontext.c > > new file mode 100644 > > index 000..41e44cd > > --- /dev/null > > +++ b/src/wgl/wglcontext.c > > @@ -0,0 +1,274 @@ > > +/* > >

[Mesa-dev] [PATCH] Mesa-demos: add wglcontext to test the creation of a context through WGL_ARB_create_context

2011-10-30 Thread Morgan Armand
(TARGETS wglthreads wgl_sharedtex_mt wglinfo DESTINATION wgl) diff --git a/src/wgl/wglcontext.c b/src/wgl/wglcontext.c new file mode 100644 index 000..41e44cd --- /dev/null +++ b/src/wgl/wglcontext.c @@ -0,0 +1,274 @@ +/* + * Copyright (C) 2011 Morgan Armand + * + * Permission is hereby granted

Re: [Mesa-dev] [PATCH] fix compilation of glsl_lexer.ll with msvc

2011-10-29 Thread Morgan Armand
On 10/29/2011 11:50 AM, Kenneth Graunke wrote: > On 10/29/2011 01:42 AM, Morgan Armand wrote: >> strtoull is not supported on msvc (as there is no C99 support). >> >> --- >> src/glsl/glsl_lexer.ll |4 >> 1 files changed, 4 insertions(+), 0 deletio

[Mesa-dev] [PATCH] fix compilation of glsl_lexer.ll with msvc

2011-10-29 Thread Morgan Armand
strtoull is not supported on msvc (as there is no C99 support). --- src/glsl/glsl_lexer.ll |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll index e444536..00065d5 100644 --- a/src/glsl/glsl_lexer.ll +++ b/src/glsl/glsl_lex

Re: [Mesa-dev] [PATCH] gallium: implement WGL_ARB_create_context

2011-10-28 Thread morgan armand
reCtx->st : NULL); >> +   if (ctx->st == NULL) >>        goto no_st_ctx; >> >>     ctx->st->st_manager_private = (void *) ctx; >> diff --git a/src/gallium/state_trackers/wgl/stw_context.h >> b/src/gallium/state_trackers/wgl/stw_context.h >&g

Re: [Mesa-dev] [PATCH] gallium: implement WGL_ARB_create_context

2011-10-25 Thread morgan armand
); + DHGLRC stw_get_current_context( void ); HDC stw_get_current_dc( void ); diff --git a/src/gallium/state_trackers/wgl/stw_ext_context.c b/src/gallium/state_trackers/wgl/stw_ext_context.c new file mode 100644 index 000..a3470ac --- /dev/null +++ b/src/gallium/state_trackers/wgl/stw_ext_context.c @@ -0