lima: gpir: enforce instruction limit earlier
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 5 Mar 2020 06:16:30 +0000 (22:16 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 21:06:54 +0000 (21:06 +0000)
commit4d5a0ae22cf9ad893ddb10fca48e85e5dbf9c80c
tree533122882d0c6427c75044c6aab51eeaae6e4502
parent70349a2252a95f181de519be61ea84bd22381e4b
lima: gpir: enforce instruction limit earlier

Enforce instruction limit of 512 instructions earlier. This is a
workaround for infinite loops in gpir compiler and allows us to
pin point the tests that are affected.

Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4055>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4055>
src/gallium/drivers/lima/ir/gp/codegen.c
src/gallium/drivers/lima/ir/gp/instr.c