Commit 9f79447d authored by Boris Brezillon's avatar Boris Brezillon
Browse files

nir: Don't inline glsl_get_cl_type_size_align()



Looks like clang is not smart enough to create a proper function when
it sees it's being passed as a callback, so let's uninline it.
Signed-off-by: Boris Brezillon's avatarBoris Brezillon <boris.brezillon@collabora.com>
parent ad4e777c
......@@ -749,6 +749,14 @@ glsl_get_cl_alignment(const struct glsl_type *type)
return type->cl_alignment();
}
void
glsl_get_cl_type_size_align(const struct glsl_type *type,
unsigned *size, unsigned *align)
{
*size = glsl_get_cl_size(type);
*align = glsl_get_cl_alignment(type);
}
unsigned
glsl_type_get_sampler_count(const struct glsl_type *type)
{
......
......@@ -116,12 +116,8 @@ int glsl_get_cl_size(const struct glsl_type *type);
int glsl_get_cl_alignment(const struct glsl_type *type);
inline void
glsl_get_cl_type_size_align(const struct glsl_type *type, unsigned *size, unsigned *align)
{
*size = glsl_get_cl_size(type);
*align = glsl_get_cl_alignment(type);
}
void glsl_get_cl_type_size_align(const struct glsl_type *type,
unsigned *size, unsigned *align);
unsigned glsl_get_explicit_size(const struct glsl_type *type, bool align_to_stride);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment