aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_reader.cpp
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2013-11-29 21:26:10 +1300
committerChris Forbes <[email protected]>2013-12-07 17:14:58 +1300
commit51c5fc85e11858b11cf2a3c89ff8052fbc67faab (patch)
treecdeccbdd94495f94a7977488c908932615d10a9d /src/glsl/ir_reader.cpp
parent51aa15aca2bf5764b8cd62bbf2329eda40f7a859 (diff)
glsl: Add ir support for `sample` qualifier; adjust compiler and linker
Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/glsl/ir_reader.cpp')
-rw-r--r--src/glsl/ir_reader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 00e2db9a3f0..7fcb34d2390 100644
--- a/src/glsl/ir_reader.cpp
+++ b/src/glsl/ir_reader.cpp
@@ -413,6 +413,8 @@ ir_reader::read_declaration(s_expression *expr)
// FINISHME: Check for duplicate/conflicting qualifiers.
if (strcmp(qualifier->value(), "centroid") == 0) {
var->centroid = 1;
+ } else if (strcmp(qualifier->value(), "sample") == 0) {
+ var->sample = 1;
} else if (strcmp(qualifier->value(), "invariant") == 0) {
var->invariant = 1;
} else if (strcmp(qualifier->value(), "uniform") == 0) {