Mesa (master): st/mesa: comments, whitespace

Brian Paul brianp at kemper.freedesktop.org
Tue Jan 12 04:26:40 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Jan 11 19:04:11 2010 -0700

st/mesa: comments, whitespace

---

 src/mesa/state_tracker/st_atom_shader.c |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c
index 46c8cbb..176f3ea 100644
--- a/src/mesa/state_tracker/st_atom_shader.c
+++ b/src/mesa/state_tracker/st_atom_shader.c
@@ -35,8 +35,6 @@
  *   Brian Paul
  */
 
-
-
 #include "main/imports.h"
 #include "main/mtypes.h"
 #include "main/macros.h"
@@ -57,9 +55,7 @@
 
 
 
-
-
-/*
+/**
  * Translate fragment program if needed.
  */
 static void
@@ -155,8 +151,10 @@ find_translated_vp(struct st_context *st,
 }
 
 
-
-
+/**
+ * Return pointer to a pass-through fragment shader.
+ * This shader is used when a texture is missing/incomplete.
+ */
 static void *
 get_passthrough_fs(struct st_context *st)
 {
@@ -168,6 +166,11 @@ get_passthrough_fs(struct st_context *st)
    return st->passthrough_fs;
 }
 
+
+/**
+ * Update fragment program state/atom.  This involves translating the
+ * Mesa fragment program into a gallium fragment program and binding it.
+ */
 static void
 update_fp( struct st_context *st )
 {
@@ -191,6 +194,7 @@ update_fp( struct st_context *st )
    }
 }
 
+
 const struct st_tracked_state st_update_fp = {
    "st_update_fp",					/* name */
    {							/* dirty */
@@ -202,7 +206,10 @@ const struct st_tracked_state st_update_fp = {
 
 
 
-
+/**
+ * Update vertex program state/atom.  This involves translating the
+ * Mesa vertex program into a gallium fragment program and binding it.
+ */
 static void
 update_vp( struct st_context *st )
 {




More information about the mesa-commit mailing list