summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2013-11-29 21:26:10 +1300
committerChris Forbes <chrisf@ijw.co.nz>2013-12-07 17:14:58 +1300
commit51c5fc85e11858b11cf2a3c89ff8052fbc67faab (patch)
treecdeccbdd94495f94a7977488c908932615d10a9d /src/glsl/ir.cpp
parent51aa15aca2bf5764b8cd62bbf2329eda40f7a859 (diff)
downloadexternal_mesa3d-51c5fc85e11858b11cf2a3c89ff8052fbc67faab.zip
external_mesa3d-51c5fc85e11858b11cf2a3c89ff8052fbc67faab.tar.gz
external_mesa3d-51c5fc85e11858b11cf2a3c89ff8052fbc67faab.tar.bz2
glsl: Add ir support for `sample` qualifier; adjust compiler and linker
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 3be7d51..330b4dc 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -1585,7 +1585,7 @@ ir_swizzle::variable_referenced() const
ir_variable::ir_variable(const struct glsl_type *type, const char *name,
ir_variable_mode mode)
: max_array_access(0), max_ifc_array_access(NULL),
- read_only(false), centroid(false), invariant(false),
+ read_only(false), centroid(false), sample(false), invariant(false),
how_declared(ir_var_declared_normally), mode(mode),
interpolation(INTERP_QUALIFIER_NONE), atomic()
{
@@ -1709,7 +1709,8 @@ 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->sample != b->sample) {
/* parameter a's qualifiers don't match */
return a->name;