mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
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:
parent
542c44ffde
commit
91514e7091
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue