nir/gather_info: recognize load_patch_vertices_in as a system value
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 16 Nov 2017 07:53:07 +0000 (08:53 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 22 Nov 2017 07:03:55 +0000 (08:03 +0100)
commita217cbd7ece78d59ae362dc431e74d663def60bf
tree0c6fd8e75f5b72ec278f647114132426e4b8987e
parent386f6cd041c973de82ee76ba983a2ea36868a5bc
nir/gather_info: recognize load_patch_vertices_in as a system value

This intrinsic is produced to load SYSTEM_VALUE_VERTICES_IN, which is
generated to load gl_PatchVerticesIn in the SPIR-V path for both
Vulkan and OpenGL.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/nir/nir_gather_info.c