From: Francisco Jerez Date: Sun, 8 Dec 2013 03:56:06 +0000 (+0100) Subject: glsl/ast: Make sure that image argument qualifiers match the function prototype. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b28528d1c206a9b0c962a1e35ed177db7818cfa;p=mesa.git glsl/ast: Make sure that image argument qualifiers match the function prototype. Reviewed-by: Paul Berry --- 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;