panfrost: Make sure bundle.instructions[] contains valid instructions
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 27 Aug 2019 09:12:02 +0000 (11:12 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 27 Aug 2019 14:50:52 +0000 (16:50 +0200)
commit0142dcb990eee047af9e7f520bf7a27f6ef765b1
tree498c080f545af1d7ef873c19ac205a37b03d0aff
parent5882e0def97a47aff050f5a3f412b97a7f440e27
panfrost: Make sure bundle.instructions[] contains valid instructions

Add an assert() in schedule_bundle() to make sure all instruction
pointers in bundle.instructions[] are valid.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_schedule.c