glsl: Add new builtins required by GL_ARB_sample_shading
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 30 Aug 2013 20:10:54 +0000 (13:10 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 1 Nov 2013 23:01:48 +0000 (16:01 -0700)
commite849511c781672487aec416708abd1166b3b4983
tree07ffa0c7585e454a3af5df7c898028875dd6398a
parent0d69e8c813070696942ffbe6efa4dc5186422199
glsl: Add new builtins required by GL_ARB_sample_shading

New builtins added by GL_ARB_sample_shading:
in vec2 gl_SamplePosition
in int gl_SampleID
in int gl_NumSamples
out int gl_SampleMask[]

V2: - Use SWIZZLE_XXXX for STATE_NUM_SAMPLES.
    - Use "result.samplemask" in arb_output_attrib_string.
    - Add comment to explain the size of gl_SampleMask[] array.
    - Make gl_SampleID and gl_SamplePosition system values.
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/builtin_variables.cpp
src/mesa/main/mtypes.h
src/mesa/program/prog_print.c