Mesa (master): st/mesa: new comment about updating state vars

Brian Paul brianp at kemper.freedesktop.org
Sat Dec 4 00:07:23 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Dec  3 17:07:16 2010 -0700

st/mesa: new comment about updating state vars

---

 src/mesa/state_tracker/st_atom_constbuf.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_constbuf.c b/src/mesa/state_tracker/st_atom_constbuf.c
index 8d1dc79..f1d08a3 100644
--- a/src/mesa/state_tracker/st_atom_constbuf.c
+++ b/src/mesa/state_tracker/st_atom_constbuf.c
@@ -66,6 +66,11 @@ void st_upload_constants( struct st_context *st,
    if (params && params->NumParameters) {
       const uint paramBytes = params->NumParameters * sizeof(GLfloat) * 4;
 
+      /* Update the constants which come from fixed-function state, such as
+       * transformation matrices, fog factors, etc.  The rest of the values in
+       * the parameters list are explicitly set by the user with glUniform,
+       * glProgramParameter(), etc.
+       */
       _mesa_load_state_parameters(st->ctx, params);
 
       /* We always need to get a new buffer, to keep the drivers simple and




More information about the mesa-commit mailing list