diff options
author | Tapani Pälli <[email protected]> | 2020-03-09 10:35:20 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-09 09:43:49 +0000 |
commit | 24408acca47619bdb2da1d3f2fa91b1b6e092e16 (patch) | |
tree | 92993a71826c724561925ed70043e5268e6be9b5 /src | |
parent | ad66b25415745383aa9380975f16967bfb1022a8 (diff) |
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 <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4111>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4111>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir_types.cpp | 2 | ||||
-rw-r--r-- | src/compiler/nir_types.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |