spirv: Add tessellation varying and built-in support.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 25 Sep 2016 21:23:55 +0000 (14:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2017 21:21:28 +0000 (13:21 -0800)
commitbb04b84114d2780307f9cbd04447216c3f2d1c0c
tree432d1ee250aefda890ca7f82a5f07298db799fee
parent23710e17f8cce92b58bd48149440dae03a7a103b
spirv: Add tessellation varying and built-in support.

We need to:
- handle the extra array level for per-vertex varyings
- handle the patch qualifier correctly
- assign varying locations

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c