summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2013-12-08 04:56:06 +0100
committerFrancisco Jerez <[email protected]>2014-02-12 18:44:05 +0100
commit6b28528d1c206a9b0c962a1e35ed177db7818cfa (patch)
treeb75502567cc1a666e411b7c8206bb60596ec75d8 /src
parent81c167ef1c96df1aba1b294e0eeed631d7d3268c (diff)
glsl/ast: Make sure that image argument qualifiers match the function prototype.
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/ir.cpp7
1 files changed, 6 insertions, 1 deletions
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;