panfrost: Constify the rt_fmts arg passed to pan_lower_framebuffer()

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7066>
This commit is contained in:
Boris Brezillon 2020-10-08 10:04:48 +02:00 committed by Marge Bot
parent da132d802b
commit 4441e80355
2 changed files with 2 additions and 2 deletions

View file

@ -722,7 +722,7 @@ pan_lower_fb_load(nir_shader *shader,
}
bool
pan_lower_framebuffer(nir_shader *shader, enum pipe_format *rt_fmts,
pan_lower_framebuffer(nir_shader *shader, const enum pipe_format *rt_fmts,
bool is_blend, unsigned quirks)
{
if (shader->info.stage != MESA_SHADER_FRAGMENT)

View file

@ -43,7 +43,7 @@ nir_alu_type pan_unpacked_type_for_format(const struct util_format_description *
enum pan_format_class pan_format_class_load(const struct util_format_description *desc, unsigned quirks);
enum pan_format_class pan_format_class_store(const struct util_format_description *desc, unsigned quirks);
bool pan_lower_framebuffer(nir_shader *shader, enum pipe_format *rt_fmts,
bool pan_lower_framebuffer(nir_shader *shader, const enum pipe_format *rt_fmts,
bool is_blend, unsigned quirks);
#endif