On Wed, 2008-09-24 at 10:41 -0700, Keith Whitwell wrote:
> On Tue, Sep 23, 2008 at 1:08 AM, Xiang, Haihao <[EMAIL PROTECTED]> wrote:
> > On Tue, 2008-09-23 at 10:41 +0800, Xiang, Haihao wrote:
> >> On Mon, 2008-09-22 at 17:23 -0700, Ian Romanick wrote:
> >> > Module: Mesa
> >> > Branch: master
> >> > Commit: 2511d57fa487e4b46a4919913103c2491da7a856
> >> > URL:    
> >> > http://cgit.freedesktop.org/mesa/mesa/commit/?id=2511d57fa487e4b46a4919913103c2491da7a856
> >> >
> >> > Author: Ian Romanick <[EMAIL PROTECTED]>
> >> > Date:   Mon Sep 22 17:23:40 2008 -0700
> >> >
> >> > i965: Adapt to new TNL program tracking semantics
> >> >
> >> > This fixes bugzilla #17718.
> >> >
> >> > ---
> >> >
> >> >  src/mesa/drivers/dri/i965/brw_context.c |    3 ++-
> >> >  1 files changed, 2 insertions(+), 1 deletions(-)
> >> >
> >> > diff --git a/src/mesa/drivers/dri/i965/brw_context.c 
> >> > b/src/mesa/drivers/dri/i965/brw_context.c
> >> > index df4593e..9262901 100644
> >> > --- a/src/mesa/drivers/dri/i965/brw_context.c
> >> > +++ b/src/mesa/drivers/dri/i965/brw_context.c
> >> > @@ -147,7 +147,8 @@ GLboolean brwCreateContext( const __GLcontextModes 
> >> > *mesaVis,
> >> >
> >> >     brw->emit_state_always = 0;
> >> >
> >> > -   ctx->FragmentProgram._MaintainTexEnvProgram = 1;
> >> > +   ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
> >> > +   ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
> >> >
> >> >     brw_draw_init( brw );
> >>
> >> i965 builds TNL program itself, this commit breaks many other mesa
> >> demos, such as teapot, tunnel, rain etc.
> >
> > It seems this is a fog issue. Currently mesa core always sets
> > key->tnl_do_vertex_fog to GL_FALSE, however i965 need to compute fog
> > per-vertex.  It works fine with 965 if setting  key->tnl_do_vertex_fog
> > to GL_TRUE in ffvertex_prog.c.
> 
> I've also pulled across the code to correctly append fog calculations
> to the pixel program when fog is enabled, so this may also help.

The fog issue has gone away, but other mesa demos such as cubemap, gloss
still still fail with the fixed-function vertex program created by mesa
core. They all works fine with the 965 TNL program.

Haihao


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to