Check variable mode when comparing qualifier lists.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Jun 2010 19:56:15 +0000 (12:56 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Jun 2010 19:57:20 +0000 (12:57 -0700)
Fixes function-05.vert.

ir.cpp

diff --git a/ir.cpp b/ir.cpp
index 0810a3a0114aa2d34813f3eee34f1c740242aa6f..2b05e9776d305d1505ddcff1daf937edc4a01e61 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -460,6 +460,7 @@ ir_function_signature::qualifiers_match(exec_list *params)
       ir_variable *b = (ir_variable *)iter_b.get();
 
       if (a->read_only != b->read_only ||
+         a->mode != b->mode ||
          a->interpolation != b->interpolation ||
          a->centroid != b->centroid) {