aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/linker.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-08-09 08:25:48 +0200
committermarha <marha@users.sourceforge.net>2011-08-09 08:25:48 +0200
commit8a2c8f93072dc4c9a1f9275b09ac3f2af481f56a (patch)
tree24b60778dfbd64e217b8b08ae4ce465687128d80 /mesalib/src/glsl/linker.cpp
parentf8e53281a55d43ae1b17f848f28579d74d877835 (diff)
parent93ed12672618a2e321cb79a3b3a656aae63d6beb (diff)
downloadvcxsrv-8a2c8f93072dc4c9a1f9275b09ac3f2af481f56a.tar.gz
vcxsrv-8a2c8f93072dc4c9a1f9275b09ac3f2af481f56a.tar.bz2
vcxsrv-8a2c8f93072dc4c9a1f9275b09ac3f2af481f56a.zip
Merge remote-tracking branch 'origin/released'
Conflicts: X11/extensions/randr.h mesalib/src/glsl/ast_function.cpp mesalib/src/glsl/ast_to_hir.cpp mesalib/src/glsl/glsl_parser_extras.h mesalib/src/glsl/link_functions.cpp mesalib/src/glsl/linker.cpp mesalib/src/mesa/state_tracker/st_program.c
Diffstat (limited to 'mesalib/src/glsl/linker.cpp')
-rw-r--r--mesalib/src/glsl/linker.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesalib/src/glsl/linker.cpp b/mesalib/src/glsl/linker.cpp
index cb4083b29..0d4d5d88b 100644
--- a/mesalib/src/glsl/linker.cpp
+++ b/mesalib/src/glsl/linker.cpp
@@ -922,6 +922,14 @@ link_intrastage_shaders(void *mem_ctx,
free(linking_shaders);
+#ifdef DEBUG
+ /* At this point linked should contain all of the linked IR, so
+ * validate it to make sure nothing went wrong.
+ */
+ if (linked)
+ validate_ir_tree(linked->ir);
+#endif
+
/* Make a pass over all variable declarations to ensure that arrays with
* unspecified sizes have a size specified. The size is inferred from the
* max_array_access field.