fix for bug#10339
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 22 Mar 2007 03:01:51 +0000 (11:01 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 22 Mar 2007 03:01:51 +0000 (11:01 +0800)
StateFlags has been updated in _mesa_add_state_reference

src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_wm_fp.c

index 1ae065b10dd8ccf77d5842a9d3e37f338acc43d8..5d98176dced62ed60c6a43d1f91157b31c5c5e60 100644 (file)
@@ -117,7 +117,7 @@ static void brwProgramStringNotify( GLcontext *ctx,
       if (p == fp)
         brw->state.dirty.brw |= BRW_NEW_FRAGMENT_PROGRAM;
       p->id = brw->program_id++;      
-      p->param_state = brw_parameter_list_state_flags(p->program.Base.Parameters); 
+      p->param_state = p->program.Base.Parameters->StateFlags;
    }
    else if (target == GL_VERTEX_PROGRAM_ARB) {
       struct brw_context *brw = brw_context(ctx);
@@ -126,7 +126,7 @@ static void brwProgramStringNotify( GLcontext *ctx,
       if (p == vp)
         brw->state.dirty.brw |= BRW_NEW_VERTEX_PROGRAM;
       p->id = brw->program_id++;      
-      p->param_state = brw_parameter_list_state_flags(p->program.Base.Parameters); 
+      p->param_state = p->program.Base.Parameters->StateFlags;
 
       /* Also tell tnl about it:
        */
index bb0aa3561507e73dd64c99b1e2b3852dc72377ee..ba2dbeccde2165eaa5d8760d42b428b07e9dfe30 100644 (file)
@@ -398,7 +398,7 @@ static struct prog_src_register search_or_add_param6( struct brw_wm_compile *c,
 
    /* Recalculate state dependency: 
     */
-   c->fp->param_state = brw_parameter_list_state_flags( paramList );
+   c->fp->param_state = paramList->StateFlags;
 
    return src_reg(PROGRAM_STATE_VAR, idx);
 }