spirv/nir: Fix the stream ID when emitting a primitive or vertex
authorNeil Roberts <nroberts@igalia.com>
Tue, 16 Jan 2018 18:47:07 +0000 (19:47 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 31 Jul 2018 11:18:28 +0000 (13:18 +0200)
commitb0af66bb172c803c08b73e705822c3d53f5191f5
tree4f8043bb8e7145c73ab2227293a5080f7c0853fd
parent13b8857fcf575c5b786e055ad4594d8bf6a5c4b6
spirv/nir: Fix the stream ID when emitting a primitive or vertex

It looks like it was previously taking the SPIR-V instruction number
directly instead of looking up the constant value.

v2: use vtn_constant_value helper (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c