From 7bcccd1f085ba778c1cc95e0ce0e80bba96f02b8 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 13 Oct 2021 17:30:29 +0200 Subject: [PATCH] freedreno/fdl: Constify fdl6_get_ubwc_blockwidth() Part-of: --- src/freedreno/fdl/fd6_layout.c | 6 +++--- src/freedreno/fdl/freedreno_layout.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c index 0067adb52ff..0f831d5fc8f 100644 --- a/src/freedreno/fdl/fd6_layout.c +++ b/src/freedreno/fdl/fd6_layout.c @@ -30,15 +30,15 @@ #include "freedreno_layout.h" static bool -is_r8g8(struct fdl_layout *layout) +is_r8g8(const struct fdl_layout *layout) { return layout->cpp == 2 && util_format_get_nr_components(layout->format) == 2; } void -fdl6_get_ubwc_blockwidth(struct fdl_layout *layout, uint32_t *blockwidth, - uint32_t *blockheight) +fdl6_get_ubwc_blockwidth(const struct fdl_layout *layout, + uint32_t *blockwidth, uint32_t *blockheight) { static const struct { uint8_t width; diff --git a/src/freedreno/fdl/freedreno_layout.h b/src/freedreno/fdl/freedreno_layout.h index a2c81227f7f..1f78e1622c4 100644 --- a/src/freedreno/fdl/freedreno_layout.h +++ b/src/freedreno/fdl/freedreno_layout.h @@ -252,7 +252,7 @@ fdl_set_pitchalign(struct fdl_layout *layout, unsigned pitchalign) void fdl_dump_layout(struct fdl_layout *layout); -void fdl6_get_ubwc_blockwidth(struct fdl_layout *layout, uint32_t *blockwidth, - uint32_t *blockheight); +void fdl6_get_ubwc_blockwidth(const struct fdl_layout *layout, + uint32_t *blockwidth, uint32_t *blockheight); #endif /* FREEDRENO_LAYOUT_H_ */