These internal mir.c routines will help the RA.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
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);
/* 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 */
/* ...and the inverse */
-static unsigned
+unsigned
mir_bytes_for_mode(midgard_reg_mode mode)
{
switch (mode) {