compiler/types: Make booleans 32-bit for cl_size/align
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 1 Sep 2020 21:24:19 +0000 (16:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commitca11b17b7b796db7077ed166ba2e33e77ec7088c
treea47d5d340515eb43042f61640dec95e29276b699
parent3be890a3a6844292177b5524bd94b6c88fb5fb6e
compiler/types: Make booleans 32-bit for cl_size/align

OpenCL doesn't mandate a size and this is consistent with the rest of
the glsl_type system.  While we're here, we also clean ::cl_size() up a
bit and use a new explicit_type_scalar_byte_size() helper.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>
src/compiler/glsl_types.cpp