mesa: updated comment
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Nov 2008 20:19:31 +0000 (13:19 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Jan 2009 15:49:08 +0000 (08:49 -0700)
(cherry picked from commit d9fa9e3290611944d5fd52301645367eeeb24f03)

src/mesa/shader/slang/slang_codegen.c

index 0f7b5a5d1239f5a08da446ead4dc5f96ac317a69..d93ef8f79991bf7c3f7fb2372467b3d0781391a8 100644 (file)
@@ -1474,6 +1474,8 @@ _slang_simple_writemask(GLuint writemask, GLuint swizzle)
  * Convert the given swizzle into a writemask.  In some cases this
  * is trivial, in other cases, we'll need to also swizzle the right
  * hand side to put components in the right places.
+ * See comment above for more info.
+ * XXX this function could be simplified and should probably be renamed.
  * \param swizzle  the incoming swizzle
  * \param writemaskOut  returns the writemask
  * \param swizzleOut  swizzle to apply to the right-hand-side