From 6b28528d1c206a9b0c962a1e35ed177db7818cfa Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Sun, 8 Dec 2013 04:56:06 +0100 Subject: [PATCH] glsl/ast: Make sure that image argument qualifiers match the function prototype. Reviewed-by: Paul Berry --- 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 63dfa383a1d..94e44ec6467 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -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; -- 2.30.2