mesa/src/compiler
Karol Herbst 8bdf4b2b41 compiler/types: fix size of padded OpenCL Structs
In C the size of a struct { uin32_t a; uint8_t b; } is 8, not 5, so we have
to account for the biggest alignment across all struct members.

Funny that the OpenCL CTS doesn't catch that.

Fixes: 44d32e62fb ("glsl: add cl_size and cl_alignment")
Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23701>
(cherry picked from commit 4431e5a222)
2023-06-20 13:38:04 +01:00
..
clc clc: relax spec constant validation 2023-06-15 22:07:22 +01:00
glsl glsl/lower_samplers_as_deref: apply bindings for unused samplers 2023-05-09 16:56:48 +01:00
isaspec ir3, isaspec: add raw instruction to assembler/disassembler. 2023-01-26 14:26:11 +00:00
nir nir: Fix constant expression for unpack_64_4x16 2023-06-15 22:11:43 +01:00
spirv spirv: Fix gl_spirv_validation when OpLine with strings is present 2023-06-01 16:42:28 +01:00
builtin_type_macros.h glsl: add texture subpass variants 2022-11-10 10:21:34 +00:00
glsl_types.cpp compiler/types: fix size of padded OpenCL Structs 2023-06-20 13:38:04 +01:00
glsl_types.h glsl: Remove the need of _MTX_INITIALIZER_NP by using simple_mtx_t/SIMPLE_MTX_INITIALIZER 2022-11-09 04:38:28 +00:00
meson.build meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
nir_gl_types.h mesa: #include "util/glheader.h" instead GL/gl.h in shared code 2022-11-03 16:07:31 +00:00
nir_types.cpp nir/types: Add some asserts to glsl_get_struct_field() 2022-11-01 14:48:41 +00:00
nir_types.h nir: Add a pass to lower mediump temps and shared mem. 2022-09-01 22:39:39 +00:00
shader_enums.c nir, spirv: Add support for VK_EXT_fragment_density_map 2023-04-04 13:14:35 +00:00
shader_enums.h nir, spirv: Add support for VK_EXT_fragment_density_map 2023-04-04 13:14:35 +00:00
shader_info.h nir, spirv: Add support for VK_EXT_fragment_density_map 2023-04-04 13:14:35 +00:00