[Mesa-dev] [PATCH 2/3] glsl: add gl_SampleMaskIn[] builtin
Chris Forbes
chrisf at ijw.co.nz
Sun Dec 8 00:23:40 PST 2013
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
src/glsl/builtin_variables.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index d0e76e3..19643ec 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -858,6 +858,10 @@ builtin_variable_generator::generate_fs_special_vars()
*/
add_output(FRAG_RESULT_SAMPLE_MASK, array(int_t, 1), "gl_SampleMask");
}
+
+ if (state->ARB_gpu_shader5_enable) {
+ add_system_value(SYSTEM_VALUE_SAMPLE_MASK_IN, array(int_t, 1), "gl_SampleMaskIn");
+ }
}
--
1.8.5.1
More information about the mesa-dev
mailing list