v3d: Retry with the fallback scheduler when RA fails
authorNeil Roberts <nroberts@igalia.com>
Fri, 17 Jul 2020 13:32:19 +0000 (15:32 +0200)
committerNeil Roberts <nroberts@igalia.com>
Fri, 24 Jul 2020 10:27:07 +0000 (12:27 +0200)
commitde5130fea05e9c441da64014d33d5d93254d7eca
treec6c78f3f1d194935b2db40dd4c2e817e38d37a6b
parent1c8167da612e8710aae8ea797b6bc0f22eac7f6a
v3d: Retry with the fallback scheduler when RA fails

v3d_compile is now split out into a helper function that gets called a
second time if compilation fails the first time with the result
reporting the register allocation failed. The second time it is run with
the fallback scheduler to try and increase the chances of successfully
allocating the registers.

v2: Add a performance debug message when using the fallback scheduler.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5953>
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c