glsl/ast: Make sure that image argument qualifiers match the function prototype.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 8 Dec 2013 03:56:06 +0000 (04:56 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 12 Feb 2014 17:44:05 +0000 (18:44 +0100)
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ir.cpp

index 63dfa383a1d745b0694b1f2b4187e8b51d07739a..94e44ec6467fede8fa75b65297f5ec7e317f9303 100644 (file)
@@ -1663,7 +1663,12 @@ ir_function_signature::qualifiers_match(exec_list *params)
          !modes_match(a->data.mode, b->data.mode) ||
          a->data.interpolation != b->data.interpolation ||
          a->data.centroid != b->data.centroid ||
-         a->data.sample != b->data.sample) {
+          a->data.sample != b->data.sample ||
+          a->data.image.read_only != b->data.image.read_only ||
+          a->data.image.write_only != b->data.image.write_only ||
+          a->data.image.coherent != b->data.image.coherent ||
+          a->data.image._volatile != b->data.image._volatile ||
+          a->data.image._restrict != b->data.image._restrict) {
 
         /* parameter a's qualifiers don't match */
         return a->name;