mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 10:38:11 +02:00
panvk: Fix ignored qualifier warnings
Fixes:
src/panfrost/lib/pan_image.h:133:15: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
133 | static inline const struct pan_image_plane_ref
| ^~~~~
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Gurchetan Singh <gurchetan.singh.foss@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41644>
This commit is contained in:
parent
8cd6e3ac08
commit
64afecc4f9
2 changed files with 4 additions and 4 deletions
|
|
@ -130,7 +130,7 @@ pan_image_view_get_layer_count(const struct pan_image_view *iview)
|
|||
: iview->last_layer - iview->first_layer + 1;
|
||||
}
|
||||
|
||||
static inline const struct pan_image_plane_ref
|
||||
static inline struct pan_image_plane_ref
|
||||
pan_image_view_get_color_plane(const struct pan_image_view *iview)
|
||||
{
|
||||
/* We only support rendering to plane 0 */
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ to_panvk_descriptor_set_layout(const struct vk_descriptor_set_layout *layout)
|
|||
return container_of(layout, const struct panvk_descriptor_set_layout, vk);
|
||||
}
|
||||
|
||||
static inline const uint32_t
|
||||
static inline uint32_t
|
||||
panvk_get_desc_stride(const struct panvk_descriptor_set_binding_layout *layout)
|
||||
{
|
||||
/* One descriptor for each sampler plane, and one for each texture. */
|
||||
|
|
@ -129,7 +129,7 @@ panvk_get_desc_stride(const struct panvk_descriptor_set_binding_layout *layout)
|
|||
? layout->textures_per_desc + layout->samplers_per_desc : 1;
|
||||
}
|
||||
|
||||
static inline const uint32_t
|
||||
static inline uint32_t
|
||||
panvk_get_iub_desc_count(uint32_t size)
|
||||
{
|
||||
/* Each inline uniform block contains an internal buffer descriptor, in
|
||||
|
|
@ -138,7 +138,7 @@ panvk_get_iub_desc_count(uint32_t size)
|
|||
return DIV_ROUND_UP(size, PANVK_DESCRIPTOR_SIZE) + 1;
|
||||
}
|
||||
|
||||
static inline const uint32_t
|
||||
static inline uint32_t
|
||||
panvk_get_iub_size(uint32_t desc_count)
|
||||
{
|
||||
assert(desc_count >= 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue