spirv: Add SpvCapabilityShaderViewportIndexLayerEXT
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 5 Mar 2018 21:58:11 +0000 (13:58 -0800)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 7 Mar 2018 06:04:20 +0000 (07:04 +0100)
commitc17808562e4ff3bcc3c3755a6b5ffbf86b8624ad
tree98f6c6c7af004c57db942081ab83adc2b2e83820
parent487f8d48c9bb876a93867ef86aca696bbac97916
spirv: Add SpvCapabilityShaderViewportIndexLayerEXT

This capability allows gl_ViewportIndex and gl_Layer to also be used
as outputs in Vertex and Tesselation shaders.

v2: Make conditional to the capability, add gl_Layer, add tesselation
    shaders. (Iago)

v3: Don't export to tesselation control shader.

v4: Add Reviewd-by tag.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/shader_info.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c