pan/mdg: Return the instruction from mir_insert_instruction_*_scheduled
authorIcecream95 <ixn@disroot.org>
Fri, 10 Dec 2021 10:50:00 +0000 (23:50 +1300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 13:16:50 +0000 (13:16 +0000)
commit7b9c976c2dabf07050efb1c9d0deb82d57efa944
tree4854e9dc290b1a37a90ccae3e4612ad2521736f6
parentca2be0748494068006f781180450390ef451d059
pan/mdg: Return the instruction from mir_insert_instruction_*_scheduled

We can't return a pointer to the bundle itself because it might move
about in memory.

CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16382>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/mir.c