summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-09-21 23:04:29 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-09-21 23:04:29 +0000
commitc7d0fe1c4bbd504e8fa043145f38c7b1876ff8bb (patch)
tree487a311cc19b88557fba18d9a3906e4562b548c1 /src/mesa/shader
parent4af404038c43d05de4d8a640cd54461c5df21db5 (diff)
new comments, indentation fixes
Diffstat (limited to 'src/mesa/shader')
-rwxr-xr-xsrc/mesa/shader/shaderobjects_3dlabs.c36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/mesa/shader/shaderobjects_3dlabs.c b/src/mesa/shader/shaderobjects_3dlabs.c
index 0def13d3b8..020af6bb17 100755
--- a/src/mesa/shader/shaderobjects_3dlabs.c
+++ b/src/mesa/shader/shaderobjects_3dlabs.c
@@ -252,15 +252,15 @@ _generic_GetInfoLogLength (struct gl2_generic_intf **intf)
}
static struct gl2_generic_intf _generic_vftbl = {
- {
- _unknown_AddRef,
- _unknown_Release,
- _generic_QueryInterface
- },
- _generic_Delete,
- NULL, /* abstract GetType */
- _generic_GetName,
- _generic_GetDeleteStatus,
+ {
+ _unknown_AddRef,
+ _unknown_Release,
+ _generic_QueryInterface
+ },
+ _generic_Delete,
+ NULL, /* abstract GetType */
+ _generic_GetName,
+ _generic_GetDeleteStatus,
_generic_GetInfoLog,
_generic_GetInfoLogLength
};
@@ -1184,9 +1184,23 @@ _program_UpdateFixedAttrib (struct gl2_program_intf **intf, GLuint index, GLvoid
}
}
+
+/**
+ * Called during fragment shader execution to either load a varying
+ * register with values, or fetch values from a varying register.
+ * \param intf the internal program?
+ * \param index which varying register, one of the SLANG_FRAGMENT_FIXED_*
+ * values for example.
+ * \param data source values to load (or dest to write to)
+ * \param offset indicates a texture unit or generic varying attribute
+ * \param size number of bytes to copy
+ * \param write if true, write to the varying register, else store values
+ * in 'data'
+ */
static GLvoid
-_program_UpdateFixedVarying (struct gl2_program_intf **intf, GLuint index, GLvoid *data,
- GLuint offset, GLuint size, GLboolean write)
+_program_UpdateFixedVarying(struct gl2_program_intf **intf, GLuint index,
+ GLvoid *data,
+ GLuint offset, GLuint size, GLboolean write)
{
struct gl2_program_impl *impl = (struct gl2_program_impl *) intf;
slang_program *pro = &impl->_obj.prog;