glsl: Don't replace lrp pattern with lrp if arguments are not floats
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Fri, 29 May 2020 13:20:45 +0000 (16:20 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 09:06:25 +0000 (09:06 +0000)
commit9f3956fea080d73d98fc28bc8cd148755b597b74
treee0af22143d3a9ea5ba3e4307ef89d6795ff365fd
parent3ed2123d77d50ccb984fccdcc1cfa936a18819bf
glsl: Don't replace lrp pattern with lrp if arguments are not floats

We don't have "lrp(int, int, int)" and validation of ir_triop_lrp
fails down the road.

Fixes: 8d37e991
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3059
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Tested-by: Witold Baryluk <witold.baryluk@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5257>
src/compiler/glsl/opt_algebraic.cpp