nir/spirv: Use VERTEX_ID_ZERO_BASE for VertexId
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Sep 2015 00:16:01 +0000 (17:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Sep 2015 00:16:49 +0000 (17:16 -0700)
commit86c3476668775513a720f116bffb619e98ecfe6d
tree2e44afe9abbdccefd175d5c74f1331e56df5315a
parent6350c97412d993de1ae876312bab9689a7f34839
nir/spirv: Use VERTEX_ID_ZERO_BASE for VertexId

In Vulkan, VertexId and InstanceId will be zero-based and new intrinsics,
VertexIndex and InstanceIndex, will be added for non-zer-based.  See also,
Khronos bug #14255
src/glsl/nir/spirv_to_nir.c