[Mesa-dev] [PATCH 4/5] glsl: Improve error message for interstage interface block mismatch.

Paul Berry stereotype441 at gmail.com
Sat Jul 27 15:59:39 PDT 2013


We're now emitting this error from a point where we have easy access
to the name of the block that failed to match, so go ahead and include
that in the error message, as we do for intrastage interface block
mismatches.
---
 src/glsl/link_interface_blocks.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glsl/link_interface_blocks.cpp b/src/glsl/link_interface_blocks.cpp
index ffb4453..928a88e 100644
--- a/src/glsl/link_interface_blocks.cpp
+++ b/src/glsl/link_interface_blocks.cpp
@@ -105,7 +105,8 @@ validate_interstage_interface_blocks(struct gl_shader_program *prog,
          continue;
 
       if (var->interface_type != expected_type) {
-         linker_error(prog, "interface block mismatch between shader stages\n");
+         linker_error(prog, "definitions of interface block `%s' do not "
+                      "match\n", var->interface_type->name);
          return;
       }
    }
-- 
1.8.3.4



More information about the mesa-dev mailing list