ac/nir: Add float cast before shadow comparator clamp.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 1 Aug 2017 10:24:01 +0000 (12:24 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 2 Aug 2017 06:43:13 +0000 (08:43 +0200)
commit341578a6aea31c13bc4dd04011fb0e48ac7db19e
tree3cb036988ae701f30e4bf63278bf951dcae72534
parentf28c2e225668ed7977b301100140f4f7e7bf55e6
ac/nir: Add float cast before shadow comparator clamp.

LLVM complained about passing an i32 to a float clamp.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Fixes: 0f9e32519bb "ac/nir: clamp shadow texture comparison value on VI"
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c