[Mesa-dev] [PATCH 13/23] glsl/ast: Make sure that image argument qualifiers match the function prototype.

Francisco Jerez currojerez at riseup.net
Tue Nov 26 00:02:29 PST 2013


---
 src/glsl/ir.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index ae690ea..b8b0979 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -1709,7 +1709,12 @@ ir_function_signature::qualifiers_match(exec_list *params)
       if (a->read_only != b->read_only ||
 	  !modes_match(a->mode, b->mode) ||
 	  a->interpolation != b->interpolation ||
-	  a->centroid != b->centroid) {
+	  a->centroid != b->centroid ||
+          a->image.read_only != b->image.read_only ||
+          a->image.write_only != b->image.write_only ||
+          a->image.coherent != b->image.coherent ||
+          a->image._volatile != b->image._volatile ||
+          a->image._restrict != b->image._restrict) {
 
 	 /* parameter a's qualifiers don't match */
 	 return a->name;
-- 
1.8.3.4



More information about the mesa-dev mailing list