mesa: set parameter list StateFlags field in _mesa_layout_parameters()
authorPierre-Eric Pelloux-Prayer <pelloux@gmail.com>
Thu, 26 May 2011 18:06:42 +0000 (20:06 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 27 May 2011 17:58:36 +0000 (11:58 -0600)
When using _mesa_layout_parameters, all params copied in the 'layout'
output in the PASS 1 don't modify StateFlags (because they are simply
memcpy'ed).
This patch fixes the problem, assuring output gl_prog_param_list
StateFlags field is the same as the input one.

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/program/prog_parameter_layout.c

index d7dc97edbfb5b68ac94824b0c2889047431d3afa..90a9771080c89ed4f33ca4da985e1ecac629203c 100644 (file)
@@ -207,6 +207,7 @@ _mesa_layout_parameters(struct asm_parser_state *state)
       }
    }
 
+   layout->StateFlags = state->prog->Parameters->StateFlags;
    _mesa_free_parameter_list(state->prog->Parameters);
    state->prog->Parameters = layout;