Mesa (master): glsl: add gl_SampleMaskIn[] builtin
Chris Forbes
chrisf at kemper.freedesktop.org
Sat Dec 14 03:28:47 UTC 2013
Module: Mesa
Branch: master
Commit: 1d71f38924ac4614199cbdac76b9ec57cb4c3b68
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d71f38924ac4614199cbdac76b9ec57cb4c3b68
Author: Chris Forbes <chrisf at ijw.co.nz>
Date: Sun Dec 8 20:03:25 2013 +1300
glsl: add gl_SampleMaskIn[] builtin
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/glsl/builtin_variables.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index bdcd11f..0a3f129 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");
+ }
}
More information about the mesa-commit
mailing list