lima/ppir: handle failures on all ppir_emit_cf_list paths
authorErico Nunes <nunes.erico@gmail.com>
Sun, 19 Apr 2020 19:36:19 +0000 (21:36 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 16 May 2020 15:23:48 +0000 (17:23 +0200)
commit96c1d5f629b3e45958e5ee41d7d8b34e52ae247d
treea8a4d23904591f3249bfac6322401adabfc9572a
parentfa3549c92b240aab23bd5838f1fdca2ae4caf055
lima/ppir: handle failures on all ppir_emit_cf_list paths

In some paths where ppir_emit_cf_list is called, compilation errors such
as in unsupported features were not being handled, allowing compilation
to continue and fail at some random point later.
Handle them properly so compilation aborts in the expected way rather
than what may look like a compiler crash/bug.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4975>
src/gallium/drivers/lima/ir/pp/nir.c