aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/linker.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-08-09 08:20:19 +0200
committermarha <marha@users.sourceforge.net>2011-08-09 08:20:19 +0200
commit93ed12672618a2e321cb79a3b3a656aae63d6beb (patch)
treef05cc2daca62dcd4b312e7bc0cf392cb8b53d5ce /mesalib/src/glsl/linker.cpp
parent0c2b3e6fd26158cb97f4210cc891e218801b4b25 (diff)
downloadvcxsrv-93ed12672618a2e321cb79a3b3a656aae63d6beb.tar.gz
vcxsrv-93ed12672618a2e321cb79a3b3a656aae63d6beb.tar.bz2
vcxsrv-93ed12672618a2e321cb79a3b3a656aae63d6beb.zip
xrandrproto mesa git update 9 aug 2011
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 19eb9b5ff..b54ef4108 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.