From 4441e8035544b2107ca4e311f46f50e1c517201f Mon Sep 17 00:00:00 2001
From: Boris Brezillon <boris.brezillon@collabora.com>
Date: Thu, 8 Oct 2020 10:04:48 +0200
Subject: [PATCH] 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>
---
 src/panfrost/util/pan_lower_framebuffer.c | 2 +-
 src/panfrost/util/pan_lower_framebuffer.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/util/pan_lower_framebuffer.c b/src/panfrost/util/pan_lower_framebuffer.c
index 1c497351ea24b..47f36f2d6bc17 100644
--- a/src/panfrost/util/pan_lower_framebuffer.c
+++ b/src/panfrost/util/pan_lower_framebuffer.c
@@ -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)
diff --git a/src/panfrost/util/pan_lower_framebuffer.h b/src/panfrost/util/pan_lower_framebuffer.h
index 990368bfd9460..bce18e7cbabec 100644
--- a/src/panfrost/util/pan_lower_framebuffer.h
+++ b/src/panfrost/util/pan_lower_framebuffer.h
@@ -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
-- 
GitLab