Mesa (main): freedreno/fdl: Constify fdl6_get_ubwc_blockwidth()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 18 16:38:35 UTC 2021
Module: Mesa
Branch: main
Commit: 7bcccd1f085ba778c1cc95e0ce0e80bba96f02b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bcccd1f085ba778c1cc95e0ce0e80bba96f02b8
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Wed Oct 13 17:30:29 2021 +0200
freedreno/fdl: Constify fdl6_get_ubwc_blockwidth()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13359>
---
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_ */
More information about the mesa-commit
mailing list