summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2013-12-08 20:03:25 +1300
committerChris Forbes <[email protected]>2013-12-14 16:24:22 +1300
commit1d71f38924ac4614199cbdac76b9ec57cb4c3b68 (patch)
treee3cf2b18934304c38affe5d1304b86ce65eb6ae7 /src/glsl
parentc1e1dd22980c083b4eb341a4a7fd22eb0c269a53 (diff)
glsl: add gl_SampleMaskIn[] builtin
Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/builtin_variables.cpp4
1 files changed, 4 insertions, 0 deletions
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");
+ }
}