spirv: Calculate properly 16-bit vector sizes
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Thu, 22 Feb 2018 16:36:37 +0000 (17:36 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 1 Mar 2018 05:37:40 +0000 (21:37 -0800)
commit23ffb7c2d17f0268b209782a46e6cb838bd63585
tree97c5c25b2430eb0fbc576658e5995f9b882b8384
parent994d21042996232998a51bfabaab6f4970f0ea5a
spirv: Calculate properly 16-bit vector sizes

Range in 16-bit push constants load was being calculated
wrongly using 4-bytes per element instead of 2-bytes as it
should be.

v2: Use glsl_get_bit_size instead of if statement
    (Jason Ekstrand)

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