mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
agx: Add agx_prev_block helper
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
dd6106c8bd
commit
79c4d4213c
1 changed files with 6 additions and 0 deletions
|
|
@ -602,6 +602,12 @@ agx_predecessor_index(agx_block *succ, agx_block *pred)
|
|||
unreachable("Invalid predecessor");
|
||||
}
|
||||
|
||||
static inline agx_block *
|
||||
agx_prev_block(agx_block *ins)
|
||||
{
|
||||
return list_last_entry(&(ins->link), agx_block, link);
|
||||
}
|
||||
|
||||
static inline agx_instr *
|
||||
agx_prev_op(agx_instr *ins)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue