From: Chris Forbes Date: Sun, 8 Dec 2013 07:03:25 +0000 (+1300) Subject: glsl: add gl_SampleMaskIn[] builtin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d71f38924ac4614199cbdac76b9ec57cb4c3b68;p=mesa.git glsl: add gl_SampleMaskIn[] builtin Signed-off-by: Chris Forbes Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index bdcd11f2282..0a3f129f8d5 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"); + } }