freedreno/fdl: Constify fdl6_get_ubwc_blockwidth()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13359>
This commit is contained in:
@@ -30,15 +30,15 @@
|
|||||||
#include "freedreno_layout.h"
|
#include "freedreno_layout.h"
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
is_r8g8(struct fdl_layout *layout)
|
is_r8g8(const struct fdl_layout *layout)
|
||||||
{
|
{
|
||||||
return layout->cpp == 2 &&
|
return layout->cpp == 2 &&
|
||||||
util_format_get_nr_components(layout->format) == 2;
|
util_format_get_nr_components(layout->format) == 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
fdl6_get_ubwc_blockwidth(struct fdl_layout *layout, uint32_t *blockwidth,
|
fdl6_get_ubwc_blockwidth(const struct fdl_layout *layout,
|
||||||
uint32_t *blockheight)
|
uint32_t *blockwidth, uint32_t *blockheight)
|
||||||
{
|
{
|
||||||
static const struct {
|
static const struct {
|
||||||
uint8_t width;
|
uint8_t width;
|
||||||
|
@@ -252,7 +252,7 @@ fdl_set_pitchalign(struct fdl_layout *layout, unsigned pitchalign)
|
|||||||
|
|
||||||
void fdl_dump_layout(struct fdl_layout *layout);
|
void fdl_dump_layout(struct fdl_layout *layout);
|
||||||
|
|
||||||
void fdl6_get_ubwc_blockwidth(struct fdl_layout *layout, uint32_t *blockwidth,
|
void fdl6_get_ubwc_blockwidth(const struct fdl_layout *layout,
|
||||||
uint32_t *blockheight);
|
uint32_t *blockwidth, uint32_t *blockheight);
|
||||||
|
|
||||||
#endif /* FREEDRENO_LAYOUT_H_ */
|
#endif /* FREEDRENO_LAYOUT_H_ */
|
||||||
|
Reference in New Issue
Block a user