mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 10:08:08 +02:00
pan/mdg: externalize mir_pack_mod
midgard_print.c requires mir_pack_mod to remove references to ins->alu. Signed-off-by: Italo Nicola <italonicola@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5933>
This commit is contained in:
parent
1a4d165683
commit
5299239c2e
2 changed files with 5 additions and 1 deletions
|
|
@ -328,6 +328,10 @@ midgard_is_branch_unit(unsigned unit)
|
|||
return (unit == ALU_ENAB_BRANCH) || (unit == ALU_ENAB_BR_COMPACT);
|
||||
}
|
||||
|
||||
/* Packs ALU mod argument */
|
||||
struct midgard_instruction;
|
||||
unsigned mir_pack_mod(struct midgard_instruction *ins, unsigned i, bool scalar);
|
||||
|
||||
void
|
||||
mir_print_constant_component(FILE *fp, const midgard_constants *consts,
|
||||
unsigned c, midgard_reg_mode reg_mode, bool half,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ mir_get_imod(bool shift, nir_alu_type T, bool half, bool scalar)
|
|||
return midgard_int_zero_extend;
|
||||
}
|
||||
|
||||
static unsigned
|
||||
unsigned
|
||||
mir_pack_mod(midgard_instruction *ins, unsigned i, bool scalar)
|
||||
{
|
||||
bool integer = midgard_is_integer_op(ins->op);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue