nir: fix compilation warning on glsl_get_internal_ifc_packing
authorTapani Pälli <tapani.palli@intel.com>
Mon, 9 Mar 2020 08:35:20 +0000 (10:35 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Mar 2020 09:43:49 +0000 (09:43 +0000)
Removes following warning:
   warning: 'const' type qualifier on return type has no effect

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4111>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4111>

src/compiler/nir_types.cpp
src/compiler/nir_types.h

index 65cd250e5a13c55e946fdff789d80aa5c4d3bb54..d7e0941629baf7ce61f22b0a8b3bb7cf32d89aa9 100644 (file)
@@ -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)
 {
index e501cc70418df859c9ab25774cee7ce4a1df44f3..544de73a88ceed1cd19ef542e243e5d36d71fc7f 100644 (file)
@@ -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);