nir/spirv: fix chain access with different index bit sizes
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 29 Aug 2017 04:56:26 +0000 (06:56 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 11 Sep 2017 08:03:39 +0000 (10:03 +0200)
commit5b1b088f2a176973b66e0765b4127c7882a12860
tree528d3607623da49ed722e8991e04a845fb9cb268
parent8d6b97a815874c7b695471a259fe4b6689890206
nir/spirv: fix chain access with different index bit sizes

Currently we support 32-bit indexes/offsets all over the driver, so we
convert them to that bit size.

Fixes dEQP-VK.spirv_assembly.instruction.*.indexing.*

v2: Use u2u32 instead (Jason).

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_variables.c