Module: Mesa Branch: master Commit: 1d71f38924ac4614199cbdac76b9ec57cb4c3b68 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d71f38924ac4614199cbdac76b9ec57cb4c3b68
Author: Chris Forbes <[email protected]> Date: Sun Dec 8 20:03:25 2013 +1300 glsl: add gl_SampleMaskIn[] builtin Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> --- 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"); + } } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
