panfrost: Constify the rt_fmts arg passed to pan_lower_framebuffer()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 8 Oct 2020 08:04:48 +0000 (10:04 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 9 Oct 2020 14:16:41 +0000 (14:16 +0000)
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
src/panfrost/util/pan_lower_framebuffer.h

index 1c49735..47f36f2 100644 (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)
index 990368b..bce18e7 100644 (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