Mesa (main): pan/bi: Constify bi_is_staging_src argument

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 21 22:41:34 UTC 2022


Module: Mesa
Branch: main
Commit: c5a87365523f4b5cb183e791937f48eb36391ec3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c5a87365523f4b5cb183e791937f48eb36391ec3

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Thu Jun 16 14:47:05 2022 -0400

pan/bi: Constify bi_is_staging_src argument

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17091>

---

 src/panfrost/bifrost/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 010b0a4c6e5..399c02cdbfc 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -542,7 +542,7 @@ typedef struct {
 } bi_instr;
 
 static inline bool
-bi_is_staging_src(bi_instr *I, unsigned s)
+bi_is_staging_src(const bi_instr *I, unsigned s)
 {
         return (s == 0 || s == 4) && bi_opcode_props[I->op].sr_read;
 }



More information about the mesa-commit mailing list