spirv: handle gl_SampleMask
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 24 Jan 2017 10:49:40 +0000 (11:49 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 25 Jan 2017 07:08:16 +0000 (08:08 +0100)
commit56495080ed910c8fb7cd02aa5e3b14e0fb823c6d
treec2727977dfe61e61ca7c8a1c0d36430479ab1237
parent9467d78d380695b38f48949497f7de12c1054e81
spirv: handle gl_SampleMask

SPIR-V maps both gl_SampleMask and gl_SampleMaskIn to the same
builtin (SampleMask). The only way to tell which one we are dealing with
is to check if it is an input or an output.

Fixes:
dEQP-VK.pipeline.multisample_shader_builtin.sample_mask.write.*

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/vtn_variables.c