Mesa (master): mesa: updated comments about GLSL constants

Brian Paul brianp at kemper.freedesktop.org
Thu Jan 1 21:05:36 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jan  1 08:07:54 2009 -0700

mesa: updated comments about GLSL constants

---

 .../shader/slang/library/slang_common_builtin.gc   |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/shader/slang/library/slang_common_builtin.gc b/src/mesa/shader/slang/library/slang_common_builtin.gc
index 3e03b10..230c57c 100644
--- a/src/mesa/shader/slang/library/slang_common_builtin.gc
+++ b/src/mesa/shader/slang/library/slang_common_builtin.gc
@@ -27,8 +27,9 @@
 // From Shader Spec, ver. 1.10, rev. 59
 //
 
-//bp: XXX these will probably go away since the value needs to be
-//determined at runtime and may vary from one GLcontext to another...
+// Note: the values assigned to these constants here aren't actually used.
+// They're set by the compiler according to the GL context limits.
+// See slang_simplify.c
 const int gl_MaxLights = 8;
 const int gl_MaxClipPlanes = 6;
 const int gl_MaxTextureUnits = 8;




More information about the mesa-commit mailing list