freedreno/fdl: Constify fdl6_get_ubwc_blockwidth()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13359>
This commit is contained in:
Connor Abbott
2021-10-13 17:30:29 +02:00
committed by Marge Bot
parent 7a90aa8d2e
commit 7bcccd1f08
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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_ */