panfrost: Make panfrost_resource_create_with_modifier public

It allows creating a resource when we already know which modifier
we're gonna use.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25012>
This commit is contained in:
Louis-Francis Ratté-Boulianne 2023-08-31 12:18:46 -04:00 committed by Marge Bot
parent 542c44ffde
commit 91514e7091
2 changed files with 6 additions and 1 deletions

View file

@ -619,7 +619,7 @@ panfrost_resource_set_damage_region(struct pipe_screen *screen,
}
}
static struct pipe_resource *
struct pipe_resource *
panfrost_resource_create_with_modifier(struct pipe_screen *screen,
const struct pipe_resource *template,
uint64_t modifier)

View file

@ -172,6 +172,11 @@ panfrost_translate_texture_dimension(enum pipe_texture_target t)
}
}
struct pipe_resource *
panfrost_resource_create_with_modifier(struct pipe_screen *screen,
const struct pipe_resource *template,
uint64_t modifier);
void pan_resource_modifier_convert(struct panfrost_context *ctx,
struct panfrost_resource *rsrc,
uint64_t modifier, const char *reason);