Mesa (master): pan/midgard: Expose more typesize manipulation routines

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 25 13:55:11 UTC 2019


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Oct 24 09:15:28 2019 -0400

pan/midgard: Expose more typesize manipulation routines

These internal mir.c routines will help the RA.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/panfrost/midgard/compiler.h | 2 ++
 src/panfrost/midgard/mir.c      | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index e66424d0fd8..df930646b31 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -515,6 +515,8 @@ bool mir_is_written_before(compiler_context *ctx, midgard_instruction *ins, unsi
 uint16_t mir_bytemask_of_read_components(midgard_instruction *ins, unsigned node);
 unsigned mir_ubo_shift(midgard_load_store_op op);
 midgard_reg_mode mir_typesize(midgard_instruction *ins);
+midgard_reg_mode mir_srcsize(midgard_instruction *ins, unsigned i);
+unsigned mir_bytes_for_mode(midgard_reg_mode mode);
 uint16_t mir_from_bytemask(uint16_t bytemask, midgard_reg_mode mode);
 uint16_t mir_bytemask(midgard_instruction *ins);
 uint16_t mir_round_bytemask_down(uint16_t mask, midgard_reg_mode mode);
diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c
index db26acd8cb1..fbb0120a2b2 100644
--- a/src/panfrost/midgard/mir.c
+++ b/src/panfrost/midgard/mir.c
@@ -384,7 +384,7 @@ mir_typesize(midgard_instruction *ins)
 
 /* Grabs the size of a source */
 
-static midgard_reg_mode
+midgard_reg_mode
 mir_srcsize(midgard_instruction *ins, unsigned i)
 {
         /* TODO: 16-bit textures/ldst */
@@ -461,7 +461,7 @@ mir_to_bytemask(midgard_reg_mode mode, unsigned mask)
 
 /* ...and the inverse */
 
-static unsigned
+unsigned
 mir_bytes_for_mode(midgard_reg_mode mode)
 {
         switch (mode) {




More information about the mesa-commit mailing list