Mesa (master): mesa: set parameter list StateFlags field in _mesa_layout_parameters()

Brian Paul brianp at kemper.freedesktop.org
Fri May 27 17:59:07 UTC 2011


Module: Mesa
Branch: master
Commit: 4eeabd5a3d9fc7377b0461aa2ae2924547e82052
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4eeabd5a3d9fc7377b0461aa2ae2924547e82052

Author: Pierre-Eric Pelloux-Prayer <pelloux at gmail.com>
Date:   Thu May 26 20:06:42 2011 +0200

mesa: set parameter list StateFlags field in _mesa_layout_parameters()

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 at vmware.com>

---

 src/mesa/program/prog_parameter_layout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/program/prog_parameter_layout.c b/src/mesa/program/prog_parameter_layout.c
index d7dc97e..90a9771 100644
--- a/src/mesa/program/prog_parameter_layout.c
+++ b/src/mesa/program/prog_parameter_layout.c
@@ -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;
 




More information about the mesa-commit mailing list