glsl: Improve error message for interstage interface block mismatch.
authorPaul Berry <stereotype441@gmail.com>
Sat, 27 Jul 2013 22:24:46 +0000 (15:24 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 30 Jul 2013 17:10:27 +0000 (10:10 -0700)
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.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_interface_blocks.cpp

index ffb44530f5d734797432be776c762602c546345b..928a88ee2621e459ad2d6249d70ce7f3efdeefd4 100644 (file)
@@ -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;
       }
    }