diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 65cd250e5a1..d7e0941629b 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -772,7 +772,7 @@ glsl_type_get_image_count(const struct glsl_type *type) return 0; } -const enum glsl_interface_packing +enum glsl_interface_packing glsl_get_internal_ifc_packing(const struct glsl_type *type, bool std430_supported) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index e501cc70418..544de73a88c 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -52,7 +52,7 @@ int glsl_get_struct_field_offset(const struct glsl_type *type, const struct glsl_struct_field * glsl_get_struct_field_data(const struct glsl_type *type, unsigned index); -const enum glsl_interface_packing +enum glsl_interface_packing glsl_get_internal_ifc_packing(const struct glsl_type *type, bool std430_supported);