aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-09-12 08:58:44 +0200
committermarha <marha@users.sourceforge.net>2011-09-12 08:58:44 +0200
commit24a692ce832161d3b794110dd82b1508d38a0887 (patch)
tree388d2fd8dc707763d6ffea7edfa2a6a1410c7c5e /mesalib/src/glsl/ast_to_hir.cpp
parentf9cf11136d65f20aab4fb6d5fc3ec3c59185a0b4 (diff)
downloadvcxsrv-24a692ce832161d3b794110dd82b1508d38a0887.tar.gz
vcxsrv-24a692ce832161d3b794110dd82b1508d38a0887.tar.bz2
vcxsrv-24a692ce832161d3b794110dd82b1508d38a0887.zip
git update 12 sep 2011
Diffstat (limited to 'mesalib/src/glsl/ast_to_hir.cpp')
-rw-r--r--mesalib/src/glsl/ast_to_hir.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesalib/src/glsl/ast_to_hir.cpp b/mesalib/src/glsl/ast_to_hir.cpp
index 777f190a4..484786c5f 100644
--- a/mesalib/src/glsl/ast_to_hir.cpp
+++ b/mesalib/src/glsl/ast_to_hir.cpp
@@ -3014,6 +3014,12 @@ ast_function::hir(exec_list *instructions,
const char *const name = identifier;
+ /* New functions are always added to the top-level IR instruction stream,
+ * so this instruction list pointer is ignored. See also emit_function
+ * (called below).
+ */
+ (void) instructions;
+
/* From page 21 (page 27 of the PDF) of the GLSL 1.20 spec,
*
* "Function declarations (prototypes) cannot occur inside of functions;