lima/ppir: fix crash when program uses no registers at all
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 1 Jun 2019 05:30:54 +0000 (22:30 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Thu, 6 Jun 2019 04:30:36 +0000 (04:30 +0000)
commit5980565a37909c01281b483c371f5eec03e9689a
tree36ebabe25b6845916ca0fbc3ef0b1787bf8c9781
parentb38dab101ca7e0896255dccbd85fd510c47d84d1
lima/ppir: fix crash when program uses no registers at all

Program may need no regalloc at all, e.g. in case when program consists
of single discard op.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/ir/pp/regalloc.c