lima: set shader caps to optimize control flow
authorErico Nunes <nunes.erico@gmail.com>
Thu, 19 Dec 2019 21:51:07 +0000 (22:51 +0100)
committerErico Nunes <nunes.erico@gmail.com>
Fri, 20 Dec 2019 19:59:15 +0000 (20:59 +0100)
commit8e9e94d084316e8723951bcf9595c45dfb735c2a
treef85a96003f47797f2722daa1ec79079f464b272a
parent4322656dee2d3db448faaf3bd01e2a7769c9e46a
lima: set shader caps to optimize control flow

With these new caps, nir is able to unroll loops and optimize
conditionals much more efficiently in both gpit and ppir.
panfrost and vc4 were used as reference for the values.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3176>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3176>
src/gallium/drivers/lima/lima_screen.c