v3d: Fix the check for "is the last thrsw inside control flow"
authorEric Anholt <eric@anholt.net>
Thu, 14 Feb 2019 17:42:38 +0000 (09:42 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 19 Feb 2019 02:09:07 +0000 (18:09 -0800)
commit441294962cd65d44febdbe9ef0b0d99b5d27cec8
tree5e89dc8cf885f50215b854e434c52c7ef427c04d
parent07d5b5a97273a9ffb192b80657d2082e94cbbf4c
v3d: Fix the check for "is the last thrsw inside control flow"

The execute.file check used to be good enough, until I stopped setting up
the execute mask for uniform ifs.

No known tests fixed, noticed while doing a refactor.

Fixes: 080506057310 ("v3d: Handle dynamically uniform IF statements with uniform control flow.")
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h