From 51c5fc85e11858b11cf2a3c89ff8052fbc67faab Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 29 Nov 2013 21:26:10 +1300 Subject: glsl: Add ir support for `sample` qualifier; adjust compiler and linker Signed-off-by: Chris Forbes Reviewed-by: Francisco Jerez --- src/glsl/ir_reader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glsl/ir_reader.cpp') 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) { -- cgit v1.2.3