OSDN Git Service

spirv: Sign-extend array indices
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 15 Dec 2018 15:57:26 +0000 (09:57 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 11 Jan 2019 19:19:09 +0000 (19:19 +0000)
commit39b2d2fe087f79f1f631254389411cab75817766
tree336b536f0b714ee208d77855adc689a3a2907ac9
parentca8ef8234e5564568cf4b96d3fc337d8941dbc6c
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>
(cherry picked from commit c59f07684c0c99fad0c246dd4a475f6bef5d3cbc)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Conflicts:
src/compiler/spirv/vtn_variables.c
src/compiler/spirv/vtn_variables.c