spirv: Sign-extend array indices
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 15 Dec 2018 15:57:26 +0000 (09:57 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:29 +0000 (00:38 +0000)
commitc59f07684c0c99fad0c246dd4a475f6bef5d3cbc
tree6303cb3c494ff29d4936550047afc2209c7449c5
parentf8992eb5badf91e0d9ad3732d56a4e3d78fd1abf
spirv: Sign-extend array indices

The SPIR-V spec was recently updated to clarify that array indices are
treated as signed integers.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/vtn_variables.c