lima/ppir: don't lower vector {b,f}csel to scalar if condition is scalar
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 30 Aug 2019 04:28:36 +0000 (21:28 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Fri, 6 Sep 2019 01:51:28 +0000 (01:51 +0000)
commit517b60dc13f1d3fcffee2564b7ad7aed34b83068
treedce5f59c2be1d02a01417f95dc38417d5f8cbac3
parent9367d2ca37a3b8108ecb74e2875a600b5543c163
lima/ppir: don't lower vector {b,f}csel to scalar if condition is scalar

Utgard PP has vector fcsel operation, but its condition is scalar. Add
filtering callback that checks whether {b,f}csel condition is not scalar
to lower {b,f}csel to scalar only in this case.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_program.c