nir: Length of boolean vtn_value now is 1
authorSergii Romantsov <sergii.romantsov@gmail.com>
Tue, 15 Jan 2019 11:08:32 +0000 (13:08 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Jan 2019 21:43:06 +0000 (15:43 -0600)
commitcfca5cd9588fb213e6889c85137f3e2fec8c7757
treeb4ddf7cc936345f492f18ce4cff5b662a0d7bd09
parent42aea4f1a79729885e1dd67efbab23662964187a
nir: Length of boolean vtn_value now is 1

During conversion type-length was lost due to math.

v2 (Jason Ekstrand):
 - Use a size/offset of 4 bytes

Fixes: 44227453ec03 (nir: Switch to using 1-bit Booleans for almost everything)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109353
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
Tested-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c