turnip: fix alignment of non-32b types in workgroup memory

Fixes tests:
 dEQP-VK.spirv_assembly.instruction.compute.workgroup_memory.float16

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10039>
This commit is contained in:
Danylo Piliaiev 2021-04-05 16:52:41 +03:00 committed by Marge Bot
parent 8b80e8f832
commit 0709a6b363
1 changed files with 1 additions and 1 deletions

View File

@ -732,7 +732,7 @@ shared_type_info(const struct glsl_type *type, unsigned *size, unsigned *align)
glsl_type_is_boolean(type) ? 4 : glsl_get_bit_size(type) / 8;
unsigned length = glsl_get_vector_elements(type);
*size = comp_size * length;
*align = 4;
*align = comp_size;
}
static void