From: Tapani Pälli Date: Mon, 9 Mar 2020 08:35:20 +0000 (+0200) Subject: nir: fix compilation warning on glsl_get_internal_ifc_packing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24408acca47619bdb2da1d3f2fa91b1b6e092e16;p=mesa.git nir: fix compilation warning on glsl_get_internal_ifc_packing Removes following warning: warning: 'const' type qualifier on return type has no effect Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Tested-by: Marge Bot Part-of: --- 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);